/* weprojectmanagement.com — a WeWorld Tech product, on the weworld.tech design system: "night" bands (header,
   opening, connectors, call to action, footer) stay dark in both themes; light bands follow the theme. */
:root {
  color-scheme: light;
  --night: #0e0a1a;
  --night-2: #161027;
  --on-night: #f3effc;
  --on-night-muted: #b7aed3;
  --night-line: rgba(243, 239, 252, 0.13);
  --night-line-strong: rgba(243, 239, 252, 0.26);
  --band-accent: #b9a2ff;
  --band-accent-strong: #cdbdff;
  --gold: #f2c46d;
  --bg: #faf9fd;
  --surface: #ffffff;
  --surface-2: #f3f0fa;
  --fg: #1c1630;
  --ink-2: #463f61;
  --muted: #5f5876;
  --line: #e4dfee;
  --line-strong: #cfc7df;
  --brand: #5b2bd6;
  --brand-strong: #4320a8;
  --brand-soft: #efe9fe;
  --on-brand: #ffffff;
  --grey: #b9b5cc;
  --ok-bg: #e3f4ea; --ok-fg: #155c3b;
  --err-bg: #fbe4e6; --err-fg: #8f1f29;
  --shadow: 0 24px 48px -28px rgba(28, 22, 48, 0.35);
  --shadow-lift: 0 34px 70px -34px rgba(28, 22, 48, 0.55);
  --font-display: "Readex Pro", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-accent: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --maxw: 1180px;
  --monogram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 22l6.6 21.5 6.7-14.2 6.7 14.2 6.6-21.5'/%3E%3Cpath d='M74 82l6.6 21.5 6.7-14.2 6.7 14.2 6.6-21.5'/%3E%3C/g%3E%3Cpath d='M52 14c.4 3 1.6 4.6 5 6.3-3.4 1.7-4.6 3.3-5 6.3-.4-3-1.6-4.6-5-6.3 3.4-1.7 4.6-3.3 5-6.3zM112 74c.4 3 1.6 4.6 5 6.3-3.4 1.7-4.6 3.3-5 6.3-.4-3-1.6-4.6-5-6.3 3.4-1.7 4.6-3.3 5-6.3z' fill='white'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #110e1a; --surface: #1a1626; --surface-2: #161220; --fg: #efebf9; --ink-2: #cfc7e6; --muted: #a9a1c2;
    --line: #2b2540; --line-strong: #3d3656; --brand: #9b7bff; --brand-strong: #c4b2ff; --brand-soft: #251c40; --on-brand: #120d22;
    --ok-bg: #10291d; --ok-fg: #8be0b6; --err-bg: #33121a; --err-fg: #ffaab2;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7); --shadow-lift: 0 34px 70px -30px rgba(0, 0, 0, 0.85);
    --night: #08060f; --night-2: #100b1c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110e1a; --surface: #1a1626; --surface-2: #161220; --fg: #efebf9; --ink-2: #cfc7e6; --muted: #a9a1c2;
  --line: #2b2540; --line-strong: #3d3656; --brand: #9b7bff; --brand-strong: #c4b2ff; --brand-soft: #251c40; --on-brand: #120d22;
  --ok-bg: #10291d; --ok-fg: #8be0b6; --err-bg: #33121a; --err-fg: #ffaab2;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7); --shadow-lift: 0 34px 70px -30px rgba(0, 0, 0, 0.85);
  --night: #08060f; --night-2: #100b1c;
}

/* Night bands redefine the tokens: every component inside adapts without a dedicated rule. */
.site-head, .hero, .marquee, .dark-band, .page-hero, .cta, .site-foot, .card.premium {
  --fg: var(--on-night);
  --ink-2: #d9d2ef;
  --muted: var(--on-night-muted);
  --line: var(--night-line);
  --line-strong: var(--night-line-strong);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --brand-strong: var(--band-accent-strong);
  --brand-soft: rgba(155, 123, 255, 0.16);
  color: var(--fg);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 760px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1rem + 4.4vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.18rem; }
