/* AppElixir — beautiful, dark-mode landing
   Palette: deep violet base, gemstone accents.
   No JS for layout. System font stack for instant FCP. */

:root {
  --bg: #0a0613;
  --bg-2: #100a22;
  --bg-3: #160e2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ece6ff;
  --text-dim: rgba(236, 230, 255, 0.7);
  --text-muted: rgba(236, 230, 255, 0.5);

  --accent: #a78bfa;          /* violet */
  --accent-2: #22d3ee;         /* cyan */
  --accent-3: #f0abfc;         /* magenta */

  --amber: #fbbf24;
  --emerald: #34d399;
  --ruby: #f43f5e;
  --sapphire: #38bdf8;

  --grad-hero: radial-gradient(ellipse at top, rgba(167, 139, 250, 0.25), transparent 60%),
               radial-gradient(ellipse at bottom right, rgba(34, 211, 238, 0.15), transparent 60%);
  --grad-brand: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-emerald: linear-gradient(135deg, #34d399, #059669);
  --grad-ruby: linear-gradient(135deg, #f43f5e, #be123c);
  --grad-sapphire: linear-gradient(135deg, #38bdf8, #0ea5e9);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 28px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 500px at 90% -10%, rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(34,211,238,0.12), transparent 60%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 6, 19, 0.65);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; }
.brand-text {
  font-size: 19px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav { display: flex; gap: 28px; justify-content: center; }
.site-nav a { color: var(--text-dim); font-size: 15px; transition: color .15s; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 800px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--grad-brand);
  color: #0b0817;
  box-shadow: 0 6px 20px rgba(167,139,250,0.35), 0 1px 0 rgba(255,255,255,0.4) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(167,139,250,0.45), 0 1px 0 rgba(255,255,255,0.5) inset; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); }
.btn-block { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent); }
.section-header { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 19px; margin-bottom: 8px; }
h4 { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 100px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 18px 0 28px;
}
.hero h1 br { display: block; }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}
.hero-trust span:nth-child(odd) { color: var(--text-dim); font-weight: 500; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1;
  background: var(--grad-hero);
  pointer-events: none;
}

/* ===== Grids ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Feature cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #0a0613;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* ===== Steps ===== */
.steps .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.step-num {
  font-size: 13px; font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* ===== Use cases ===== */
.use-cases .case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.use-cases h3 { margin-bottom: 18px; font-size: 22px; }
.use-cases li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: 15px; }
.use-cases li:last-child { border-bottom: 0; }
.use-cases li::before { content: "→ "; color: var(--accent); margin-right: 6px; }

/* ===== Pricing ===== */
.pricing { gap: 18px; align-items: stretch; }
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.tier:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tier header { margin-bottom: 18px; }
.tier-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.06);
}
.tier-amber .tier-badge   { color: #1a1206; background: var(--grad-amber); }
.tier-emerald .tier-badge { color: #04221a; background: var(--grad-emerald); }
.tier-ruby .tier-badge    { color: #260615; background: var(--grad-ruby); }
.tier-sapphire .tier-badge{ color: #061b29; background: var(--grad-sapphire); }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tier-price .amt { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.tier-price .per { color: var(--text-muted); font-size: 14px; }
.tier-tag { color: var(--text-dim); font-size: 14px; margin: 0; }
.tier ul { flex: 1; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tier li { padding: 7px 0; color: var(--text-dim); font-size: 14px; }
.tier li::before { content: "✓ "; color: var(--accent); font-weight: 700; margin-right: 4px; }
.tier-featured { border-color: rgba(244,63,94,0.4); box-shadow: 0 12px 40px rgba(244,63,94,0.12); }
.tier-flag {
  position: absolute; top: -10px; right: 14px;
  background: var(--grad-ruby); color: #260615;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

/* ===== Contact form ===== */
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.contact-form .btn { justify-self: start; padding: 12px 28px; }
.hp { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 60px clamp(20px, 5vw, 64px) 30px;
  background: rgba(0,0,0,0.2);
}
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); margin-top: 10px; max-width: 320px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols a { display: block; padding: 4px 0; color: var(--text-dim); font-size: 14px; }
.footer-cols a:hover { color: var(--text); }
.footer-cols p { color: var(--text-dim); font-size: 14px; margin: 0; }
.footer-meta {
  max-width: 1240px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  color: var(--text-muted); font-size: 13px;
}
@media (max-width: 600px) { .footer-meta { flex-direction: column; gap: 6px; } }

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
