/* GTECH Startup Exchange — design tokens sampled from the GTECH logo */
:root {
  --brand-blue: #008ACF;
  --brand-blue-deep: #0078C0;
  --brand-teal: #00B3A5;
  --brand-teal-deep: #009F9C;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --text: #334155;
  --muted: #64748B;
  --surface: #F8FAFC;
  --card: #FFFFFF;
  --line: #E2E8F0;

  /* Accessible text/action tones (AA on white): brand blue itself is 3.8:1 with white text */
  --action: var(--brand-blue-deep);
  --action-hover: #00649F;
  --on-dark: #E2E8F0;
  --on-dark-muted: #A5B4C8;

  --gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--card); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 3px; border-radius: 6px; }
strong { color: inherit; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Visible placeholder for anything still [to be confirmed] */
.ph { background: #FEF3C7; color: #78350F; border-radius: 4px; padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ph a { color: inherit; }

/* Buttons — two styles only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--brand-teal); }
.btn-secondary:hover { background: var(--brand-teal); color: var(--ink); }
.btn-on-dark { color: #fff; }
.btn-on-dark:hover { color: var(--ink); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

/* Announcement */
.announce { background: var(--ink); color: var(--on-dark); font-size: .9rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.announce a { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 9px 0; color: inherit; text-decoration: none; text-align: center; }
.announce a:hover strong { text-decoration: underline; }
.announce strong { color: var(--brand-teal); }
.announce .dot { color: var(--on-dark-muted); }
@media (max-width: 640px) { .announce .dot, .announce a > span:nth-of-type(3) { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 88px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand-teal); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgb(15 23 42 / .2); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--action); }
}

/* Dark bands */
.band-dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a:not(.btn) { color: #7DD3FC; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48rem 30rem at 85% -10%, rgb(0 138 207 / .38), transparent 60%),
    radial-gradient(40rem 28rem at 105% 70%, rgb(0 179 165 / .26), transparent 60%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-teal); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gradient); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-dark); line-height: 1.6; max-width: 62ch; }

.hero { padding: clamp(72px, 11vw, 136px) 0 clamp(64px, 8vw, 104px); }
.hero h1 { max-width: 15ch; }
.trust-strip { list-style: none; padding: 28px 0 0; margin: 40px 0 0; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: 10px 0; font-size: .92rem; color: var(--on-dark-muted); }
.trust-strip li { display: flex; align-items: center; }
.trust-strip li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgb(255 255 255 / .3); margin: 0 14px; }
@media (max-width: 640px) { .trust-strip { flex-direction: column; gap: 8px; } .trust-strip li::after { display: none; } }
.trust-strip strong { color: var(--brand-teal); margin-right: .3em; font-size: 1.05rem; }

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 20ch; }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { max-width: 24ch; }
.section-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 40px; }
.section h2 + .grid, .section h2 + .steps, .section h2 + .rules, .section h2 + .faq { margin-top: 40px; }
.h-small { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { margin: 0; }
.card h3 { margin-top: 20px; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand-teal); color: var(--text); transform: translateY(-2px); }
.card-link h3 { font-size: 1.5rem; }
.card-link .more { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--action); }
.card-link .more svg { width: 18px; height: 18px; transition: transform .15s; }
.card-link:hover .more svg { transform: translateX(3px); }

.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.icon-tile svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* Traction */
.traction { padding: clamp(56px, 7vw, 88px) 0; border-top: 3px solid transparent; border-image: var(--gradient) 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-left: 1px solid rgb(255 255 255 / .12); padding-left: 20px; }
.stats dd { margin: 0; font-size: clamp(3rem, 7vw, 4.75rem); font-weight: 800; line-height: 1; color: var(--brand-teal); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 10px; color: var(--on-dark); font-size: .98rem; max-width: 18ch; }
.traction .caption { margin: 40px 0 0; color: var(--on-dark-muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* Demand */
.demand { margin: 0; border-top: 1px solid var(--line); }
.demand-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.demand-row dt { font-weight: 700; color: var(--ink); padding-top: 6px; }
.demand-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; counter-reset: chip; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; font-weight: 500; color: var(--text); }
.chip-top { background: #E6F6F4; border-color: #9BDDD6; color: var(--ink); font-weight: 600; }
.chip-badge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #00756C; border-radius: 999px; padding: 2px 7px; }
.chip-then { font-size: .85rem; color: var(--muted); padding: 0 2px; }
.chip-note { font-size: .85rem; color: var(--muted); }
.pull { margin: 40px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; padding-left: 20px; border-left: 4px solid; border-image: var(--gradient) 1; max-width: 40ch; }
@media (max-width: 720px) { .demand-row { grid-template-columns: 1fr; } .demand-row dt { padding-top: 0; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--muted); letter-spacing: -0.04em; line-height: 1; }
.step p { margin: 0; font-size: .97rem; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* House rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.rules li { display: flex; gap: 18px; align-items: flex-start; }
.rules h3 { margin: 2px 0 4px; }
.rules p { margin: 0; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; gap: 28px; } }

/* Event track section (off by default, flag in site.config.json) */
.meta { font-weight: 700; color: var(--action); margin: -4px 0 16px; }
.hg-select { margin-top: 28px; }

/* Partners */
.partners { padding: 56px 0; text-align: center; }
.partners .h-small { margin: 0 auto 24px; max-width: none; }
.partner-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.partner-logos img { width: 160px; height: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--action); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--action); }
.faq-body p { margin: 0 0 22px; }
.see-all { margin-top: 28px; }
.team { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.team a { font-weight: 600; }
.team-role { display: block; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.see-all a, .see-all a svg { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.see-all svg { width: 18px; height: 18px; }

/* Content pages */
.split.split-wall { align-items: start; row-gap: 8px; }
.split-wall h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 16ch; }
.split-wall p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: #fff; background: var(--brand-teal-deep); border-radius: 50%; padding: 4px; stroke-width: 3; }
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; }
.numbered li::before { content: counter(n); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; margin-top: 1px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.cta-panel { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cta-panel p { margin: 0; font-weight: 600; color: var(--ink); }
.cta-panel .btn-row { margin-top: 20px; }

/* Final CTA */
.final-cta { padding: clamp(72px, 9vw, 120px) 0; }
.final-cta h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.final-cta .small { margin-top: 28px; font-size: .95rem; color: var(--on-dark-muted); }
.final-cta .ph { background: rgb(254 243 199 / .95); }
.final-cta .ph a { color: #78350F; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid rgb(255 255 255 / .08); padding: 48px 0 40px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 80px; height: auto; background: #fff; padding: 8px 10px; border-radius: 10px; box-sizing: content-box; }
.footer-brand p { margin: 0; max-width: 46ch; }
.footer-brand strong { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-brand { flex-direction: column; } }

/* Sticky mobile apply */
.sticky-apply { display: none; }
@media (max-width: 640px) {
  .sticky-apply { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(15 23 42 / .25); transition: transform .2s; }
  .sticky-apply.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 76px; }
  .site-nav .btn { width: 100%; }
}
