/* ---------------------------------------------------------------
   Alpha Build design tokens
   Colors sampled directly from the brand mark (logo.png).
------------------------------------------------------------------*/
:root {
    --ink: #1d2a37;
    --ink-soft: #52606d;
    --teal: #24586c;
    --teal-deep: #173c4b;
    --sand: #cfa783;
    --sand-tint: #f4ebe0;
    --terracotta: #c87f55;
    --terracotta-deep: #a5623d;
    --paper: #faf6f1;
    --paper-deep: #f3ebe0;
    --white: #ffffff;
    --border: rgba(29, 42, 55, 0.10);
    --shadow-soft: 0 20px 50px -28px rgba(29, 42, 55, 0.35);

    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;

    --container: 1420px;
    --container-narrow: 760px;
    --radius: 18px;
    --radius-sm: 10px;
}

/* ---------------------------------------------------------------
   Reset
------------------------------------------------------------------*/
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
}

p { margin: 0; }

svg { display: block; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
    .reveal, .hero__mark, .hero h1, .hero__location, .hero .btn { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------
   Scroll-reveal (IntersectionObserver adds .is-visible, see reveal.js)
------------------------------------------------------------------*/
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero elements animate in on load (above the fold, no scroll needed) */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.hero__mark, .hero h1, .hero__location, .hero .btn {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__mark { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero__location { animation-delay: 0.34s; }
.hero .btn { animation-delay: 0.48s; }

/* ---------------------------------------------------------------
   Layout helpers
------------------------------------------------------------------*/
.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap--narrow { max-width: var(--container-narrow); }

.section { padding: 64px 0; }

.eyebrow {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    color: var(--terracotta-deep);
    margin: 0 0 16px;
}

.eyebrow--center { text-align: center; }

.lede {
    font-size: 19px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 62ch;
}

.lede--center { margin: 0 auto; text-align: center; }

/* ---------------------------------------------------------------
   Buttons
------------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 28px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 12px 24px -12px rgba(200, 127, 85, 0.65);
}

.btn--primary:hover {
    background: var(--terracotta-deep);
    box-shadow: 0 16px 28px -12px rgba(165, 98, 61, 0.55);
}

.btn--large { padding: 16px 34px; font-size: 16px; }

.btn--small { padding: 10px 20px; font-size: 14px; }

/* ---------------------------------------------------------------
   Header
------------------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fefdfa;
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.site-header__logo { height: 34px; width: auto; }

@media (min-width: 640px) {
    .site-header__logo { height: 40px; }
}

/* ---------------------------------------------------------------
   Hero
------------------------------------------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background:
        radial-gradient(ellipse 780px 520px at 50% -8%, rgba(207, 167, 131, 0.38), transparent 62%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__bg-mark {
    position: absolute;
    right: -14%;
    bottom: -20%;
    width: 640px;
    max-width: 72vw;
    opacity: 0.07;
}

@media (min-width: 900px) {
    .hero__bg-mark { width: 820px; right: -8%; bottom: -26%; }
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__mark {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 34px;
    max-width: 15ch;
    color: var(--ink);
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
}

.hero__location {
    margin-top: 18px;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 14px;
    border-top: 2px solid var(--terracotta);
    display: inline-block;
}

.hero .btn { margin-top: 34px; }

/* ---------------------------------------------------------------
   Sections
------------------------------------------------------------------*/
.section--about { text-align: center; }
.section--about .wrap { display: flex; flex-direction: column; align-items: center; }

.section--expect { background: var(--white); }
.section--register { background: var(--white); }

.section--audience { background: var(--paper); }

/* ---------------------------------------------------------------
   Accent color tokens shared by cards
------------------------------------------------------------------*/
.card,
.who-card {
    --accent: var(--terracotta);
    --accent-soft: var(--terracotta-deep);
}

.card--accent-teal,
.who-card--accent-teal { --accent: var(--teal); --accent-soft: var(--teal); }

.card--accent-terracotta,
.who-card--accent-terracotta { --accent: var(--terracotta); --accent-soft: var(--terracotta-deep); }

/* ---------------------------------------------------------------
   Feature cards (What to expect)
------------------------------------------------------------------*/
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px 32px;
    margin-top: 52px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--accent-soft);
    margin-bottom: 24px;
}

.card__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }

.card__title {
    font-size: 19px;
    margin-bottom: 10px;
}

.card__text {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

/* ---------------------------------------------------------------
   Who it's for
------------------------------------------------------------------*/
.who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 44px;
}

.who-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 42px 34px 36px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.who-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    color: var(--accent-soft);
    margin-bottom: 24px;
}

