/* ============================================================
   DragonFish — Shared Stylesheet
   dragonfishvn.github.io
   ============================================================ */

/* ----- Reset & Box Model ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ----- Design Tokens ----- */
:root {
  --bg0:  #080401;
  --bg1:  #0f0803;
  --bg2:  #1a0c04;
  --bg3:  #241208;

  --gold:        #deb887;
  --gold-bright: #f5d28a;
  --gold-dim:    rgba(222,184,135,0.60);
  --gold-faint:  rgba(222,184,135,0.10);
  --red:         #9a1f1f;
  --red-glow:    rgba(154,31,31,0.15);

  --white:    #ffffff;
  --text-mid: rgba(255,255,255,0.70);
  --text-dim: rgba(255,255,255,0.38);

  --radius-card: 22px;
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.70);
}

/* ----- Base ----- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg1);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

.serif { font-family: 'Cinzel', 'Palatino Linotype', Georgia, serif; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(8,4,1,0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(222,184,135,0.08);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.nav-brand-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 8px 20px;
  background: var(--gold-faint);
  border: 1px solid rgba(222,184,135,0.25);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--gold) !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: rgba(222,184,135,0.18) !important;
  border-color: rgba(222,184,135,0.45) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 5% 80px;
  position: relative; overflow: hidden;
}

/* Ambient glows — matches app background */
.hero-glow-red {
  position: absolute; top: -180px; left: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(154,31,31,0.09) 0%, transparent 68%);
  pointer-events: none;
}

.hero-glow-gold {
  position: absolute; bottom: -120px; right: -60px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(222,184,135,0.06) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 80px;
}

/* ----- Hero Content ----- */
.hero-content { flex: 1; min-width: 0; }

.hero-icon {
  width: 90px; height: 90px;
  border-radius: 22px;
  box-shadow:
    0 12px 36px rgba(0,0,0,0.55),
    0 0 0 1px rgba(222,184,135,0.18);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(50px, 7.5vw, 82px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

/* Ornate divider — mirrors app's diamond + lines */
.divider {
  display: flex; align-items: center; gap: 10px;
  max-width: 220px;
  margin: 22px 0 28px;
}

.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.divider-diamond {
  width: 6px; height: 6px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 44px;
  line-height: 1.75;
}

/* App Store CTA */
.cta-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px;
  background: linear-gradient(135deg,
    rgba(245,210,138,0.13),
    rgba(199,138,61,0.08));
  border: 1px solid rgba(222,184,135,0.28);
  border-radius: 16px;
  text-decoration: none;
  color: var(--gold);
  font-size: 14px; font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-appstore:hover {
  background: linear-gradient(135deg,
    rgba(245,210,138,0.20),
    rgba(199,138,61,0.14));
  border-color: rgba(222,184,135,0.48);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(222,184,135,0.08);
}

.btn-appstore svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }

/* "Coming soon" Play Store placeholder — same shape as App Store button but
   visibly non-interactive and dimmed. Swap the modifier class for a real
   .btn-appstore (or remove this rule) once the Android app ships. */
.btn-appstore-soon {
  opacity: 0.55;
  cursor: default;
}
.btn-appstore-soon:hover {
  /* Override the .btn-appstore:hover lift — non-interactive should stay still. */
  background: linear-gradient(135deg,
    rgba(245,210,138,0.13),
    rgba(199,138,61,0.08));
  border-color: rgba(222,184,135,0.28);
  transform: none;
  box-shadow: none;
}

.btn-store-text small {
  display: block; font-size: 10px;
  font-weight: 400; letter-spacing: 0.5px;
  opacity: 0.65;
}

.btn-store-text strong { display: block; font-size: 16px; font-weight: 700; }

.badge-soon {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: 20px;
  background: rgba(154,31,31,0.25);
  border: 1px solid rgba(154,31,31,0.50);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #ff9090;
}

/* ----- Phone Mockup ----- */
.hero-mockup {
  flex: 0 0 auto;
  display: flex; justify-content: center;
}

.phone-wrap {
  position: relative;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.phone-frame {
  width: 270px;
  background: #0e0e0e;
  border-radius: 52px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 0 0 2px #282828,
    0 0 0 5px #111,
    0 60px 120px rgba(0,0,0,0.75),
    0 0 80px rgba(222,184,135,0.05);
}

/* Dynamic Island */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 30px;
  background: #0e0e0e;
  border-radius: 0 0 22px 22px;
  z-index: 2;
}

.phone-screen {
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  /* push content below dynamic island */
  padding-top: 18px;
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 110px 5%;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; color: var(--white);
}

.features-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* ----- Feature Card ----- */
.feature-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}

