/* ============================================================
   NextTurnAI — Global Stylesheet
   nextturnai.in
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --ink:        #08080f;
  --paper:      #f4f2ed;
  --white:      #ffffff;
  --accent:     #ff4d1c;
  --accent-dim: rgba(255,77,28,0.12);
  --green:      #00c48c;
  --yellow:     #fbbf24;
  --purple:     #7c3aed;
  --purple-dim: rgba(124,58,237,0.12);
  --muted:      #7a7a8a;
  --border:     rgba(8,8,15,0.09);
  --border-w:   rgba(255,255,255,0.09);
  --shadow-sm:  0 2px 12px rgba(8,8,15,0.07);
  --shadow-md:  0 8px 40px rgba(8,8,15,0.12);
  --shadow-lg:  0 24px 80px rgba(8,8,15,0.18);
  --nav-h:      68px;
  --r-sm:       14px;
  --r-md:       22px;
  --r-lg:       32px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--accent); color: #fff; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
p { line-height: 1.7; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(8,8,15,0.72);
  border-bottom: 1px solid var(--border-w);
  transition: all 0.3s;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 8px 16px; border-radius: 100px;
  color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta {
  padding: 9px 22px; border-radius: 100px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  transition: all 0.25s; cursor: pointer;
  border: none; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(255,77,28,0.35);
}
.nav-cta:hover { background: #e03c0f; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,77,28,0.45); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* ── SECTION BASE ── */
.section { padding: 100px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; display: block;
}
.section-title { font-size: clamp(38px, 5vw, 68px); margin-bottom: 20px; }
.section-subtitle { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.25s; border: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 24px rgba(255,77,28,0.35); }
.btn-primary:hover { background: #e03c0f; transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255,77,28,0.45); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 4px 24px rgba(124,58,237,0.35); }
.btn-purple:hover { background: #6d28d9; transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--r-md);
  border: 1px solid var(--border); padding: 32px;
  transition: all 0.3s cubic-bezier(0.34,1.2,0.64,1);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-w);
  border-radius: var(--r-md); padding: 32px;
  transition: all 0.3s;
}
.card-dark:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.badge-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,77,28,0.25); }
.badge-green  { background: rgba(0,196,140,0.12); color: var(--green); border: 1px solid rgba(0,196,140,0.25); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(124,58,237,0.25); }

/* ── FADE IN ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
.footer {
  background: var(--ink); padding: 80px 40px 40px;
  border-top: 1px solid var(--border-w);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand .logo { font-family:'Syne',sans-serif; font-size:24px; font-weight:800; color:#fff; }
.footer-brand .logo span { color:var(--accent); }
.footer-brand p { font-size:14px; color:rgba(255,255,255,0.4); margin-top:12px; max-width:260px; line-height:1.7; }
.footer-brand .domain { font-family:'JetBrains Mono',monospace; font-size:12px; color:rgba(255,255,255,0.25); margin-top:16px; letter-spacing:2px; }
.footer-col h4 { font-family:'Syne',sans-serif; font-size:14px; font-weight:700; color:#fff; margin-bottom:16px; }
.footer-col a { display:block; font-size:13px; color:rgba(255,255,255,0.38); margin-bottom:10px; transition:color 0.2s; }
.footer-col a:hover { color:rgba(255,255,255,0.75); }
.footer-bottom { border-top:1px solid var(--border-w); padding-top:28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:13px; color:rgba(255,255,255,0.22); }
.footer-apps { display:flex; gap:10px; }
.footer-app { padding:8px 18px; border-radius:100px; border:1px solid var(--border-w); font-size:12px; color:rgba(255,255,255,0.4); font-weight:600; }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--ink); flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800;
  color: rgba(255,255,255,0.5); padding: 12px 32px; border-radius: var(--r-md);
  transition: all 0.2s;
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-nav-close { position:absolute; top:24px; right:28px; font-size:28px; color:rgba(255,255,255,0.4); cursor:pointer; background:none; border:none; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-white  { color: #fff; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 70px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 16px; }
  .section-title { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
