/* Cyber Sail Consulting – static site. All assets are local; no external requests. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  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;
}

:root {
  --navy: #0d1725;
  --navy-deep: #080f19;
  --panel: #13213a;
  --line: rgba(255, 255, 255, .1);
  --cyan: #47cfe2;
  --magenta: #e42086;
  --text: #ffffff;
  --muted: #cdd6e2;
  --slate: #1e2831;
  --header-h: 76px;
  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
  --sec-pad: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  display: block; margin-bottom: 14px;
  font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 28px; border-radius: 8px; border: 2px solid var(--magenta);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: .02em;
  text-decoration: none; text-align: center; color: #fff; background: var(--magenta);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #c41672; border-color: #c41672; }
.btn-outline { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn-outline:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: #1b2c47; border-color: #1b2c47; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; margin-top: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 23, 37, .96);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a, .nav .drop > a {
  font-size: 16px; line-height: 1; font-weight: 500; text-decoration: none; color: #fff;
  padding: 10px 0; display: inline-block; transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.nav .drop { position: relative; }
.nav .drop > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav .drop-menu {
  display: none; position: absolute; top: 100%; left: -18px; min-width: 240px;
  background: var(--navy); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; margin: 0; list-style: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.nav .drop:hover .drop-menu, .nav .drop:focus-within .drop-menu { display: block; }
.nav .drop-menu a {
  display: block; padding: 10px 12px; border-radius: 6px; font-size: 16px; line-height: 1.3;
  text-decoration: none; color: #fff;
}
.nav .drop-menu a:hover { background: rgba(255, 255, 255, .06); }
.nav .ico-li { display: inline-flex; padding: 0; }
.nav .ico-li svg { width: 22px; height: 22px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec-pad) 0; }
.sec-deep { background: var(--navy-deep); }
.sec-navy { background: var(--navy); }
.sec-cyan { background: var(--cyan); color: var(--navy); }
.sec-cyan .kicker { color: var(--navy); }
.sec-cyan .lead { color: #10243a; }
.sec-head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head .lead { margin-top: 18px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(8, 15, 25, .82) 22%, rgba(8, 15, 25, 0) 58%);
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 580px; padding: clamp(64px, 9vw, 128px) 0; }
.hero-copy .lead { margin-top: 22px; color: #e3e9f1; }
.hero-copy .btn-row { margin-top: 34px; }

/* ---------- Sail.Game teaser ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.product .wordmark { font-size: clamp(48px, 7vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.product .lead { margin-top: 22px; max-width: 520px; }
.product .btn { margin-top: 30px; }
.feature-list {
  list-style: none; margin: 0; padding: clamp(24px, 3vw, 36px);
  background: var(--navy); color: #fff; border-radius: var(--radius);
}
.feature-list li {
  position: relative; padding: 16px 0 16px 40px; font-size: 18px; line-height: 1.45;
  border-bottom: 1px solid var(--line);
}
.feature-list li:first-child { padding-top: 4px; }
.feature-list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 8px;
  border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg);
}
.feature-list li:first-child::before { top: 10px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card-grid > * { grid-column: span 2; }
.card-grid.five > :nth-child(4) { grid-column: 2 / span 2; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: #fff; text-decoration: none;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.card h3 { color: var(--cyan); }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }
a.card { transition: transform .2s, border-color .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.card .more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px;
  font-size: 16px; font-weight: 600; color: #fff;
}
.card .more .arrow { color: var(--magenta); font-size: 20px; line-height: 1; transition: transform .2s; }
a.card:hover .more .arrow { transform: translateX(4px); }
.sec-cyan .card { border-color: transparent; background: var(--navy); }
.sec-cyan a.card:hover { border-color: var(--navy); box-shadow: 0 18px 40px rgba(13, 23, 37, .35); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; gap: 24px; }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 26px 28px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius); }
.stat h3 { color: var(--cyan); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.stat p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- Testimonial ---------- */
.quotes { max-width: 920px; margin: 0 auto; padding-left: clamp(0px, 4vw, 56px); }
.quotes .mark { display: block; width: 56px; height: 46px; margin-bottom: 26px; fill: var(--magenta); }
.sec-cyan .quotes .mark { fill: var(--navy); }
/* Without JavaScript all quotes are listed one after another. */
.quote + .quote { margin-top: 48px; }
/* With JavaScript the quotes share one grid cell, so the section keeps the height of the longest one. */
.quotes.is-rotating .quote-stack { display: grid; }
.quotes.is-rotating .quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.quotes.is-rotating .quote.is-active { opacity: 1; visibility: visible; }
.quote-controls { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.quote-controls button { font: inherit; cursor: pointer; }
.quote-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy);
  font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.quote-arrow:hover { background: var(--navy); color: #fff; }
.quote-dots { display: flex; gap: 4px; }
.quote-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.quote-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--navy); transition: background .2s; }
.quote-dot[aria-current="true"]::before { background: var(--navy); }
.quotes :focus-visible { outline-color: var(--navy); }
.quote blockquote { font-size: clamp(19px, 2vw, 24px); line-height: 1.6; color: #fff; }
.quote figcaption { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote figcaption::before { content: ""; width: 44px; height: 3px; background: var(--cyan); flex: none; }
.quote .name { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.quote .role { display: block; font-size: 16px; line-height: 1.4; color: var(--muted); }

.sec-cyan .quote blockquote { color: var(--navy); font-weight: 500; }
.sec-cyan .quote figcaption::before { background: var(--magenta); }
.sec-cyan .quote .role { color: #10243a; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(135deg, #16294a 0%, #0d1725 60%, #2a1136 100%);
  border: 1px solid rgba(71, 207, 226, .45); border-radius: 20px;
}
.contact-panel h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; color: #fff; }
.contact-panel .copy p { margin-top: 16px; color: var(--muted); }
.contact-panel .copy h2 + p { margin-top: 22px; }
.contact-action { min-width: 0; }
.contact-action .label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-action .address {
  display: inline-block; margin: 10px 0 26px; font-size: clamp(21px, 2.5vw, 32px); line-height: 1.25; font-weight: 500;
  color: var(--cyan); text-decoration: none; overflow-wrap: anywhere;
}
.contact-action .address:hover { text-decoration: underline; }
.contact-action .btn { width: 100%; max-width: 380px; }

/* ---------- Funding ---------- */
.funding { background: var(--slate); padding: 48px 0; }
.funding .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap; }
.funding .logos { display: flex; align-items: center; gap: 28px 44px; flex-wrap: wrap; }
.funding img { height: auto; }
.funding .f-eu, .funding .f-npo { width: 190px; }
.funding .f-cz { width: 160px; }
.funding .f-ci { width: 128px; }
.funding p { font-size: 15px; line-height: 1.5; max-width: 300px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-col { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; align-items: start; }
.foot-col svg { width: 24px; height: 24px; fill: var(--cyan); margin-top: 3px; }
.foot-col h2 { font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.foot-col p { font-size: 17px; line-height: 1.55; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--cyan); text-decoration: underline; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.foot-bottom a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.foot-bottom a:hover { color: var(--cyan); }
.foot-bottom svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Service pages ---------- */
.page-head {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse 38% 60% at 88% 20%, rgba(71, 207, 226, .22), transparent 70%),
    radial-gradient(ellipse 40% 70% at 70% 100%, rgba(228, 32, 134, .2), transparent 72%),
    linear-gradient(180deg, #0a1322 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head .kicker { text-decoration: none; }
.page-head a.kicker:hover { text-decoration: underline; }
.page-head h1 { max-width: 900px; font-size: clamp(34px, 4.4vw, 54px); }
.page-head .lead { max-width: 820px; margin-top: 22px; color: #e3e9f1; }
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.service-nav a {
  display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; color: #fff; transition: border-color .2s, color .2s;
}
.service-nav a:hover { border-color: var(--cyan); color: var(--cyan); }
.service-nav a[aria-current="page"] { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.workflow { max-width: 800px; margin-bottom: clamp(32px, 4vw, 48px); }
.workflow h2 span, .workflow .note { color: #ff5fae; }
.workflow .note { margin-top: 14px; font-size: 16px; line-height: 1.6; }

/* Timeline (Game Consultation) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 32px 72px; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cyan); background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--cyan);
}
.timeline li::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .step { padding: 24px 28px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline h3 { color: var(--cyan); font-size: 23px; }
.timeline p { margin-top: 10px; color: var(--muted); }

/* Numbered steps (Pitch Deck) & blocks (Right Publisher) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { padding: 28px 28px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tile .num { display: block; font-size: 56px; line-height: 1; font-weight: 500; color: var(--cyan); margin-bottom: 20px; }
.tile p { font-size: 17px; line-height: 1.6; color: #fff; }
.tile.accent { border-top: 3px solid var(--magenta); }
.tile.accent h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.tile.accent p { margin-top: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > *, .card-grid.five > :nth-child(4) { grid-column: auto; }
  .stats-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .product, .contact-panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > a { font-size: 18px; padding: 14px 0; }
  .nav .drop > a::after { display: none; }
  .nav .drop-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 16px; }
  .nav .drop-menu a { padding: 10px 0; color: var(--muted); }
  .nav .ico-li { padding: 14px 0; }

  .hero-media { position: static; width: 100%; height: clamp(200px, 46vw, 340px); }
  .hero-media::after { background: linear-gradient(180deg, rgba(8, 15, 25, 0) 55%, var(--navy-deep) 100%); }
  .hero-media { position: relative; }
  .hero-copy { max-width: 640px; padding: 28px 0 56px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; --gutter: 20px; }
  .logo img { width: 146px; }
  .card-grid, .stats-grid.cols-3, .stats-grid.cols-4, .foot-grid { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 16 / 9; }
  .card-body { padding: 20px 22px 24px; }
  .btn-row .btn { width: 100%; }
  .contact-action .btn { max-width: none; }
  .feature-list li { font-size: 17px; }
  .funding .wrap, .funding .logos { justify-content: flex-start; }
  .timeline li { padding-left: 0; padding-top: 60px; }
  .timeline li::after { display: none; }
  .timeline .step { padding: 22px 22px 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
