/* ============================================================
   CAIE — Centre for AI Entrepreneurship
   Shared design system
   ============================================================ */

:root {
  --ink:        #0C1424;   /* Midnight Ink — base, dark slides */
  --ink-soft:   #1E2A44;   /* Deep Slate — surfaces, cards */
  --accent:     #17B0A7;   /* Beacon Teal — primary, machine intelligence */
  --accent-dk:  #0E8F83;   /* darker teal */
  --coral:      #F5623D;   /* Ember Coral — accent, the human */
  --coral-dk:   #db4a27;
  --accent-2:   #F5623D;   /* second accent = coral (teal + coral thesis) */
  --paper:      #ffffff;
  --mist:       #F4F6F9;   /* Cloud — light section bg */
  --mist-2:     #E7ECF2;
  --line:       #dce3ec;
  --text:       #29323f;
  --text-soft:  #5a6675;
  --white:      #ffffff;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 10px 30px rgba(12,26,43,.08);
  --shadow-lg:  0 24px 60px rgba(12,26,43,.14);
  --maxw:       1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.bg-mist { background: var(--mist); }
.bg-ink  { background: var(--ink); color: #cdd8e4; }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: #fff; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--accent-dk); margin-bottom: 14px;
}
.bg-ink .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 640px; }
.bg-ink .lead { color: #a9b7c7; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04231f; box-shadow: 0 8px 20px rgba(18,181,165,.35); }
.btn-primary:hover { background: var(--accent-dk); color:#fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color:#fff; }
.btn-outline { background: transparent; border-color: var(--accent-dk); color: var(--accent-dk); }
.btn-outline:hover { background: var(--accent-dk); color:#fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo-mark {
  width: 42px; height: 28px; flex: none;
  display: grid; place-items: center;
}
.logo-mark svg { display: block; }
.brand small { display:block; font-weight: 500; font-size: .66rem; color: var(--text-soft); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--accent-dk); text-decoration: none; }
.nav-links a.active { color: var(--accent-dk); font-weight: 600; }
.nav-cta { padding: 10px 20px; font-size: .92rem; }
.nav-toggle { display:none; background:none; border:0; font-size:1.6rem; color:var(--ink); cursor:pointer; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 80% -10%, rgba(45,126,247,.22), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(18,181,165,.18), transparent 55%),
              var(--ink);
  color: #d5dfea; padding: 96px 0 100px; position: relative; overflow: hidden;
}
.hero h1 { color:#fff; max-width: 780px; }
.hero .lead { color:#b9c6d5; margin-top: 18px; }
.hero .btn-row { margin-top: 32px; }
.hero-badges { margin-top: 42px; display:flex; flex-wrap:wrap; gap: 10px 22px; align-items:center; color:#8fa0b4; font-size:.82rem; }
.hero-badges span { display:inline-flex; align-items:center; gap:8px; }
.hero-badges span::before { content:"●"; color: var(--accent); font-size:.6rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(18,181,165,.15), rgba(45,126,247,.15));
  display: grid; place-items: center; font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); margin-bottom: 0; font-size: .97rem; }
.card .price { display:inline-block; margin-top:14px; font-weight:700; color:var(--accent-dk); }

/* ---------- Feature list ---------- */
.checklist { list-style:none; margin: 14px 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); }
.checklist li::before {
  content:"✓"; position:absolute; left:0; top:0; color:#fff; font-size:.72rem; font-weight:700;
  width:19px; height:19px; border-radius:50%; background:var(--accent); display:grid; place-items:center; margin-top:4px;
}

