/* Avirka micro-landing — Frakma brand system */
:root {
  --brand-50:  #ECFDF5;
  --brand-100: #D1FAE5;
  --brand-300: #6EE7B7;
  --brand-500: #10B981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-900: #064E3B;

  --frakma:    #0E7490;
  --frakma-700:#0C5A75;

  --ink-0:     #FFFFFF;
  --ink-50:    #F8FAFC;
  --ink-100:   #F1F5F9;
  --ink-200:   #E2E8F0;
  --ink-300:   #CBD5E1;
  --ink-400:   #94A3B8;
  --ink-500:   #64748B;
  --ink-700:   #334155;
  --ink-800:   #1E293B;
  --ink-900:   #0F172A;

  --red:       #EF4444;
  --amber:     #F59E0B;
  --purple:    #8B5CF6;
  --grey:      #6B7280;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.12);

  --max:       1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, .mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-900); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.brand-mark {
  display: inline-block; width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  position: relative;
  box-shadow: 0 2px 8px rgba(16,185,129,.4);
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 14 L9 4 L15 14 M5.5 11 H12.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.brand-by { color: var(--ink-500); font-size: 13px; font-weight: 500; }
.tm {
  font-size: .55em;
  vertical-align: super;
  margin-left: 1px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-500);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink-900); }
.cta-link { color: var(--brand-700) !important; font-weight: 600 !important; }

@media (max-width: 700px) {
  .nav-links a:not(.cta-link) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 30%, rgba(14,116,144,.08), transparent 60%);
  border-bottom: 1px solid var(--ink-100);
}
.badge {
  display: inline-block;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 24px;
  max-width: 880px;
}
.grad {
  background: linear-gradient(135deg, var(--brand-500), var(--frakma));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: 20px; line-height: 1.55;
  color: var(--ink-700);
  max-width: 720px;
  margin: 0 0 12px;
}
.lede strong { color: var(--ink-900); font-weight: 700; }
.sub {
  font-size: 16.5px; color: var(--ink-500);
  max-width: 720px;
  margin: 0 0 36px;
}
.sub code {
  background: var(--ink-100);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-800);
}

.hero-meta {
  margin-top: 36px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--ink-700);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- WAITLIST ---------- */
.waitlist {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 540px;
  align-items: center;
}
.waitlist input[type="email"] {
  flex: 1 1 240px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--ink-0);
  transition: border-color .15s, box-shadow .15s;
}
.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.waitlist button {
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .1s, box-shadow .15s;
}
.waitlist button:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.waitlist button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.waitlist .thanks {
  display: block; flex-basis: 100%;
  color: var(--brand-700); font-size: 14.5px; font-weight: 600;
  margin-top: 6px;
}
.waitlist.large input[type="email"] { height: 56px; font-size: 16px; }
.waitlist.large button { height: 56px; font-size: 16px; padding: 0 28px; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--ink-50); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.eyebrow {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 720px;
}
.section-lede {
  font-size: 17px;
  color: var(--ink-500);
  max-width: 640px;
  margin: 0 0 48px;
}

