/* =========================================================
   Skyward Quantum — corporate holding site
   Design system: brand-led, no people, strong typography.
   ========================================================= */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --ink: #0b1020;
  --ink-soft: #2a3045;
  --muted: #5a6178;
  --line: #e6e8f0;
  --white: #ffffff;

  /* Brand */
  --brand-1: #4f46e5;   /* indigo */
  --brand-2: #06b6d4;   /* cyan   */
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  /* Product accents */
  --coursiv: #2b2f3a;   /* monochrome wordmark — neutral dark accent */
  --finelo: #7abf4c;    /* Finelo brand green */
  --subpilot: #64b5f2;  /* Subpilot brand blue */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,16,32,.04), 0 12px 32px rgba(11,16,32,.06);
  --shadow-lg: 0 30px 60px rgba(11,16,32,.12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-1); margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px rgba(79,70,229,.28); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 540px at 75% -10%, rgba(6,182,212,.35), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, rgba(99,102,241,.4), transparent 55%),
              #0b1020;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(700px 380px at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 120px; max-width: 980px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.3rem; max-width: 50ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; }
.orb--1 { width: 18px; height: 18px; top: 24%; left: 18%; background: var(--brand-2); }
.orb--2 { width: 10px; height: 10px; top: 64%; left: 30%; background: #fff; opacity: .35; }
.orb--3 { width: 26px; height: 26px; top: 30%; right: 14%; background: var(--brand-1); }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .25s ease;
  overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent, var(--brand-1));
}
.product-logo {
  height: 52px; border-radius: 12px; margin-bottom: 20px;
  background: #0b1020; display: flex; align-items: center; padding: 0 18px;
}
.product-logo img { height: 20px; width: auto; display: block; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); margin-top: 14px; font-size: .95rem; }
.product-link:hover { gap: 10px; }
.card--coursiv { --accent: var(--coursiv); }
.card--finelo { --accent: var(--finelo); }
.card--subpilot { --accent: var(--subpilot); }

/* ---------- Trust cards ---------- */
.trust-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.trust-card .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(79,70,229,.1); color: var(--brand-1); display: grid; place-items: center; margin-bottom: 16px; }
.trust-card h3 { font-size: 1.1rem; }
.trust-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About / generic prose ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 12px; }
.value h3 { font-size: 1.05rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* ---------- Split CTA ---------- */
.cta-band { background: var(--brand-grad); color: #fff; border-radius: 22px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { margin-bottom: 22px; }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-item a { color: var(--brand-1); font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-1); outline-offset: 1px; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: rgba(255,255,255,.72); padding: 64px 0 30px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.55); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .94rem; margin-bottom: 9px; }
.footer-legal { padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 10px; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  background: #0b1020; color: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
}
.cookie p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.8); flex: 1; min-width: 240px; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid--3, .values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