.who-card__icon svg { width: 100%; height: 100%; }

.who-card__title {
    font-size: 21px;
    margin-bottom: 12px;
}

.who-card__text {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------------------------------------------------------------
   Register / form
------------------------------------------------------------------*/
.section--register .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }

.form-frame {
    width: 100%;
    margin-top: 36px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.form-frame iframe {
    width: 100%;
    height: 1750px;
    border: 0;
    display: block;
}

@media (min-width: 480px) {
    .form-frame iframe { height: 1550px; }
}

@media (min-width: 640px) {
    .form-frame iframe { height: 1400px; }
}

@media (min-width: 780px) {
    .form-frame iframe { height: 1300px; }
}

.form-fallback {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}

.form-fallback a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.form-fallback a:hover { text-decoration: underline; }

.privacy-note {
    margin-top: 28px;
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 52ch;
}

.privacy-note a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   Footer
------------------------------------------------------------------*/
.site-footer {
    background: var(--sand-tint);
    border-top: 1px solid var(--border);
    padding: 40px 0 0;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding-bottom: 28px;
}

.site-footer__gda-logo {
    height: 26px;
    width: auto;
    margin: 0 auto 10px;
}

.site-footer__org p {
    font-size: 14px;
    color: var(--ink-soft);
}

.site-footer__meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
}

.site-footer__meta a {
    text-decoration: none;
    color: var(--teal);
    font-weight: 600;
}

.site-footer__meta a:hover { text-decoration: underline; }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-footer__bottom p {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.site-footer__credit {
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.site-footer__credit:hover { opacity: 1; }

.site-footer__credit img {
    height: 40px;
    width: auto;
}

/* ---------------------------------------------------------------
   Legal / privacy page
------------------------------------------------------------------*/
.section--legal { padding-top: 56px; }

.legal-title {
    font-size: 28px;
    margin: 6px 0 16px;
}

.section--legal .lede { margin-bottom: 36px; }

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
}

.legal-list__row dt {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 6px;
}

.legal-list__row dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}

.legal-back {
    margin-top: 40px;
    font-size: 14px;
    font-weight: 600;
}

.legal-back a {
    color: var(--teal);
    text-decoration: none;
}

.legal-back a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   404
------------------------------------------------------------------*/
.section--notfound { padding: 96px 0; }
.section--notfound img { margin: 0 auto 20px; }
.section--notfound .btn { margin-top: 24px; }

/* ---------------------------------------------------------------
   Responsive
------------------------------------------------------------------*/
@media (min-width: 640px) {
    .hero h1 { font-size: 44px; max-width: 16ch; }
    .section { padding: 84px 0; }
}

@media (min-width: 560px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
    .who-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (min-width: 980px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
    .card { max-width: none; }
    .card__icon { width: 76px; height: 76px; }
}

@media (min-width: 900px) {
    .hero { padding: 100px 0 120px; }
    .hero h1 { font-size: 54px; max-width: 17ch; }
    .hero__location { font-size: 16px; }
    .lede { font-size: 20px; }
    .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
    .site-footer__org { display: flex; align-items: center; gap: 16px; }
    .site-footer__gda-logo { margin: 0; }
    .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
