:root {
    --green-950: #073d2c;
    --green-900: #0a4b36;
    --green-800: #09653f;
    --green-700: #17744c;
    --green-600: #2f8a61;
    --green-100: #dff2e7;
    --green-50: #eef8f1;
    --navy: #102c43;
    --ink: #17322a;
    --muted: #64746e;
    --cream: #f6f8f3;
    --white: #ffffff;
    --line: #dfe7e1;
    --danger: #a53d42;
    --danger-soft: #fff1f1;
    --warning: #9a6813;
    --warning-soft: #fff7e5;
    --shadow: 0 24px 70px rgba(3, 47, 31, .14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(10, 75, 54, .1);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { color: var(--green-900); font-size: 1.25rem; letter-spacing: .08em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .75rem; }

.header-link {
    color: var(--green-800);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.header-link span { margin-left: 5px; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(112deg, rgba(4, 63, 44, .98), rgba(6, 84, 55, .94)),
        repeating-linear-gradient(135deg, transparent 0 44px, rgba(255,255,255,.03) 45px 46px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .13;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to right, #000, transparent 74%);
}

.hero-grid {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
    align-items: center;
    gap: 84px;
    padding-block: 78px;
}

.hero-copy { max-width: 610px; }

.eyebrow {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.78);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow span { width: 34px; height: 2px; background: #9ed4b7; }
.eyebrow.dark { color: var(--green-700); }
.eyebrow.dark span { background: var(--green-600); }

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.052em;
}

.hero-lead {
    max-width: 590px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 1.08rem;
    line-height: 1.7;
}

.trust-row { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 24px; color: #eaf6ef; font-size: .9rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font-style: normal; font-size: .72rem; }

.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); }
.hero-orb-one { width: 470px; height: 470px; right: -130px; top: -190px; background: rgba(147, 211, 175, .13); }
.hero-orb-two { width: 280px; height: 280px; left: 42%; bottom: -180px; border: 55px solid rgba(255,255,255,.045); }

.search-card {
    position: relative;
    color: var(--ink);
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 90px rgba(0, 28, 18, .3);
}

.search-card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 27px; color: var(--green-800); background: var(--green-50); border-radius: 17px; }
.search-card-icon svg { width: 31px; fill: currentColor; }
.form-kicker { margin: 0 0 7px; color: var(--green-700); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-card h2 { margin: 0; font-size: 1.65rem; line-height: 1.18; letter-spacing: -.025em; }
.search-card > p:not(.form-kicker) { margin: 12px 0 26px; color: var(--muted); font-size: .94rem; line-height: 1.55; }

.verify-form label { display: block; margin-bottom: 9px; font-size: .82rem; font-weight: 750; }
.input-wrap { height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border: 1.5px solid #cad7cf; border-radius: 12px; background: #fbfcfb; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(47,138,97,.12); }
.input-wrap.has-error { border-color: var(--danger); }
.input-wrap svg { width: 22px; flex: 0 0 auto; fill: #7a8d85; }
.input-wrap input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 1.08rem/1 Inter, "Segoe UI", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.input-wrap input::placeholder { color: #9aa8a2; font-weight: 500; letter-spacing: .02em; }
.field-help, .form-error { margin: 8px 0 0; font-size: .75rem; }
.field-help { color: #7c8c86; }
.form-error { color: var(--danger); font-weight: 650; }
.verify-form button, .primary-link { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; margin-top: 23px; padding: 0 23px; border: 0; border-radius: 12px; color: #fff; background: var(--green-800); font: 750 .94rem/1 Inter, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.verify-form button { width: 100%; }
.verify-form button:hover, .primary-link:hover { transform: translateY(-2px); background: var(--green-900); }
.verify-form button span { font-size: 1.2rem; }

.how-it-works { padding-block: 100px; }
.section-heading { max-width: 650px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 31px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.step-card { position: relative; min-height: 240px; overflow: hidden; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.step-number { position: absolute; right: 25px; top: 18px; color: #e7eee9; font-size: 4.3rem; font-weight: 850; letter-spacing: -.08em; }
.step-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 27px; border-radius: 14px; color: var(--green-800); background: var(--green-50); }
.step-icon svg { width: 27px; fill: currentColor; }
.step-card h3 { position: relative; margin: 0; font-size: 1.25rem; }
.step-card p { position: relative; max-width: 390px; margin: 11px 0 0; color: var(--muted); line-height: 1.65; }

.events-section { padding-block: 85px; background: #edf3ee; border-top: 1px solid #e0e8e2; }
.events-grid { display: grid; gap: 16px; }
.event-card { display: grid; grid-template-columns: 98px 1fr auto; align-items: center; gap: 27px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.event-year { width: 82px; height: 82px; display: grid; place-items: center; color: white; background: var(--green-800); border-radius: 15px; font-size: 1.28rem; font-weight: 850; }
.event-edition { margin: 0 0 5px; color: var(--green-700); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-card h3 { margin: 0; font-size: 1.17rem; }
.event-card div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.event-status { padding: 8px 12px; border-radius: 999px; color: var(--green-800); background: var(--green-50); font-size: .74rem; font-weight: 750; }

.result-hero { min-height: 720px; padding-block: 56px 90px; background: linear-gradient(180deg, #eaf4ed 0, var(--cream) 65%); }
.result-shell { max-width: 900px; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 24px; color: var(--green-800); font-size: .88rem; font-weight: 750; text-decoration: none; }
.result-card { padding: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.result-card.result-valid { border-top: 6px solid var(--green-600); }
.result-card.result-warning { border-top: 6px solid #c38925; }
.result-card.result-not-found { border-top: 6px solid var(--danger); text-align: center; }
.result-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.result-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-inline: auto; border-radius: 50%; color: #fff; background: var(--green-700); font-size: 2rem; font-weight: 850; }
.result-not-found .result-mark { background: var(--danger); }
.result-warning .result-mark { background: var(--warning); }
.result-overline { margin: 0 0 5px; color: var(--green-700); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.result-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.045em; }
.status-pill { padding: 9px 14px; color: var(--green-800); background: var(--green-50); border: 1px solid #cce7d6; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.result-intro { max-width: 600px; margin: 17px auto 0; color: var(--muted); line-height: 1.65; }
.certificate-owner { padding-block: 35px; }
.certificate-owner p { margin: 0 0 8px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.certificate-owner h2 { margin: 0; color: var(--green-900); font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; text-transform: uppercase; }
.certificate-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.certificate-details div { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.certificate-details div:nth-child(odd) { border-right: 1px solid var(--line); }
.certificate-details div:nth-last-child(-n+2) { border-bottom: 0; }
.certificate-details dt { margin-bottom: 7px; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.certificate-details dd { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.45; }
.certificate-details .code-detail dd { color: var(--green-800); font-size: 1.1rem; letter-spacing: .08em; }
.topics { margin-top: 25px; padding: 24px; background: #f8faf8; border-radius: 15px; }
.topics h3 { margin: 0 0 13px; font-size: 1rem; }
.topics ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.verification-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 27px; padding: 18px 20px; color: #496158; background: var(--green-50); border-radius: 14px; }
.verification-note svg { width: 25px; flex: 0 0 auto; fill: var(--green-700); }
.verification-note p { margin: 0; font-size: .82rem; line-height: 1.6; }
.result-not-found, .result-warning:not(.result-valid) { padding-block: 70px; }
.result-not-found h1, .result-warning > h1 { margin-top: 20px; }

.site-footer { color: rgba(255,255,255,.74); background: #062f23; }
.footer-inner { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; background: white; border-radius: 10px; }
.footer-brand p { margin: 0; font-size: .82rem; line-height: 1.55; }
.footer-brand strong { color: #fff; }
.footer-note { max-width: 440px; margin: 0; text-align: right; font-size: .78rem; line-height: 1.6; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
    .hero-copy { max-width: 720px; }
    .search-card { max-width: 620px; }
    .event-card { grid-template-columns: 82px 1fr; }
    .event-status { grid-column: 2; width: fit-content; }
}

@media (max-width: 640px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .header-inner { min-height: 72px; }
    .brand img { width: 48px; height: 48px; }
    .brand small { display: none; }
    .header-link { font-size: .78rem; }
    .hero-grid { min-height: auto; padding-block: 52px; }
    .hero h1 { font-size: 2.75rem; }
    .hero-lead { font-size: .98rem; }
    .trust-row { display: grid; gap: 11px; }
    .search-card { padding: 30px 23px; border-radius: 22px; }
    .how-it-works { padding-block: 72px; }
    .steps { grid-template-columns: 1fr; }
    .step-card { min-height: 220px; }
    .events-section { padding-block: 65px; }
    .event-card { grid-template-columns: 62px 1fr; gap: 17px; padding: 18px; }
    .event-year { width: 62px; height: 62px; font-size: .98rem; }
    .result-hero { padding-block: 35px 65px; }
    .result-card { padding: 28px 20px; border-radius: 20px; }
    .result-top { grid-template-columns: auto 1fr; }
    .status-pill { grid-column: 2; width: fit-content; }
    .result-mark { width: 52px; height: 52px; font-size: 1.55rem; }
    .certificate-details { grid-template-columns: 1fr; }
    .certificate-details div, .certificate-details div:nth-child(odd), .certificate-details div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .certificate-details div:last-child { border-bottom: 0; }
    .footer-inner { padding-block: 38px; flex-direction: column; align-items: flex-start; }
    .footer-note { text-align: left; }
}

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