:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --border: #2a2a4a;
  --radius: 12px;
  --max-width: 1120px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 80px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

/* Sections */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Feature detail page */
.feature-hero {
  text-align: center;
  padding: 40px 0 60px;
}

.feature-hero .app-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.feature-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card ul li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.feature-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.spec-item .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.spec-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Banner image */
.banner-wrap {
  margin: 32px auto 0;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.banner-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Screenshot gallery */
.screenshot-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.screenshot-grid a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  width: 200px;
}

.screenshot-grid a:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--primary);
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 640px) {
  .nav .container {
    flex-direction: column;
    gap: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-hero h1 {
    font-size: 2rem;
  }

  .hero .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .btn-outline {
    margin-left: 0;
  }
}

/* ===== v9 Design System (Homepage) ===== */
.v9-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: var(--max-width); margin: 0 auto; }
.v9-nav-brand { font-size: 1rem; font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 10px; }
.v9-nav-brand img { height: 52px; width: auto; }
.v9-nav-brand .brand-highlight { color: var(--primary); }
.v9-nav-links { display: flex; gap: 32px; list-style: none; }
.v9-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; font-family: 'Inter', sans-serif; }
.v9-nav-links a:hover, .v9-nav-links a.active { color: var(--text); }

.v9-hero { position: relative; min-height: 85vh; display: flex; align-items: flex-start; isolation: isolate; overflow: hidden; padding-top: 80px; }
.v9-hero .bg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(ellipse at 30% 20%, rgba(108,92,231,0.18) 0%, transparent 50%),
  radial-gradient(ellipse at 70% 70%, rgba(0,206,201,0.08) 0%, transparent 50%);
}
.v9-hero .bg-layer::before, .v9-hero .bg-layer::after { position: absolute; left: -5%; right: -5%; font-size: 2.6rem; letter-spacing: 2rem; color: rgba(162,155,254,0.13); pointer-events: none; white-space: nowrap; overflow: hidden; }
.v9-hero .bg-layer::before { top: -25%; line-height: 8; content: '◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇'; transform: rotate(-10deg) scale(1.4); }
.v9-hero .bg-layer::after { top: 38%; line-height: 8; content: '⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡'; transform: rotate(-10deg) scale(1.4) translateX(-4rem); }

.v9-hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; position: relative; z-index: 1; }
.v9-hero-content .label { font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin-bottom: 24px; font-weight: 600; }
.v9-hero-content h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 4.8rem; font-weight: 700; line-height: 1.05; margin-bottom: 20px; color: var(--text); }
.v9-hero-content .sub { font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.9; color: var(--text-muted); max-width: 520px; }
.v9-hero-content .acts { margin-top: 40px; }
.v9-hero-content .acts a { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--primary); padding-bottom: 2px; margin-right: 24px; font-family: 'Inter', sans-serif; transition: opacity 0.2s; }
.v9-hero-content .acts a:hover { opacity: 0.8; }
.v9-hero-content .acts .act-secondary { color: var(--text-muted); border-bottom-color: transparent; }
.v9-hero-content .acts .act-secondary:hover { color: var(--text); opacity: 1; }

.v9-body { max-width: 680px; margin: 0 auto; padding: 80px 24px; }
.v9-body h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; margin-bottom: 24px; color: var(--text); }
.v9-body p { font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 2; color: var(--text-muted); margin-bottom: 24px; }
.v9-body .pull-quote { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; line-height: 1.4; color: var(--text); padding: 24px 0; margin: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.v9-body .pull-quote em { font-style: italic; color: var(--primary); }
.v9-body .divider { width: 40px; height: 2px; background: var(--primary); margin: 40px 0; }

.v9-app { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.v9-app .phone-wrap { width: 240px; flex-shrink: 0; }
.v9-app .phone-wrap .screen-frame { border-radius: 16px; overflow: hidden; border: 2px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.v9-app .phone-wrap .screen-frame img { display: block; width: 100%; height: auto; }
.v9-app .app-info { flex: 1; min-width: 260px; }
.v9-app .app-info h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 16px; }
.v9-app .app-info p { font-family: 'Inter', sans-serif; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.v9-app .app-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); padding: 12px 28px; border-radius: 8px; text-decoration: none; color: #fff; font-weight: 600; font-size: 0.85rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.v9-app .app-cta:hover { border-color: var(--primary); }

.v9-outro { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; text-align: center; font-family: 'Inter', sans-serif; }
.v9-outro a { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--primary); }

.v9-footer { max-width: var(--max-width); margin: 0 auto; border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--text-muted); font-size: 0.75rem; font-family: 'Inter', sans-serif; }
.v9-footer a { color: var(--text-muted); text-decoration: none; margin: 0 12px; }
.v9-footer a:hover { color: var(--text); }