.feature-card-body {
  padding: 34px 30px 26px;
  position: relative; overflow: hidden;
}

/* Ambient glow in card top-left */
.feature-card-body::before {
  content: '';
  position: absolute; top: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.feature-circle {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 0 3px rgba(0,0,0,0.35);
  position: relative; z-index: 1;
}

.feature-card-body h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}

.feature-card-body .feature-sub {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.55;
}

.feature-card-body p {
  font-size: 14px; color: var(--text-mid); line-height: 1.65;
}

.feature-screenshot-wrap {
  display: flex; justify-content: center;
  padding: 0 32px;
}

.feature-screenshot {
  width: 150px;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.55);
}

/* -- Train (Gold) -- */
.card-train .feature-card-body {
  background: linear-gradient(145deg, #251500, #160b00);
}
.card-train .feature-card-body::before {
  background: radial-gradient(circle, #c78a3d, transparent);
}
.card-train .feature-circle {
  background: radial-gradient(circle at 38% 30%, #f5d28a, #c78a3d 50%, #852e0f);
}
.card-train .feature-sub { color: #f5d28a; }
.card-train .feature-screenshot-wrap {
  background: linear-gradient(180deg, #160b00, var(--bg1));
}

/* -- Capture (Teal) -- */
.card-capture .feature-card-body {
  background: linear-gradient(145deg, #051422, #030c18);
}
.card-capture .feature-card-body::before {
  background: radial-gradient(circle, #296189, transparent);
}
.card-capture .feature-circle {
  background: radial-gradient(circle at 38% 30%, #52999e, #296189 50%, #14335c);
}
.card-capture .feature-sub { color: #52999e; }
.card-capture .feature-screenshot-wrap {
  background: linear-gradient(180deg, #030c18, var(--bg1));
}

/* -- Analysis (Purple) -- */
.card-analysis .feature-card-body {
  background: linear-gradient(145deg, #110820, #09040f);
}
.card-analysis .feature-card-body::before {
  background: radial-gradient(circle, #421e66, transparent);
}
.card-analysis .feature-circle {
  background: radial-gradient(circle at 38% 30%, #7b4aa6, #421e66 50%, #240f3d);
}
.card-analysis .feature-sub { color: #9b6bc4; }
.card-analysis .feature-screenshot-wrap {
  background: linear-gradient(180deg, #09040f, var(--bg1));
}

/* ============================================================
   ENGINE SECTION
   ============================================================ */
.engine {
  padding: 110px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.engine::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(154,31,31,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.engine-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.engine-badge {
  display: inline-block; margin-bottom: 24px;
  padding: 6px 18px; border-radius: 20px;
  background: rgba(154,31,31,0.18);
  border: 1px solid rgba(154,31,31,0.40);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #ff9090;
}

.engine h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700; margin-bottom: 20px;
}

.engine p {
  font-size: 16px; color: var(--text-mid);
  line-height: 1.80; margin-bottom: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 52px;
}

.stat-box {
  padding: 28px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(222,184,135,0.10);
  border-radius: 18px;
  transition: border-color 0.3s;
}

.stat-box:hover { border-color: rgba(222,184,135,0.24); }

.stat-value {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 30px; font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 44px 5% 32px;
  border-top: 1px solid rgba(222,184,135,0.07);
  background: var(--bg0);
}

.footer-inner {
  max-width: 1160px; margin: 0 auto;
}

.footer-top {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand-col .footer-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

.footer-brand-col p {
  font-size: 12px; color: var(--text-dim);
  max-width: 220px; line-height: 1.5;
}

.footer-nav h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 14px;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  text-decoration: none; font-size: 13px;
  color: var(--text-dim); transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-copy {
  font-size: 11px; color: var(--text-dim);
}

.footer-legal {
  display: flex; gap: 20px; list-style: none;
}

.footer-legal a {
  text-decoration: none; font-size: 11px;
  color: var(--text-dim); transition: color 0.2s;
}

.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   INNER PAGES (privacy / support)
   ============================================================ */
.page-hero {
  padding: 130px 5% 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  border-bottom: 1px solid rgba(222,184,135,0.07);
}

.page-hero h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; margin-bottom: 12px;
}

.page-hero p {
  font-size: 14px; color: var(--text-dim);
  letter-spacing: 0.3px;
}

.page-content {
  max-width: 760px; margin: 0 auto;
  padding: 64px 5% 100px;
}

.page-content h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: var(--gold);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(222,184,135,0.12);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p, .page-content li {
  font-size: 15px; color: var(--text-mid);
  line-height: 1.80; margin-bottom: 14px;
}

.page-content ul, .page-content ol {
  padding-left: 22px; margin-bottom: 14px;
}

.page-content li { margin-bottom: 8px; }

.page-content a { color: var(--gold); text-decoration: underline; }
.page-content a:hover { color: var(--gold-bright); }

.page-content strong { color: var(--white); font-weight: 600; }

/* Support FAQ */
.faq-item {
  border: 1px solid rgba(222,184,135,0.10);
  border-radius: 14px; padding: 22px 24px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.02);
}

.faq-q {
  font-size: 15px; font-weight: 600;
  color: var(--white); margin-bottom: 8px;
}

.faq-a {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.70; margin: 0 !important;
}

.contact-box {
  margin-top: 48px; padding: 32px;
  border: 1px solid rgba(222,184,135,0.18);
  border-radius: 18px;
  background: rgba(222,184,135,0.04);
  text-align: center;
}

.contact-box h2 { margin-top: 0; border: none; }

.contact-box p { font-size: 15px; color: var(--text-mid); }

.btn-contact {
  display: inline-block; margin-top: 18px;
  padding: 12px 28px; border-radius: 12px;
  background: var(--gold-faint);
  border: 1px solid rgba(222,184,135,0.28);
  text-decoration: none;
  color: var(--gold); font-weight: 600; font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-contact:hover {
  background: rgba(222,184,135,0.15) !important;
  border-color: rgba(222,184,135,0.45);
  text-decoration: none !important;
}

/* ----- Footer Social Icons ----- */
.footer-social {
  display: flex; gap: 10px; margin-top: 14px;
}

.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(222,184,135,0.12);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(222,184,135,0.12);
  border-color: rgba(222,184,135,0.35);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px; height: 16px;
  fill: var(--text-dim);
  transition: fill 0.2s;
}

.footer-social a:hover svg { fill: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav { padding: 14px 24px; }

  .hero-inner {
    flex-direction: column;
    gap: 52px;
    text-align: center;
  }

  .hero-icon { margin-left: auto; margin-right: auto; }

  .divider { margin-left: auto; margin-right: auto; }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .cta-wrap { justify-content: center; }

  .hero-mockup { order: -1; }

  .phone-frame { width: 220px; }

  .stats-row { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }

  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand-col p { margin: 0 auto; }
  .footer-bottom { justify-content: center; }
}

@media (max-width: 480px) {
  .nav-links .nav-hide-sm { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .page-content { padding: 48px 5% 80px; }

  /* Tighter nav on small phones — prevent overlap */
  .nav { padding: 10px 16px; }
  .nav-brand-name { font-size: 14px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 6px 14px; font-size: 12px; }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(222,184,135,0.20);
  border-radius: 10px;
  color: var(--gold-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 11px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(222,184,135,0.13);
  border-color: rgba(222,184,135,0.40);
  color: var(--gold);
}
