/* ============================================
   AmberTime — Global Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080A;
  --bg-card:     #111114;
  --bg-subtle:   #18181C;
  --amber:       #FFBF00;
  --amber-dim:   rgba(255, 191, 0, .12);
  --amber-glow:  rgba(255, 191, 0, .06);
  --text:        #E8E8EC;
  --text-secondary: #9A9AA0;
  --text-tertiary:  #5C5C64;
  --border:      rgba(255, 255, 255, .06);
  --radius:      16px;
  --radius-sm:   10px;
  --max-width:   1080px;
  --font:        -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(8, 8, 10, .72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
}
.nav-brand .amber-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,191,0,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--amber); text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: var(--amber-dim);
  border: 1px solid rgba(255,191,0,.18);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero-title .amber { color: var(--amber); }
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: all .25s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--amber); color: #000;
  box-shadow: 0 0 24px rgba(255,191,0,.2);
}
.btn-primary:hover {
  opacity: 1; transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255,191,0,.35);
}
.btn-secondary {
  background: var(--bg-subtle); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { opacity: 1; background: var(--bg-card); border-color: rgba(255,255,255,.12); }
.btn svg { width: 18px; height: 18px; }

/* --- Section Headers --- */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.65;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.feature-card:hover {
  border-color: rgba(255,191,0,.15);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--amber-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 20px;
}
.feature-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.feature-card p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-secondary);
}

/* --- How It Works --- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 28px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
  opacity: .2;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid rgba(255,191,0,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px; font-weight: 800; color: var(--amber);
  position: relative; z-index: 1;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 260px; margin: 0 auto; }

/* --- Specs / Tech --- */
.specs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.spec-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.spec-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.spec-item strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.spec-item span { font-size: 13px; color: var(--text-secondary); }

/* --- CTA Banner --- */
.cta-banner {
  text-align: center; padding: 72px 24px;
  background: linear-gradient(180deg, var(--amber-glow) 0%, transparent 100%);
  border-top: 1px solid var(--border);
}
.cta-banner .section-title { margin-bottom: 12px; }
.cta-banner .section-desc { margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary); font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-tertiary); font-size: 13px; }
.footer-links a:hover { color: var(--text-secondary); }

/* --- Legal Pages (Privacy / Terms) --- */
.legal-page {
  padding-top: 100px; padding-bottom: 80px;
}
.legal-page h1 {
  font-size: 32px; font-weight: 800;
  margin-bottom: 8px;
}
.legal-page .legal-updated {
  font-size: 13px; color: var(--text-tertiary);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 20px; font-weight: 700;
  margin: 36px 0 12px; color: var(--text);
}
.legal-page p, .legal-page li {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 12px;
}
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--text); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .feature-grid    { grid-template-columns: 1fr; }
  .steps           { grid-template-columns: 1fr; gap: 40px; }
  .steps::before   { display: none; }
  .specs-grid      { grid-template-columns: 1fr; }
  .nav-links       { gap: 16px; }
  .nav-links a     { font-size: 13px; }
  .section         { padding: 64px 0; }
  .footer-inner    { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero            { padding: 100px 16px 60px; }
  .hero-cta        { flex-direction: column; align-items: center; }
  .btn             { width: 100%; justify-content: center; }
  .nav-links       { gap: 12px; }
}
