@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --navy: #071a36;
    --navy-soft: #17345e;
    --pink: #ed6f9d;
    --pink-dark: #d85385;
    --pink-pale: #fff1f6;
    --blue: #8ebbf4;
    --blue-pale: #f0f6ff;
    --ink: #101f3f;
    --muted: #68738b;
    --line: #dfe5ef;
    --white: #ffffff;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(20px, 3vw, 52px);
    color: #fff;
    background: rgba(7, 26, 54, 0.98);
    border-bottom: 1px solid rgba(249, 146, 182, 0.45);
    box-shadow: 0 8px 28px rgba(7, 26, 54, 0.12);
}

.mini-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
}

.mini-mark svg,
.hero-mark {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mark-accent { stroke: var(--pink); }

.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
}

.site-navigation a,
.admin-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.site-navigation a {
    position: relative;
    padding: 23px 0 20px;
}

.site-navigation a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 2px;
    background: var(--pink);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after { width: 100%; }

.admin-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 19px;
    border-radius: 999px;
    background: var(--pink);
    box-shadow: 0 8px 18px rgba(237, 111, 157, 0.25);
    transition: transform 180ms ease, background-color 180ms ease;
}

.admin-link:hover { background: var(--pink-dark); transform: translateY(-1px); }

.menu-button { display: none; }

.hero {
    position: relative;
    min-height: clamp(560px, 45vw, 730px);
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    background: #fcebf2 url('assets/snbx-sakura-hero.png') center center / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.38), transparent);
    pointer-events: none;
}

.hero-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,.86) 0, rgba(255,255,255,.58) 22%, rgba(255,255,255,.08) 50%, transparent 68%);
}

.hero-copy {
    width: min(710px, 76vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 22px 20px;
    text-align: center;
    animation: reveal 700ms ease both;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-mark {
    width: 72px;
    height: 72px;
    color: var(--navy);
    filter: drop-shadow(0 3px 7px rgba(255,255,255,.8));
}

.wordmark {
    margin: -2px 0 22px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.35rem);
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(255, 255, 255, .9);
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.45vw, 4rem);
    line-height: 1.08;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(255,255,255,.95);
}

.hero h1 em { color: var(--pink-dark); font-style: normal; }

.hero-description {
    margin: 20px 0 0;
    font-size: clamp(.96rem, 1.3vw, 1.2rem);
    font-weight: 500;
    text-shadow: 0 1px 10px #fff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.button {
    min-width: 158px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .025em;
    box-shadow: 0 10px 25px rgba(78, 65, 109, .12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(78, 65, 109, .19);
}

.button-primary { color: #fff; background: var(--pink); }
.button-secondary { color: var(--navy); background: rgba(255,255,255,.88); border-color: rgba(237,111,157,.55); }

.tools-section {
    position: relative;
    max-width: 1460px;
    margin: 0 auto;
    padding: 26px clamp(22px, 4vw, 72px) 92px;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--pink);
    font-size: 1.5rem;
}

.ornament span {
    width: min(150px, 20vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink));
}

.ornament span:last-child { transform: scaleX(-1); }

.section-heading {
    margin: 22px auto 32px;
    text-align: center;
}

.section-heading p,
.eyebrow {
    margin: 0 0 7px;
    color: var(--pink-dark);
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.section-heading h2,
.story-section h2,
.privacy-section h2 {
    margin: 0;
    font-family: var(--serif);
}

.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.3vw, 32px);
}

.tool-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    min-height: 220px;
    display: grid;
    grid-template-columns: 39% 1fr;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 13px 34px rgba(26, 49, 85, .07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(237, 111, 157, .45);
    box-shadow: 0 20px 40px rgba(26, 49, 85, .11);
}