/* v9 Feature page styles */
.v9-feature-hero { position: relative; isolation: isolate; overflow: hidden; padding: 60px 0 40px; }
.v9-feature-hero .bg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(ellipse at 30% 20%, rgba(108,92,231,0.18) 0%, transparent 50%),
  radial-gradient(ellipse at 70% 70%, rgba(0,206,201,0.08) 0%, transparent 50%);
}
.v9-feature-hero .bg-layer::before, .v9-feature-hero .bg-layer::after { position: absolute; left: -5%; right: -5%; font-size: 2.6rem; letter-spacing: 2rem; color: rgba(162,155,254,0.13); pointer-events: none; white-space: nowrap; overflow: hidden; }
.v9-feature-hero .bg-layer::before { top: -25%; line-height: 8; content: '◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇'; transform: rotate(-10deg) scale(1.4); }
.v9-feature-hero .bg-layer::after { top: 38%; line-height: 8; content: '⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡ ⟢ ◆ ◇ ⟡'; transform: rotate(-10deg) scale(1.4) translateX(-4rem); }
.v9-feature-hero-content { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; width: 100%; position: relative; z-index: 1; text-align: center; }
.v9-feature-hero-content .app-badge { display: inline-block; background: rgba(108,92,231,0.12); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 20px; font-family: 'Inter', sans-serif; }
.v9-feature-hero-content h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 3.2rem; font-weight: 700; margin-bottom: 16px; }
.v9-feature-hero-content p { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.v9-feature-hero-content .btn-wrap { margin-top: 28px; }

.v9-feature-section { padding: 60px 0; }
.v9-feature-section .section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 40px; text-align: center; color: var(--text); }

.v9-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.v9-feature-grid .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform 0.2s, border-color 0.2s; }
.v9-feature-grid .card:hover { transform: translateY(-4px); border-color: var(--primary); }
.v9-feature-grid .card .card-icon { font-size: 2rem; margin-bottom: 16px; }
.v9-feature-grid .card h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.v9-feature-grid .card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.v9-feature-grid .card ul { list-style: none; padding: 0; }
.v9-feature-grid .card ul li { color: var(--text-muted); font-size: 0.8rem; padding: 3px 0 3px 18px; position: relative; font-family: 'Inter', sans-serif; }
.v9-feature-grid .card ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); }

.v9-banner-wrap { margin: 32px auto 0; max-width: 900px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.v9-banner-wrap img { display: block; width: 100%; height: auto; }

.v9-screenshot-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.v9-screenshot-grid a { display: block; border-radius: 16px; overflow: hidden; border: 2px solid var(--border); transition: transform 0.2s, border-color 0.2s; width: 200px; }
.v9-screenshot-grid a:hover { transform: translateY(-6px) scale(1.03); border-color: var(--primary); }
.v9-screenshot-grid img { display: block; width: 100%; height: auto; }

.v9-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.v9-specs-grid .spec { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.v9-specs-grid .spec .value { font-size: 1.6rem; font-weight: 700; color: var(--primary); display: block; font-family: 'Playfair Display', serif; }
.v9-specs-grid .spec .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-family: 'Inter', sans-serif; }

.v9-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.v9-card-grid .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s, border-color 0.2s; }
.v9-card-grid .card:hover { transform: translateY(-4px); border-color: var(--primary); }
.v9-card-grid .card .card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.v9-card-grid .card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.v9-card-grid .card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.v9-contact-card { max-width: 520px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; text-align: center; }
.v9-contact-card .icon { font-size: 3rem; margin-bottom: 16px; }
.v9-contact-card h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 8px; }
.v9-contact-card p { color: var(--text-muted); margin-bottom: 24px; font-family: 'Inter', sans-serif; }
.v9-contact-card a { display: inline-block; font-size: 1.2rem; font-weight: 700; color: var(--primary); text-decoration: none; word-break: break-all; font-family: 'Inter', sans-serif; }

.v9-policy-content { max-width: 760px; margin: 0 auto 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; font-size: 0.95rem; line-height: 1.7; font-family: 'Inter', sans-serif; }
.v9-policy-content h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin: 32px 0 12px; color: var(--text); }
.v9-policy-content h2:first-child { margin-top: 0; }
.v9-policy-content p { color: var(--text-muted); margin-bottom: 12px; }
.v9-policy-content ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 12px; }
.v9-policy-content ul li { margin-bottom: 4px; }
.v9-policy-content strong { color: var(--text); }
.v9-policy-date { color: var(--primary); font-weight: 600; margin-bottom: 24px; display: block; }
@media (max-width: 640px) { .v9-policy-content { padding: 24px; } }

@media (max-width: 640px) {
  .v9-nav { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .v9-nav-links { gap: 20px; }
  .v9-hero-content h1 { font-size: 2.8rem; }
  .v9-hero { min-height: 70vh; padding-top: 60px; }
  .v9-hero .bg-layer::before, .v9-hero .bg-layer::after { font-size: 1.6rem; letter-spacing: 1rem; }
  .v9-body .pull-quote { font-size: 1.3rem; }
  .v9-app .phone-wrap { width: 180px; }
  .v9-feature-hero-content h1 { font-size: 2.2rem; }
}
