:root {
  --ink: #0b0a0f; --panel: #15131f; --panel-2: #1d1a2b; --line: #2a2740;
  --text: #f3f1ff; --muted: #9a95b5; --violet: #8b5cf6; --violet-2: #a78bfa; --gold: #f6c453;
  --radius: 14px; --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .frame { animation: none !important; opacity: 1 !important; transform: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 15px; cursor: pointer; }
.btn.primary { background: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-2); }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--muted); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* language */
.lang { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.lang:hover, .lang:focus-within { color: var(--text); background: var(--panel); }
.lang svg { width: 18px; height: 18px; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
html[lang="ar"] body { font-family: Cairo, Inter, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .plan .price { font-family: Cairo, sans-serif; letter-spacing: 0; }
html[lang="ar"] h1 { line-height: 1.25; }
html[dir="rtl"] .tool { grid-template-columns: 1fr 44px; }
html[dir="rtl"] .tool .ic { order: 2; }
html[dir="rtl"] .two li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .two li::before { left: auto; right: 0; }
html[dir="rtl"] .plan ul li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] nav .links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .hero { text-align: right; }
html[dir="rtl"] .hero.billboard { text-align: center; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(11,10,15,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--violet), #ec4899); display: grid; place-items: center; font-style: normal; font-family: Fraunces, serif; }
nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav .links a { text-decoration: none; color: var(--muted); }
nav .links a:hover { color: var(--text); }
nav .btn { padding: 9px 16px; }

/* hero */
.hero { padding: 88px 0 72px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 22px 0 10px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta small { color: var(--muted); font-size: 14px; }

/* production board — the one bold element */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.board .prompt { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.board .prompt b { color: var(--text); font-weight: 500; }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.frames::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44px; height: 1px; background: var(--line); }
.frame { position: relative; text-align: center; opacity: 0; transform: translateY(8px); animation: in .5s ease forwards; }
.frame:nth-child(1) { animation-delay: .2s } .frame:nth-child(2) { animation-delay: .55s } .frame:nth-child(3) { animation-delay: .9s } .frame:nth-child(4) { animation-delay: 1.25s } .frame:nth-child(5) { animation-delay: 1.6s }
@keyframes in { to { opacity: 1; transform: none; } }
.frame .box { aspect-ratio: 4/5; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.frame:nth-child(1) .box { background: linear-gradient(160deg, #2a2340, #1a1626); }
.frame:nth-child(2) .box { background: linear-gradient(160deg, #3a2d2a, #1f1a26); }
.frame:nth-child(3) .box { background: linear-gradient(160deg, #2a3348, #1a1c2b); }
.frame:nth-child(4) .box { background: linear-gradient(160deg, #2d3a33, #1a241f); }
.frame:nth-child(5) .box { background: linear-gradient(160deg, #3c3626, #241f17); }
.frame svg { width: 38%; height: auto; }
.frame span { font-size: 13px; color: var(--muted); }
.frame b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.board .note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.board .note em { color: var(--gold); font-style: normal; }

/* billboard hero (used when real showcase results exist): full-bleed, tiles stay in the outer margins */
.hero.billboard { grid-template-columns: 1fr; text-align: center; position: relative; padding: 110px 24px 90px; min-height: 680px; max-width: none; overflow: hidden; }
.hero.billboard > .copy { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero.billboard h1 { font-size: clamp(44px, 6.4vw, 88px); max-width: 14ch; margin: 0 auto; }
.hero.billboard p.lead { margin: 24px auto 10px; }
.hero.billboard .cta { justify-content: center; }
.hero.billboard .board { display: none; }
.float { position: absolute; width: 13vw; min-width: 150px; max-width: 230px; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); opacity: 0; animation: in .7s ease forwards; }
.float img, .float video { width: 100%; height: 100%; object-fit: cover; display: block; }
.float.f1 { left: 2.5%; top: 11%; transform: rotate(-4deg); animation-delay: .1s }
.float.f2 { right: 2.5%; top: 8%; transform: rotate(3deg); animation-delay: .3s }
.float.f3 { left: 4%; bottom: 6%; width: 11vw; transform: rotate(2deg); animation-delay: .5s }
.float.f4 { right: 4%; bottom: 5%; width: 12vw; transform: rotate(-3deg); animation-delay: .7s }
.float.f5, .float.f6 { display: none; }
@media (min-width: 1500px) {
  .float.f5 { display: block; left: 17%; top: 46%; width: 9vw; transform: rotate(5deg); animation-delay: .9s }
  .float.f6 { display: block; right: 17%; top: 44%; width: 9vw; transform: rotate(-6deg); animation-delay: 1.1s }
}
@media (max-width: 1100px) { .float.f3, .float.f4 { display: none; } .float { width: 16vw; } }
@media (max-width: 900px) { .float { display: none; } .hero.billboard { min-height: 0; padding: 64px 24px 48px; } }

/* showcase */
#showcase { display: none; }
.show-grid { column-count: 3; column-gap: 14px; }
.show-grid figure { break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.show-grid img, .show-grid video { width: 100%; display: block; }
.show-grid figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .show-grid { column-count: 2; } }
@media (max-width: 560px) { .show-grid { column-count: 1; } }

/* tools */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.intro { max-width: 58ch; margin-bottom: 44px; }
.intro p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; }
.tool { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tool .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--violet-2); }
.tool p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: s; }
.step::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* pricing */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 8px 0 36px; }
.toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.toggle button small { color: var(--gold); font-weight: 500; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.plan .price { font-family: Fraunces, serif; font-size: 40px; line-height: 1; margin: 14px 0 4px; }
.plan .price small { font-family: Inter, sans-serif; font-size: 14px; color: var(--muted); margin-left: 4px; }
.plan .credits { color: var(--gold); font-weight: 600; font-size: 15px; }
.plan .per { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.plan ul li::before { content: "✓"; color: var(--violet-2); margin-right: 8px; }
.plan .btn { margin-top: auto; justify-content: center; }
.credits-note { margin-top: 28px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.packs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.packs span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.packs span b { color: var(--gold); font-weight: 600; }

/* teams & safety */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.two li { padding-left: 26px; position: relative; color: var(--muted); font-size: 15px; }
.two li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.two li b { color: var(--text); font-weight: 600; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact > div p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.contact > div p a { color: var(--violet-2); text-decoration: none; }
.contact form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact label small { color: var(--muted); font-weight: 400; }
.contact input, .contact textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--violet); }
.contact textarea { resize: vertical; min-height: 120px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact button { justify-self: start; }
.contact .form-msg { font-size: 14px; color: var(--muted); margin: 0; }
.contact .form-msg.ok { color: #7ee2a8; }
.contact .form-msg.err { color: #f08c8c; }
.contact form.sent .row, .contact form.sent label, .contact form.sent button { display: none; }

/* final cta */
.final { text-align: center; padding: 96px 0; }
.final p { color: var(--muted); margin: 14px auto 28px; max-width: 48ch; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .grow { flex: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; gap: 40px; }
  .tools, .two, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  nav .links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .contact .row { grid-template-columns: 1fr; }
  .frame span { display: none; }
  section { padding: 56px 0; }
}
section.first { border-top: 0; padding-top: 56px; }
.btn.big { padding: 15px 28px; font-size: 17px; }
