/* MEFIK pre-launch — brand tokens from the main app (src/app/globals.css) */
:root {
  --ink: #101110; --graphite: #1d201d; --graphite-2: #262a26; --line: #2e332e;
  --paper: #f5f5f0; --ash: #92988f; --ash-2: #6c7169; --lime: #c1ff4d; --lime-dim: #a6dd3f; --danger: #ff6b5c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans Hebrew", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
::selection { background: var(--lime); color: var(--ink); }
a { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ambient light + grain */
.glow { position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background: radial-gradient(40vmax 40vmax at 75% 10%, rgba(193, 255, 77, .13), transparent 60%), radial-gradient(35vmax 35vmax at 10% 80%, rgba(193, 255, 77, .06), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-4vmax, 3vmax, 0) scale(1.08); } }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(12px); background: rgba(16, 17, 16, .72); border-bottom: 1px solid rgba(46, 51, 46, .6); }
.brand img { height: 30px; width: auto; }
.top-cta { background: transparent; font-family: inherit; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--paper); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s var(--ease), color .3s var(--ease); }
.top-cta:hover { border-color: var(--lime); color: var(--lime); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: clamp(56px, 9vw, 112px) 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.accent { color: var(--lime); }

/* hero */
.hero { text-align: center; padding-top: clamp(64px, 12vw, 140px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; letter-spacing: .38em; font-weight: 600; color: var(--lime); padding: 7px 16px 7px 13px; border: 1px solid rgba(193, 255, 77, .35); border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(193, 255, 77, .6); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(193, 255, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(193, 255, 77, 0); } }
.soon { margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 22px); color: var(--ash); font-weight: 500; }
.slogan { margin: 18px auto 0; font-size: clamp(44px, 9vw, 104px); font-weight: 700; max-width: 14ch; }
.slogan span { display: inline-block; }
.lead { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: #c9ccc5; }
.hero .btn { margin-top: 34px; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ash-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 40px -12px rgba(193, 255, 77, .55); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -12px rgba(193, 255, 77, .7); }
.btn-lime:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* steps */
.how h2 { text-align: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { background: linear-gradient(180deg, var(--graphite), rgba(29, 32, 29, .6)); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.steps li:hover { border-color: rgba(193, 255, 77, .4); transform: translateY(-3px); }
.num { font-size: 13px; font-weight: 700; color: var(--lime); letter-spacing: .2em; }
.steps h3 { margin-top: 12px; font-size: 22px; }
.steps p { margin: 8px 0 0; color: var(--ash); }

/* showcase */
.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.show-copy p { color: #c9ccc5; font-size: 18px; max-width: 46ch; }
.phone { margin: 0 auto; width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2b302b, #161816); border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(193, 255, 77, .35), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #000; }

/* benefit + form */
.benefit-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 6vw, 64px); background: linear-gradient(180deg, rgba(38, 42, 38, .9), rgba(29, 32, 29, .9)); border: 1px solid rgba(193, 255, 77, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.benefit-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(193, 255, 77, .8) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 7s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --a: 360deg; } }
.badge { display: inline-block; margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--lime); padding: 5px 12px; border-radius: 999px; }
.benefit h2 { margin-top: 18px; max-width: 20ch; }
.benefit-text { color: #c9ccc5; font-size: 18px; max-width: 52ch; }
.join { margin-top: 26px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 280px; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(16, 17, 16, .7); color: var(--paper); font: inherit; font-size: 17px; text-align: left; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input::placeholder { color: var(--ash-2); }
.field input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(193, 255, 77, .14); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--ash); cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--lime); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 14px; min-height: 0; }
.form-error { margin: 12px 0 0; color: var(--danger); font-weight: 500; }
.success { text-align: center; padding: 18px 0 4px; animation: rise .7s var(--ease) both; }
.success h3 { font-size: 26px; margin-top: 14px; }
.success p { color: #c9ccc5; }
.check { width: 72px; height: 72px; margin: 0 auto; }
.check circle { fill: none; stroke: var(--lime); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.check path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* faq */
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ash); margin: 10px 0 0; }

.foot { text-align: center; padding: 48px 16px 60px; color: var(--ash-2); font-size: 14px; border-top: 1px solid rgba(46, 51, 46, .6); }
.foot img { margin: 0 auto 12px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--ash); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* status pages (confirm / unsubscribe) and the privacy page */
.status-page { display: grid; place-items: center; padding: 24px; }
.status-card { max-width: 520px; width: 100%; background: var(--graphite); border: 1px solid var(--line); border-radius: 20px; padding: 36px; text-align: center; animation: rise .7s var(--ease) both; }
.status-card.ok { border-color: rgba(193, 255, 77, .35); }
.status-card h1 { font-size: 26px; margin: 22px 0 10px; }
.status-card p { color: #c9ccc5; }
.status-card .btn { margin-top: 18px; background: var(--lime); color: var(--ink); }
.status-card form + .btn-ghost, .status-card p + .btn-ghost { display: flex; width: fit-content; margin-inline: auto; }
.status-card form + .btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); min-height: 44px; font-weight: 600; }
.status-logo img { margin: 0 auto; height: 28px; width: auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 32px) 80px; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: #c9ccc5; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; text-align: center; }
  .show-copy p { margin-inline: auto; }
  .field .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