.grid { display: grid; gap: 20px; }
.models { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- CARDS ---------- */
.card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.card-soon {
  background: linear-gradient(180deg, var(--ink-50), white);
  border-style: dashed;
  border-color: var(--ink-300);
}
.card h4 {
  margin: 14px 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-family: 'JetBrains Mono', monospace;
}
.card p {
  margin: 0 0 16px;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.55;
}
.card code {
  font-size: 12.5px;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}
.card-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-red    { color: #B91C1C !important; background: #FEE2E2 !important; }
.tag-amber  { color: #92400E !important; background: #FEF3C7 !important; }
.tag-green  { color: #065F46 !important; background: #D1FAE5 !important; }
.tag-purple { color: #5B21B6 !important; background: #EDE9FE !important; }
.tag-grey   { color: #374151 !important; background: var(--ink-100) !important; }

/* ---------- WHY ---------- */
.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 16px;
}
.why-cell {
  padding-top: 8px;
  border-top: 2px solid var(--brand-500);
}
.why-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 8px;
}
.why-cell h4 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.why-cell p {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.6;
}
.why-cell code {
  background: var(--ink-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-800);
}

/* ---------- TIMELINE ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.ph {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.ph-now {
  background: linear-gradient(180deg, var(--brand-50), white);
  border-color: var(--brand-300);
  box-shadow: 0 8px 24px rgba(16,185,129,.12);
}
.ph-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.ph-now .ph-label { background: var(--brand-100); }
.ph h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.ph ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.6;
}
.ph ul li { margin-bottom: 6px; }

/* ---------- CTA ---------- */
.section-cta {
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(16,185,129,.18), transparent 60%),
    var(--ink-900);
  color: white;
  text-align: center;
}
.section-cta .cta-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: white;
}
.section-cta .cta-sub {
  color: var(--ink-300);
  font-size: 16.5px;
  margin: 0 0 32px;
}
.section-cta .waitlist {
  margin: 0 auto;
  max-width: 540px;
}
.section-cta .waitlist input[type="email"] {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: white;
}
.section-cta .waitlist input[type="email"]::placeholder { color: var(--ink-400); }
.section-cta .waitlist .thanks { color: var(--brand-300); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink-50);
  border-top: 1px solid var(--ink-200);
  padding: 56px 0 32px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.footer-tag {
  font-size: 13.5px;
  color: var(--ink-500);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 14.5px;
}
.footer-links a:hover { color: var(--ink-900); }
.footer-fine {
  border-top: 1px solid var(--ink-200);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.65;
}
.footer-fine p { margin: 0 0 10px; }
.footer-fine strong { color: var(--ink-700); }
.footer-fine code {
  font-size: 12px;
  background: var(--ink-100);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-700);
}
.footer-fine .meta { color: var(--ink-400); font-size: 12px; }

/* ---------- SOCIAL PROOF ---------- */
.social-proof {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-500);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.social-proof strong { color: var(--ink-800); font-weight: 700; }
.avatars { display: inline-flex; }
.avatars > span {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 2px solid white;
  margin-left: -8px;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.avatars > span:first-child { margin-left: 0; }
.avatars > span:nth-child(2) { background: linear-gradient(135deg, #FCA5A5, #B91C1C); }
.avatars > span:nth-child(3) { background: linear-gradient(135deg, #FCD34D, #92400E); }
.avatars > span:nth-child(4) { background: linear-gradient(135deg, #A5B4FC, #4338CA); }
.avatars > span:nth-child(5) { background: linear-gradient(135deg, #C4B5FD, #6D28D9); }

/* ---------- WAITLIST: extras ---------- */
.waitlist .err {
  display: block; flex-basis: 100%;
  color: var(--red); font-size: 14px; font-weight: 500;
  margin-top: 6px;
}
.waitlist.large {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.waitlist.large input { width: 100%; }
.waitlist.large button { width: 100%; }

.section-cta .waitlist.large input[type="text"],
.section-cta .waitlist.large input[type="email"] {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: white;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  border-width: 1px;
  border-style: solid;
}
.section-cta .waitlist.large input::placeholder { color: var(--ink-400); }
.cta-fine {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-400);
}

/* ---------- VALUE-PROP TRIO ---------- */
.trio { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 16px; }
.vp-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.vp-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.vp-card h4 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.vp-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 14.8px;
  line-height: 1.6;
}
.vp-card code {
  background: var(--ink-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-800);
}

/* ---------- DEMO ---------- */
.demo-frame {
  margin: 0 0 48px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: white;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.demo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 40%, rgba(16,185,129,.10), transparent 60%),
    linear-gradient(135deg, var(--ink-50), var(--ink-100));
  color: var(--ink-500);
}
.demo-play {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(16,185,129,.4);
}
.demo-text { font-size: 14px; font-weight: 500; }

/* ---------- PARTNER STRIP ---------- */
.partner-strip {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.partner-label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.partner-track {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  flex: 1;
}
.partner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
  opacity: .85;
}
@media (max-width: 640px) {
  .partner-strip { flex-direction: column; align-items: flex-start; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 16px; }
.faq details {
  border-top: 1px solid var(--ink-200);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -.005em;
  color: var(--ink-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--brand-700);
  transition: transform .15s;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--brand-700); }
.faq summary:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq .faq-body {
  padding-top: 12px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
}
.faq .faq-body p { margin: 0; }
.faq .faq-body code {
  background: var(--ink-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-800);
}

/* ---------- MEANING ---------- */
.meaning-lede {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-700);
  margin: 0 0 36px;
  padding: 20px 22px;
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.meaning-lede strong { color: var(--ink-900); font-weight: 700; }
.meaning-h {
  margin: 32px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--ink-900);
}
#meaning p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-700);
}
#meaning p:last-child { margin-bottom: 0; }
#meaning em { color: var(--brand-700); font-style: italic; }
#meaning strong { color: var(--ink-900); }
