/* Nodalys Control Tower site
   Palette comes from the Control Tower product. One accent (terracotta), warm neutrals.
   Shape system: media and cells 20px, buttons fully rounded. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-greek-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  --bg: #F1EFEC;
  --surface: #FBFAF8;
  --line: #E2DDD7;
  --ink: #231F1C;
  --muted: #6F665E;
  --brand: #C2592E;
  --brand-ink: #9E4523;
  --brand-soft: #F6E5DC;
  --on-brand: #FFF8F3;
  --shadow: 0 1px 0 rgba(35, 31, 28, .04), 0 24px 60px -24px rgba(94, 60, 38, .28);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16130F;
    --surface: #201B17;
    --line: #352D27;
    --ink: #F0EAE4;
    --muted: #B3A79C;
    --brand: #DB6D40;
    --brand-ink: #F08A5D;
    --brand-soft: #2C1F18;
    --on-brand: #1A120D;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 24px 60px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16130F; --surface: #201B17; --line: #352D27; --ink: #F0EAE4; --muted: #B3A79C;
  --brand: #DB6D40; --brand-ink: #F08A5D; --brand-soft: #2C1F18; --on-brand: #1A120D;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 24px 60px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* theme-aware logos */
.logo-dark, .art-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .art-dark { display: block; } :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .art-light { display: none; } }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .art-dark { display: block; }
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .art-light { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost .ph { transition: transform .3s var(--ease); }
.btn-ghost:hover .ph { transform: translate(2px, 2px); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-lg { padding: 20px 32px; font-size: 18px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 32px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.lang-btn:hover { border-color: var(--ink); }
.lang-btn .ph { font-size: 17px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang-menu li button { width: 100%; display: flex; justify-content: space-between; gap: 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.lang-menu li button:hover, .lang-menu li button:focus-visible { background: var(--brand-soft); }
.lang-menu li button[aria-selected="true"] { color: var(--brand-ink); }
.lang-menu small { color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-inner { gap: 12px; justify-content: space-between; } .brand img { height: 28px; } }
@media (max-width: 420px) { .nav-actions .btn-sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  max-width: calc(var(--max) + (100vw - var(--max)) / 2); margin-left: max(0px, (100vw - var(--max)) / 2);
  padding: clamp(32px, 6vh, 72px) 0 clamp(48px, 8vh, 96px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  min-height: calc(100dvh - 72px);
}
.hero-title { font-size: clamp(42px, 4.9vw, 78px); letter-spacing: -0.045em; line-height: 1; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 34ch; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { margin: 0; position: relative; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--bg); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; margin: 0; max-width: none; padding: 32px var(--gutter) 64px; min-height: 0; }
  .hero-media { border-radius: var(--radius); }
}

/* ---------- Manifesto ---------- */
.manifesto { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 16vh, 180px) var(--gutter); }
.manifesto-a { font-size: clamp(30px, 4.2vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; max-width: 22ch; }
.manifesto-a .mw { opacity: .18; transition: opacity .2s linear; }
.manifesto-a .mw.on { opacity: 1; }
.manifesto-b { margin-top: 40px; margin-left: clamp(0px, 30vw, 420px); font-size: clamp(19px, 1.6vw, 24px); color: var(--muted); max-width: 30ch; }

/* ---------- Acts (pinned) ---------- */
.acts { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); }
.acts-stage { position: sticky; top: 96px; height: calc(100dvh - 128px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.stage-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #F1EFEC; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.stage-video.is-active { opacity: 1; transform: none; }
.stage-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.stage-progress li { height: 3px; flex: 0 0 28px; border-radius: 2px; background: var(--line); transition: background-color .4s, flex-basis .5s var(--ease); }
.stage-progress li.is-active { background: var(--brand); flex-basis: 56px; }
.act { min-height: 88dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.act h2 { font-size: clamp(30px, 3vw, 46px); }
.act p { color: var(--muted); font-size: 18px; max-width: 38ch; }
.act-icon { font-size: 30px; color: var(--brand); }
.act-still { display: none; }
@media (max-width: 900px) {
  .acts { grid-template-columns: 1fr; }
  .acts-stage { display: none; }
  .act { min-height: 0; padding: 48px 0; }
  .act-still { display: block; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 8px; }
}

/* ---------- Demo ---------- */
.demo { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 16vh, 160px) var(--gutter) 0; }
.demo-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.demo-head h2 { font-size: clamp(36px, 4.4vw, 64px); }
.demo-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.demo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.demo-frame:hover .demo-poster { transform: scale(1.02); }
.demo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(35, 31, 28, .28)); pointer-events: none; }
.demo-start { position: relative; z-index: 2; box-shadow: 0 18px 40px -12px rgba(158, 69, 35, .55); }
.demo-start .ph { font-size: 18px; }
.demo-mobile { display: none; position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 2; color: #FBFAF8; font-size: 14px; font-weight: 600; text-align: center; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: var(--bg); }
.demo-frame.is-live::after { display: none; }
@media (max-width: 700px) { .demo-frame { aspect-ratio: 4 / 5; } .demo-mobile { display: block; } }

/* ---------- How (bento) ---------- */
.how { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 16vh, 160px) var(--gutter); }
.how-title { font-size: clamp(32px, 3.6vw, 52px); max-width: 18ch; margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: 5fr 4fr; grid-template-rows: auto auto; gap: 16px; }
.cell { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; }
.cell h3 { font-size: 26px; }
.cell p { color: var(--muted); font-size: 17px; max-width: 34ch; }
.cell-data { grid-row: span 2; background: var(--brand-soft); justify-content: flex-end; min-height: 440px; }
.cell-art { position: absolute; top: -40px; right: -40px; width: 300px; opacity: .9; }
.cell-art img { width: 100%; height: auto; }
.cell-pilot { background: var(--surface); border: 1px solid var(--line); }
.cell-icon { font-size: 30px; color: var(--brand); margin-bottom: 8px; }
.cell-sme { padding: 0; background: var(--ink); color: var(--bg); min-height: 260px; justify-content: flex-end; }
.cell-sme .cell-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cell-sme .cell-text { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, transparent, rgba(22, 19, 15, .85) 55%); }
.cell-sme h3 { color: #F6F2EE; }
.cell-sme p { color: #E2DAD3; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .cell-data { grid-row: auto; min-height: 340px; } .cell-art { width: 220px; } }

/* ---------- Final CTA ---------- */
.final { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 140px) var(--gutter) clamp(96px, 16vh, 160px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(40px, 5.6vw, 88px); letter-spacing: -0.045em; max-width: 16ch; }
.final p { color: var(--muted); font-size: 19px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.foot img { height: 26px; width: auto; }

/* ---------- Motion preferences ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .manifesto-a .mw { opacity: 1; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}

/* inline header logo: ink follows the theme, the route draws itself on load */
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.logo-svg { height: 34px; width: auto; display: block; overflow: visible; }
@media (max-width: 860px) { .logo-svg { height: 28px; } }
.final-mail { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.final-mail:hover { color: var(--ink); }