h1 em, h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--brand-strong); padding-right: 0.06em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.17rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 14px; }
.spark { width: 14px; height: 14px; flex: none; color: var(--gold); }

/* ---------- Header (night) ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--night); background: color-mix(in srgb, var(--night) 86%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--night-line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: 10px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--band-accent); }
.site-nav a.premium-link { display: inline-flex; align-items: center; gap: 5px; }
.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--band-accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon, .theme-btn .i-sun { display: none; }
:root[data-theme-choice="dark"] .theme-btn .i-auto, :root[data-theme-choice="light"] .theme-btn .i-auto { display: none; }
:root[data-theme-choice="dark"] .theme-btn .i-moon { display: block; }
:root[data-theme-choice="light"] .theme-btn .i-sun { display: block; }
.lang-btn { height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.86rem; }
.lang-btn:hover { border-color: var(--band-accent); }
.lang-btn svg { width: 16px; height: 16px; }
.menu-toggle { display: none; }

/* ---------- Buttons (pills) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.site-head .btn-primary, .hero .btn-primary, .page-hero .btn-primary, .dark-band .btn-primary { background: #7b4dff; color: #fff; }
.site-head .btn-primary:hover, .hero .btn-primary:hover, .dark-band .btn-primary:hover { background: #6a3cf0; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-light { background: #fff; color: #1c1630; }
.btn-light:hover { background: #efe9fe; }
.btn-outline-light { background: transparent; color: var(--on-night); border-color: var(--night-line-strong); }
.btn-outline-light:hover { border-color: var(--band-accent); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.9rem; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Opening (night, slow halos, monogram pattern, grain) ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob.b1 { width: 78vmax; height: 78vmax; top: -38vmax; right: -24vmax; background: radial-gradient(closest-side, rgba(123, 77, 255, 0.5), rgba(123, 77, 255, 0) 72%); }
.blob.b2 { width: 64vmax; height: 64vmax; bottom: -40vmax; left: -22vmax; background: radial-gradient(closest-side, rgba(233, 185, 73, 0.2), rgba(233, 185, 73, 0) 72%); }
.blob.b3 { width: 46vmax; height: 46vmax; top: 18%; left: 34%; background: radial-gradient(closest-side, rgba(18, 163, 154, 0.14), rgba(18, 163, 154, 0) 72%); }
@media (prefers-reduced-motion: no-preference) {
  .blob.b1 { animation: drift-a 28s ease-in-out infinite alternate; }
  .blob.b2 { animation: drift-b 34s ease-in-out infinite alternate; }
  .blob.b3 { animation: drift-c 40s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate(-10vmax, 9vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(12vmax, -7vmax) scale(1.18); } }
@keyframes drift-c { to { transform: translate(-8vmax, -6vmax) scale(0.86); } }
.monogram { position: absolute; inset: 0; opacity: 0.07; background-image: var(--monogram); background-size: 120px 120px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 10%, transparent 75%); }
.grain { position: absolute; inset: 0; opacity: 0.1; mix-blend-mode: overlay; 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1rem + 4.6vw, 4.7rem); margin-bottom: 22px; }
.hero h1 em { color: var(--band-accent-strong); }
.hero .lead { margin-bottom: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.95s var(--ease-out) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.2s; }
  .hero-text > :nth-child(4) { animation-delay: 0.3s; }
  .hero-text > :nth-child(5) { animation-delay: 0.4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.6em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.pill-new { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line-strong); color: var(--fg); font-size: 0.88rem; font-weight: 500; text-decoration: none; margin-bottom: 22px; }
.pill-new b { background: var(--gold); color: #1a1033; border-radius: 999px; padding: 2px 9px; font: 600 0.7rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.pill-new:hover { border-color: var(--band-accent); }
.hero-visual { position: relative; padding-bottom: 150px; }

/* Signature: the live control-tower panel */
.tower { background: rgba(14, 10, 26, 0.72); border: 1px solid var(--night-line-strong); border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tower-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tower-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.tower-head span { font: 500 0.74rem var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.tower table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tower th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.74rem; padding: 0 6px 8px; }
.tower td { padding: 10px 6px; border-top: 1px solid var(--night-line); vertical-align: middle; }
.tower td.name { font-weight: 600; }
.tower td.name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.sig { display: inline-flex; gap: 5px; }
.sig i { width: 11px; height: 11px; border-radius: 50%; background: var(--grey); transition: background-color 0.35s ease; }
.sig i.g { background: #2fa36d; } .sig i.o { background: #e0961d; } .sig i.r { background: #e2505c; }
.tower .state { font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.state.g { color: #6fd3a3; } .state.o { color: #f2b75a; } .state.r { color: #ff8a93; }
.tower tr.flag td { background: rgba(233, 185, 73, 0.09); }
.flag-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #1a1033; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.tower-foot { display: flex; gap: 18px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.tower-foot b { color: var(--fg); font-weight: 600; }
.tower.pending .sig i { background: rgba(255, 255, 255, 0.18) !important; }
.tower.pending .state, .tower.pending .flag-tag { opacity: 0; }
.tower .state, .tower .flag-tag { transition: opacity 0.4s ease 0.1s; }

/* We AI answering over the tower (always light, like a chat window) */
.ai-card { position: absolute; right: -18px; bottom: 0; width: min(380px, 88%); background: #fff; color: #1c1630; border-radius: 20px; padding: 14px 16px 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(28, 22, 48, 0.06); color-scheme: light; }
.ai-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.86rem; }
.ai-card-head img { width: 28px; height: 28px; }
.ai-card-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.ai-card-head span { color: #5f5876; font-size: 0.78rem; margin-left: auto; }
.bubble { border-radius: 16px; padding: 9px 12px; font-size: 0.86rem; line-height: 1.45; }
.bubble.me { background: #5b2bd6; color: #fff; margin-left: 18%; border-bottom-right-radius: 4px; }
.bubble.ai { background: #f1edf9; margin-top: 8px; border-bottom-left-radius: 4px; }
.bubble.ai b { color: #4320a8; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ai-chips span { font-size: 0.74rem; font-weight: 600; color: #4320a8; background: #efe9fe; border-radius: 999px; padding: 4px 10px; }
.ai-card.pending .bubble.ai, .ai-card.pending .ai-chips { opacity: 0; transform: translateY(6px); }
.ai-card .bubble.ai, .ai-card .ai-chips { transition: opacity 0.5s ease, transform 0.5s ease; }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8b6cf0; animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Marquee (night) */
.marquee { background: var(--night); border-top: 1px solid var(--night-line); overflow: hidden; padding: clamp(16px, 2.4vw, 24px) 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; }
.marquee-list li { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); padding-right: clamp(18px, 2.4vw, 32px); font-family: var(--font-display); font-size: clamp(1.2rem, 0.9rem + 1.3vw, 1.95rem); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: var(--fg); }
.marquee-list li:nth-child(even) { color: var(--muted); }
.marquee-list li::after { content: ""; width: 0.62em; height: 0.62em; flex: none; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.6 4.6 2.4 6.9 7.5 9.5-5.1 2.6-6.9 4.9-7.5 9.5-.6-4.6-2.4-6.9-7.5-9.5 5.1-2.6 6.9-4.9 7.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c.6 4.6 2.4 6.9 7.5 9.5-5.1 2.6-6.9 4.9-7.5 9.5-.6-4.6-2.4-6.9-7.5-9.5 5.1-2.6 6.9-4.9 7.5-9.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.marquee.is-ready .marquee-track { animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-ready .marquee-track { animation: none; }
  .marquee-track { width: auto; padding: 0 20px; }
  .marquee-list { flex-wrap: wrap; row-gap: 8px; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 8vw, 100px) 0; }
.section-head { display: grid; gap: 12px; max-width: 780px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head h2, .section-head p { margin: 0; }
.band { background: var(--surface-2); }
.dark-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 100% 0%, rgba(123, 77, 255, 0.32), transparent 62%), radial-gradient(600px 400px at 0% 100%, rgba(233, 185, 73, 0.08), transparent 60%); }

/* Stats strip */
.proof { padding: clamp(40px, 5vw, 64px) 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof .wrap > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); min-width: 0; }
.proof strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--brand-strong); }
.proof span { color: var(--muted); font-size: 0.95rem; }

/* Feature rows (screenshot + text) */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 56px); align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); }
.feature.flip .shot { order: -1; }
.feature h3 { font-size: 1.65rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.feature .tag { margin-bottom: 12px; }
.feature ul, .checks { margin: 0; padding: 0; list-style: none; }
.feature li, .checks li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.feature li::before, .checks li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; background: var(--brand); transform: rotate(45deg); border-radius: 1px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--surface); }
.shot img { width: 100%; height: auto; }