.tool-card-pink { background: linear-gradient(120deg, var(--pink-pale), #fff 55%); }
.tool-card:focus-visible { outline: 3px solid var(--navy-soft); outline-offset: 4px; }
.tool-card-blue { background: linear-gradient(120deg, var(--blue-pale), #fff 55%); }

.tool-art { padding: 18px 0 18px 18px; }
.tool-art svg { display: block; width: 100%; max-width: 160px; height: auto; }
.art-wash { fill: rgba(237, 111, 157, .10); }
.tool-card-blue .art-wash { fill: rgba(108, 164, 236, .11); }
.art-line, .art-paper, .art-accent { fill: none; stroke: var(--pink-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.tool-card-blue .art-line { stroke: #477fc7; }
.art-core { fill: #fff; stroke: var(--pink-dark); stroke-width: 4; }
.art-paper { fill: #fffaf3; stroke: #b87a69; }
.art-accent { stroke: #588ad0; stroke-width: 6; }
.art-brace { stroke-width: 6; }

.tool-content { position: relative; padding: 28px 25px 28px 14px; }

.tool-content h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

.tool-content p {
    min-height: 45px;
    margin: 10px 0 20px;
    color: var(--muted);
    line-height: 1.5;
}

.tool-cta {
    display: inline-flex;
    gap: 12px;
    padding-bottom: 4px;
    color: var(--pink-dark);
    border-bottom: 1px dashed currentColor;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.tool-card-blue .tool-cta { color: #3979c8; }

.story-section {
    max-width: 1260px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
    margin: 0 auto 82px;
    padding: 56px clamp(30px, 6vw, 92px);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff1f6, #f2f7ff);
}

.story-section h2 { max-width: 500px; font-size: clamp(2rem, 3.7vw, 3.4rem); line-height: 1.08; }
.story-section > p { margin: 0; color: #4f5d75; font-size: 1.08rem; line-height: 1.85; }

.privacy-section {
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 auto 90px;
    padding: 28px 34px;
    border: 1px solid #cbdcf3;
    border-radius: 18px;
    background: #fbfdff;
    box-shadow: 0 14px 30px rgba(26,49,85,.06);
}

.privacy-section svg { flex: 0 0 58px; width: 58px; fill: none; stroke: #477fc7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.privacy-section h2 { font-size: 1.55rem; }
.privacy-section p { margin: 7px 0 0; color: var(--muted); }

footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 28px clamp(22px, 4vw, 64px);
    color: rgba(255,255,255,.72);
    background: var(--navy);
    font-size: .84rem;
}

footer a { color: #fff; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
footer p { margin: 0; }
footer p:last-child { justify-self: end; }

@media (max-width: 980px) {
    .tool-grid { grid-template-columns: 1fr; max-width: 690px; margin: 0 auto; }
    .tool-card { grid-template-columns: 190px 1fr; }
    .story-section { margin-inline: 24px; gap: 42px; }
}

@media (max-width: 760px) {
    .site-header { grid-template-columns: 1fr auto auto; gap: 14px; height: 60px; padding-inline: 18px; }
    .mini-mark { width: 34px; height: 34px; }
    .menu-button {
        display: grid;
        gap: 4px;
        width: 40px;
        height: 40px;
        place-content: center;
        padding: 0;
        color: #fff;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .menu-button span:not(.sr-only) { width: 21px; height: 2px; display: block; border-radius: 2px; background: currentColor; }
    .site-navigation {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 18px;
        background: rgba(7,26,54,.98);
        border-bottom: 1px solid rgba(249,146,182,.5);
    }
    .site-navigation.is-open { display: flex; }
    .site-navigation a { padding: 13px 5px; }
    .site-navigation a::after { display: none; }
    .admin-link { padding: 8px 13px; font-size: .7rem; }

    .hero {
        min-height: 650px;
        background-position: 44% center;
    }
    .hero-shade { background: linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.74)); }
    .hero-copy { width: min(610px, 94vw); padding-inline: 14px; }
    .hero-mark { width: 60px; height: 60px; }
    .wordmark { margin-bottom: 20px; }
    .hero-description { max-width: 480px; }
    .tools-section { padding-top: 22px; }
    .story-section { grid-template-columns: 1fr; gap: 25px; margin-inline: 18px; padding: 42px 28px; }
    .privacy-section { margin-inline: 18px; }
    footer { grid-template-columns: 1fr; text-align: center; }
    footer p:last-child { justify-self: center; }
}

@media (max-width: 520px) {
    .hero { min-height: 610px; }
    .hero-actions { width: 100%; flex-direction: column; align-items: center; gap: 11px; }
    .button { width: min(290px, 100%); }
    .tool-card { grid-template-columns: 1fr; text-align: center; }
    .tool-art { padding: 25px 24px 0; }
    .tool-art svg { max-width: 145px; margin-inline: auto; }
    .tool-content { padding: 16px 25px 28px; }
    .tool-content p { min-height: auto; }
    .privacy-section { align-items: flex-start; padding: 24px 22px; }
    .privacy-section svg { flex-basis: 44px; width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
