/* ===== LaiDownloader web — style dùng chung ===== */
:root {
  --bg: #080c1c;
  --bg-2: #0b1024;
  --bg-soft: #0d1430;
  --card: #121a34;
  --card-2: #18224a;
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(79,140,255,0.45);
  --text: #eef2fb;
  --dim: #9aa7c7;
  --faint: #616f93;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,12,28,0.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(79,140,255,0.4);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--dim); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px; border: none;
  padding: 12px 22px; border-radius: 12px; transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px rgba(79,140,255,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,140,255,0.5); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hi); background: rgba(255,255,255,0.09); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(79,140,255,0.22), rgba(34,211,238,0.08) 40%, transparent 68%);
  filter: blur(20px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px;
  background: rgba(79,140,255,0.12); border: 1px solid rgba(79,140,255,0.3);
  color: var(--accent-2); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--dim); font-size: 18px; margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }

/* App mockup */
.mockup {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.mk-bar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--border); background: #0c1226; }
.mk-dots { display: flex; gap: 6px; }
.mk-dot { width: 11px; height: 11px; border-radius: 50%; }
.mk-body { padding: 18px; }
.mk-input { background: #0a1024; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--faint); font-size: 13px; }
.mk-row { display: flex; gap: 10px; margin-top: 12px; }
.mk-pill { flex: 1; text-align: center; padding: 9px; border-radius: 8px; background: #0a1024; border: 1px solid var(--border); font-size: 12px; color: var(--dim); }
.mk-pill.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; font-weight: 600; }
.mk-item { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; background: #0a1024; border-radius: 10px; border: 1px solid var(--border); }
.mk-thumb { width: 58px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #22304f, #16203c); flex-shrink: 0; }
.mk-lines { flex: 1; }
.mk-line { height: 8px; border-radius: 4px; background: #1c2848; }
.mk-line.sm { width: 55%; margin-top: 7px; height: 6px; }
.mk-prog { height: 6px; border-radius: 3px; background: #0f1730; margin-top: 12px; overflow: hidden; }
.mk-prog > div { height: 100%; width: 68%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; text-wrap: balance; }
.section-head p { color: var(--dim); font-size: 17px; margin-top: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--card), rgba(24,34,74,0.5));
  border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  transition: transform 0.18s, border-color 0.18s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(79,140,255,0.14); color: var(--accent-2);
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--dim); font-size: 14.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.step-num { font-size: 40px; font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.9; }
.step h3 { font-size: 17px; font-weight: 700; margin: 12px 0 7px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), rgba(24,34,74,0.4));
  border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px; position: relative;
}
.price.pop { border-color: var(--accent); box-shadow: 0 20px 50px rgba(79,140,255,0.2); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.price h3 { font-size: 18px; font-weight: 700; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price .amount span { font-size: 16px; font-weight: 500; color: var(--dim); }
.price .tokens { color: var(--accent-2); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.price li { display: flex; align-items: flex-start; gap: 9px; color: var(--dim); font-size: 14.5px; }
.price li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* CTA band */
.cta-band {
  text-align: center; padding: 64px 40px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(34,211,238,0.1));
  border: 1px solid var(--border-hi);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { color: var(--dim); font-size: 17px; margin: 14px auto 28px; max-width: 520px; }

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

/* ===== Auth pages ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; overflow: hidden; }
.auth-wrap::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; background: radial-gradient(circle, rgba(79,140,255,0.2), transparent 65%); filter: blur(20px);
}
.auth-card { position: relative; width: 400px; max-width: 100%; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--border); border-radius: 20px; padding: 38px 34px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.auth-logo { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin: 0 auto 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px rgba(79,140,255,0.4); }
.auth-card h1 { text-align: center; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.auth-card .sub { text-align: center; color: var(--dim); font-size: 14px; margin-top: 6px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 600; color: var(--dim); }
.field input { background: #0a1024; border: 1px solid var(--border); border-radius: 11px; padding: 13px 15px; color: var(--text); font-size: 15px; font-family: inherit; transition: border-color 0.15s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,0.13); }
.auth-error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; font-size: 13px; padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--dim); font-size: 14px; }
.auth-switch a { color: var(--accent-2); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-back { position: absolute; top: 24px; left: 24px; color: var(--dim); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; z-index: 5; }
.auth-back:hover { color: var(--text); }

/* Dashboard */
.dash-token { text-align: center; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(79,140,255,0.14), rgba(34,211,238,0.1)); border: 1px solid var(--border-hi); margin-bottom: 22px; }
.dash-token .big { font-size: 42px; font-weight: 800; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dash-token .lbl { color: var(--dim); font-size: 14px; }
.dash-email { text-align: center; color: var(--dim); font-size: 14px; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup { transform: none; margin-top: 20px; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade { animation: fadeUp 0.6s ease-out both; }