/* ---------- Split ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:center; }
.split.narrow { gap: 40px; }

/* ---------- Sector pills ---------- */
.pills { display:flex; flex-wrap:wrap; gap:12px; margin-top: 8px; }
.pill { background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:10px 20px; font-weight:600; color:var(--ink); font-size:.95rem; }
.bg-mist .pill { background:#fff; }

/* ---------- Logo / partner strip ---------- */
.partners { display:flex; flex-wrap:wrap; justify-content:center; gap: 18px 40px; align-items:center; }
.partner {
  font-weight:700; color:var(--ink-soft); opacity:.8; font-size:1rem; letter-spacing:-.01em;
  padding: 10px 18px; border:1px dashed var(--line); border-radius: 10px;
}
.partner small { display:block; font-weight:500; font-size:.68rem; color:var(--text-soft); }

/* ---------- Stat band ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align:center; }
.stat b { display:block; font-size: 2.1rem; color:#fff; font-weight:800; }
.stat span { color:#93a3b6; font-size:.9rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display:grid; gap: 20px; }
.step { display:flex; gap:18px; align-items:flex-start; }
.step .n { counter-increment:s; flex:none; width:38px; height:38px; border-radius:50%; background:var(--ink); color:#fff; font-weight:700; display:grid; place-items:center; }
.step .n::before { content: counter(s); }
.step h4 { margin-bottom:4px; }
.step p { color:var(--text-soft); margin:0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent-dk), var(--accent-2)); color:#fff; border-radius: 20px; padding: 54px 44px; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:rgba(255,255,255,.92); max-width:560px; margin:12px auto 0; }
.cta-band .btn-primary { background:#fff; color:var(--ink); box-shadow:none; }
.cta-band .btn-primary:hover { background:var(--ink); color:#fff; }

/* ---------- Form ---------- */
.form { display:grid; gap:16px; max-width:560px; }
.field { display:grid; gap:6px; }
.field label { font-weight:600; font-size:.92rem; color:var(--ink); }
.field input, .field select, .field textarea {
  font-family:inherit; font-size:1rem; padding:12px 14px; border:1px solid var(--line);
  border-radius:var(--radius-sm); background:#fff; color:var(--text); width:100%;
}
.field textarea { min-height:130px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:2px solid var(--accent); border-color:transparent; }

/* ---------- Info list ---------- */
.info-list { list-style:none; }
.info-list li { padding:14px 0; border-bottom:1px solid var(--line); }
.info-list li:last-child { border-bottom:0; }
.info-list b { color:var(--ink); display:block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#c3ced9; padding: 56px 0 30px; }
.foot-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color:#fff; font-size:.95rem; margin-bottom:14px; text-transform:uppercase; letter-spacing:.08em; }
.site-footer a { color:#c3ced9; display:block; margin-bottom:9px; font-size:.94rem; }
.site-footer a:hover { color:#fff; text-decoration:none; }
.foot-brand p { color:#b7c2ce; font-size:.92rem; max-width: 280px; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top:40px; padding-top:22px; font-size:.85rem; color:#aab7c4; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.foot-social { display:flex; gap:12px; margin-top:16px; }
.foot-social a { display:grid; place-items:center; width:38px; height:38px; margin:0; border:1px solid rgba(255,255,255,.18); border-radius:9px; color:#c3ced9; }
.foot-social a:hover { border-color:var(--accent); color:#fff; }
.foot-social svg { width:18px; height:18px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.section-head { max-width:640px; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; }
.note { font-size:.85rem; color:var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    display:none; position:absolute; top:70px; left:0; right:0; flex-direction:column;
    background:#fff; border-bottom:1px solid var(--line); padding:16px 24px; gap:16px; align-items:flex-start;
  }
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}

/* ============================================================
   Additions: a11y skip link, SVG icons, scroll-top, cookie bar
   ============================================================ */

/* Skip to content (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; outline: 3px solid var(--accent); }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Inline SVG icons inside .ico tiles */
.ico svg { width: 24px; height: 24px; stroke: var(--accent-dk); }

/* Nav toggle button reset */
.nav-toggle { -webkit-appearance:none; appearance:none; }

/* Scroll-to-top button */
#to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent-dk); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 8px 20px rgba(12,26,43,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { background: var(--accent); }

/* Cookie / privacy bar */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-bar p { margin: 0; font-size: .92rem; color: var(--text); flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-bar .btn { padding: 9px 18px; font-size: .9rem; }

@media (max-width: 520px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
