/* Minimalist, Clean, Matte Dark Theme */
:root {
  --bg: #0c0d0e;
  --surface: #141517;
  --surface-hover: #1a1b1e;
  --surface-border: #222428;
  --surface-border-light: #2c2f35;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #e4e4e7;
  --status-green: #22c55e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  border-bottom: 1px solid var(--surface-border);
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.brand-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding: 60px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-video {
  width: 100%;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* IP Box (Minimalist, Crisp) */
.ip-panel {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 6px 6px 6px 16px;
  gap: 16px;
  margin-bottom: 18px;
}

.ip-text {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-copy:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-light);
}

.btn-copy.copied {
  background: #14532d;
  color: #86efac;
  border-color: #166534;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--status-green);
  border-radius: 50%;
}

/* Screenshot Gallery */
.gallery-section {
  padding-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item.large {
  grid-column: span 8;
  height: 280px;
}

.gallery-item.small {
  grid-column: span 4;
  height: 280px;
}

.gallery-item.mid {
  grid-column: span 4;
  height: 210px;
}

/* Video Section */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  user-select: none;
}

/* Section Common */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--surface-border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

/* About / Story */
.story-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

.story-box p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.story-box p:last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.timeline-card {
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 20px;
  background: var(--surface);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Features Grid (Clean Minimalist) */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.15s;
}

.feature-box:hover {
  border-color: var(--surface-border-light);
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps (How to play) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step-box {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  border-radius: 6px;
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.step-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-detail {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Monitoring Links */
.mon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.mon-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s;
}

.mon-link:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-light);
}

.mon-title {
  font-size: 14.5px;
  font-weight: 600;
}

.mon-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.15s;
}

.mon-link:hover .mon-arrow {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-meta {
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .gallery-item.large,
  .gallery-item.small,
  .gallery-item.mid {
    grid-column: span 12;
    height: 220px;
  }
  .ip-panel {
    width: 100%;
    justify-content: space-between;
  }
  nav {
    display: none;
  }
}