/* Cards (plain surfaces, no coloured side rule) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.6em; }
.card .meta { font: 500 0.78rem var(--font-mono); letter-spacing: 0.02em; color: var(--brand-strong); }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 600 0.7rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--brand-strong); }
.tag.gold { border-color: rgba(233, 185, 73, 0.55); color: #8a5a00; background: rgba(242, 196, 109, 0.12); }
.card.premium .tag.gold, .dark-band .tag.gold { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.gold { color: var(--gold); } }
:root[data-theme="dark"] .tag.gold { color: var(--gold); }

/* Editions */
.range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.range .card { display: flex; flex-direction: column; position: relative; padding: 26px; }
.range .card .vs { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.range .card ul { padding-left: 0; list-style: none; margin: 6px 0 22px; color: var(--ink-2); font-size: 0.96rem; }
.range .card li { margin: 5px 0; padding-left: 22px; position: relative; }
.range .card li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); border-radius: 1px; }
.range .card .btn { margin-top: auto; align-self: flex-start; }
.card.premium { background: radial-gradient(520px 280px at 100% 0%, rgba(123, 77, 255, 0.5), transparent 62%), linear-gradient(160deg, #1d1250, var(--night)); border-color: rgba(155, 123, 255, 0.5); box-shadow: 0 30px 60px -30px rgba(91, 43, 214, 0.75); }
.range .card.premium li::before { background: var(--gold); }
.card.premium .badge { position: absolute; top: 20px; right: 20px; }

/* Connectors */
.connector-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.connector-group h3 { font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.connector-group h3 .icon { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
.connector-group h3 .icon svg { width: 19px; height: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-size: 0.86rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg); background: var(--surface); }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--brand-strong); margin-top: 2px; }
.trust p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.trust strong { color: var(--fg); display: block; font-family: var(--font-display); font-weight: 600; }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; padding-top: 18px; border-top: 2px solid var(--fg); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 0.82rem var(--font-mono); letter-spacing: 0.08em; color: var(--brand-strong); margin-bottom: 10px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { font-size: 0.95rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 1080px; }
table.cmp.narrow { min-width: 760px; }
table.cmp th, table.cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; min-width: 230px; }
table.cmp thead th { background: var(--surface-2); font-weight: 600; font-size: 0.84rem; }
table.cmp td.us, table.cmp th.us { background: var(--brand-soft); font-weight: 600; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp.left td, table.cmp.left th { text-align: left; }
table.cmp sup { color: var(--brand-strong); font-weight: 700; }
.dot-full, .dot-half, .dot-none { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.dot-full { background: var(--brand); }
.dot-half { background: linear-gradient(90deg, var(--brand) 50%, var(--line-strong) 50%); }
.dot-none { border: 1.5px solid var(--grey); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.legend span { display: inline-flex; gap: 7px; align-items: center; }

/* Pricing */
.switches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.toggle button { border: 0; background: none; min-height: 38px; padding: 0 16px; border-radius: 999px; font: 600 0.9rem var(--font-body); color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.price, .card .price { font-family: var(--font-display); font-size: 2.35rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 2px; color: var(--fg); }
.price small { font: 500 0.88rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan-note, .card .plan-note { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.card .price-sm { font-size: 1.6rem; }
[data-currency]:not(.on) { display: none; }
.enterprise { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.enterprise p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-strong); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 0.96rem; }

/* Call to action (night) */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--night); padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--night-line); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 92% 0%, rgba(123, 77, 255, 0.45), transparent 62%), radial-gradient(500px 300px at 0% 100%, rgba(233, 185, 73, 0.14), transparent 60%); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { max-width: 22ch; }
.cta p { color: var(--muted); margin: 12px 0 0; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--fg); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.form .check input { width: auto; min-height: 0; margin-top: 4px; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); margin-bottom: 18px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice.err { background: var(--err-bg); color: var(--err-fg); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.contact-line { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.contact-line:hover { color: var(--brand-strong); }
.contact-line svg { width: 18px; height: 18px; color: var(--brand-strong); flex: none; }

/* Inner page opening (night) */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 1rem + 3.6vw, 3.6rem); margin-bottom: 16px; }

/* Footer (night) */
.site-foot { background: var(--night); color: var(--muted); padding: 60px 0 0; font-size: 0.94rem; border-top: 1px solid var(--night-line); overflow: hidden; }
.site-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 30px; }
.site-foot .brand img { height: 32px; }
.site-foot h4 { color: var(--fg); font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: 4px 0; }
.site-foot a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { color: var(--fg); }
.site-foot p { color: var(--muted); }
.foot-mark { display: flex; justify-content: center; margin-top: clamp(28px, 5vw, 56px); user-select: none; pointer-events: none; }
.foot-mark span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 8.4rem); line-height: 0.95; letter-spacing: -0.05em; white-space: nowrap; background: linear-gradient(180deg, rgba(243, 239, 252, 0.9) 0%, rgba(185, 162, 255, 0.5) 55%, rgba(185, 162, 255, 0.04) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-foot .base { border-top: 1px solid var(--night-line); padding: 20px 0 max(26px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; }

@media (max-width: 1439px) {
  .head-actions .btn-ghost { display: none; }
  .brand img { height: 30px; }
  .site-nav { gap: 18px; }
}
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-head.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); padding: 12px max(24px, env(safe-area-inset-left, 0px)) 20px; border-bottom: 1px solid var(--night-line); margin: 0; gap: 2px; }
  .site-head.open .site-nav a { padding: 10px 0; font-size: 1.05rem; border-bottom: 0; }
}
@media (max-width: 980px) {
  .hero .wrap, .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .shot { order: 0; }
  .cards, .range, .cards.four, .connector-groups, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-card { right: 0; }
}
@media (max-width: 880px) {
  .head-actions .btn { display: none; }
  .site-head .wrap { gap: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards, .cards.two, .range, .cards.four, .steps, .form, .site-foot .cols, .connector-groups, .trust, .faq { grid-template-columns: minmax(0, 1fr); }
  .tower { padding: 16px 12px; }
  .tower th:nth-child(3), .tower td:nth-child(3) { display: none; }
  .hero-visual { padding-bottom: 0; }
  .ai-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .lang-btn span { display: none; }
  .lang-btn { width: 38px; padding: 0; justify-content: center; }
  .brand img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sig i, .tower .state, .tower .flag-tag, .ai-card .bubble.ai, .ai-card .ai-chips, .btn { transition: none; }
  .typing i { animation: none; }
}
