:root {
    --platform-bg: #fbf9f4;
    --platform-surface: #ffffff;
    --platform-soft: #f0eee9;
    --platform-border: #e4ded1;
    --platform-primary: #0f3433;
    --platform-primary-2: #1a2b47;
    --platform-text: #1b1c19;
    --platform-muted: #596564;
    --platform-gold: #c5a059;
    --platform-gold-soft: #ffdea5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.platform-public-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 4%, rgba(197, 160, 89, 0.18), transparent 22rem),
        radial-gradient(circle at 8% 18%, rgba(15, 52, 51, 0.08), transparent 20rem),
        linear-gradient(180deg, var(--platform-bg), #ffffff 78%);
    color: var(--platform-text);
    font-family: "Plus Jakarta Sans", sans-serif;
}
a { color: inherit; }

.platform-public-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(228, 222, 209, 0.88);
    background: rgba(251, 249, 244, 0.9);
    backdrop-filter: blur(18px);
}
.platform-public-nav {
    width: min(1180px, calc(100% - 2rem));
    min-height: 4.55rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.platform-public-brand img,
.platform-public-footer img {
    display: block;
    width: 10.25rem;
    max-height: 2.8rem;
    object-fit: contain;
}
.platform-public-nav nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--platform-muted);
    font-size: 0.92rem;
    font-weight: 800;
}
.platform-public-nav a { text-decoration: none; }
.platform-public-actions,
.platform-hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.platform-public-link { color: var(--platform-primary); font-weight: 900; }
.platform-public-button {
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.75rem;
    padding: 0.72rem 1rem;
    border: 1px solid var(--platform-border);
    background: var(--platform-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(15, 52, 51, 0.12);
}
.platform-public-button-gold { background: var(--platform-gold); border-color: #b59049; color: #1f1603; }
.platform-public-button-soft { background: var(--platform-surface); color: var(--platform-primary); box-shadow: none; }
.platform-hero,
.platform-section,
.platform-final-cta,
.platform-public-footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.platform-hero {
    min-height: 64vh;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2.4rem, 5.6vw, 4.3rem) 0 clamp(2rem, 4vw, 3.4rem);
}
.platform-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    background: rgba(255, 222, 165, 0.72);
    color: #5d4201;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 900;
}
.platform-hero h1,
.platform-section-head h2,
.platform-final-cta h2 {
    margin: 1rem 0 0;
    color: var(--platform-primary);
    font-family: "Noto Serif", serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}
.platform-hero h1 {
    max-width: 17ch;
    font-size: clamp(2.15rem, 4.6vw, 3.95rem);
}
.platform-hero p,
.platform-section-head { color: var(--platform-muted); }
.platform-hero p {
    max-width: 38rem;
    margin-top: 1.1rem;
    font-size: clamp(0.96rem, 1.25vw, 1.06rem);
    line-height: 1.7;
}
.platform-hero-visual { position: relative; }
.platform-hero-visual::before {
    content: "";
    position: absolute;
    inset: -1.1rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.14), rgba(15, 52, 51, 0.08));
    transform: rotate(1.5deg);
}
.platform-dashboard-preview {
    position: relative;
    display: grid;
    gap: 0.95rem;
    border: 1px solid var(--platform-border);
    border-radius: 1.35rem;
    background: rgba(255,255,255,0.92);
    padding: 1rem;
    box-shadow: 0 30px 80px rgba(15, 52, 51, 0.13);
    max-width: 34rem;
    margin-left: auto;
}
.platform-preview-top { min-height: 2.8rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 0.8rem; border-radius: 0.9rem; background: var(--platform-primary); }
.platform-preview-top span { width: 0.68rem; height: 0.68rem; border-radius: 999px; background: rgba(255,255,255,0.56); }
.platform-preview-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0.8rem; }
.platform-preview-card,
.platform-preview-list a,
.platform-preview-list div,
.platform-feature-card,
.platform-school-card,
.platform-theme-card {
    border: 1px solid var(--platform-border);
    background: var(--platform-surface);
}
.platform-preview-card { min-height: 6.1rem; display: grid; align-content: center; gap: 0.15rem; border-radius: 1rem; padding: 0.9rem; }
.platform-preview-card-main { background: var(--platform-soft); }
.platform-preview-card strong { color: var(--platform-primary); font-family: "Noto Serif", serif; font-size: clamp(1.55rem, 3vw, 2rem); }
.platform-preview-card span,
.platform-preview-list small,
.platform-school-meta,
.platform-feature-card p,
.platform-school-card p,
.platform-theme-card p { color: var(--platform-muted); }
.platform-preview-list { display: grid; gap: 0.7rem; }
.platform-preview-list a,
.platform-preview-list div { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; align-items: center; border-radius: 1rem; padding: 0.82rem; text-decoration: none; }
.platform-preview-list span { grid-row: span 2; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.65rem; background: var(--platform-gold-soft); color: #5d4201; font-weight: 900; }
.platform-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.platform-section-head { max-width: 54rem; margin-bottom: 2rem; }
.platform-section-head h2,
.platform-final-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.platform-feature-grid,
.platform-school-grid,
.platform-theme-grid { display: grid; gap: 1rem; }
.platform-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-school-grid,
.platform-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-feature-card,
.platform-school-card,
.platform-theme-card { border-radius: 1.15rem; padding: 1.2rem; box-shadow: 0 18px 52px rgba(15, 52, 51, 0.055); }
.platform-feature-card .material-symbols-outlined { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; background: var(--platform-soft); color: var(--platform-primary); margin-bottom: 1rem; }
.platform-feature-card h3,
.platform-school-card h3,
.platform-theme-card h3 { margin: 0 0 0.55rem; color: var(--platform-primary); font-size: 1.05rem; }
.platform-pilots { border-block: 1px solid var(--platform-border); }
.platform-school-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.platform-school-card > a { grid-column: 2; color: var(--platform-primary); font-weight: 900; }
.platform-school-logo { width: 4.25rem; height: 4.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; background: var(--platform-soft); color: var(--platform-primary); font-weight: 900; overflow: hidden; }
.platform-school-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.platform-school-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; }
.platform-school-meta span { border-radius: 999px; background: var(--platform-soft); padding: 0.3rem 0.62rem; }
.platform-theme-card { display: grid; grid-template-columns: minmax(8rem, 0.42fr) 1fr; gap: 1rem; }
.platform-theme-card img,
.platform-theme-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: 0.9rem; border: 1px solid var(--platform-border); background: var(--platform-soft); object-fit: cover; }
.platform-theme-placeholder { display: grid; place-items: center; color: var(--platform-primary); }
.platform-theme-card code { display: inline-flex; border-radius: 0.45rem; padding: 0.22rem 0.5rem; background: var(--platform-soft); color: var(--platform-primary); }
.platform-final-cta { display: grid; justify-items: center; gap: 1rem; margin-block: 4rem; border-radius: 1.45rem; background: var(--platform-primary); color: #fff; padding: clamp(2rem, 6vw, 3.6rem) 1.5rem; text-align: center; box-shadow: 0 28px 80px rgba(15,52,51,0.18); }
.platform-final-cta h2 { color: #fff; }
.platform-public-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--platform-border); color: var(--platform-muted); }
@media (max-width: 1099.98px) { .platform-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
    .platform-public-nav { flex-wrap: wrap; padding: 0.85rem 0; }
    .platform-public-nav nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
    .platform-hero,
    .platform-school-grid,
    .platform-theme-grid { grid-template-columns: 1fr; }
    .platform-hero { min-height: auto; gap: 2rem; padding: 3rem 0; }
    .platform-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .platform-public-actions { width: 100%; }
    .platform-public-button,
    .platform-public-link { flex: 1; text-align: center; }
    .platform-feature-grid,
    .platform-school-card,
    .platform-theme-card { grid-template-columns: 1fr; }
    .platform-school-card > a { grid-column: auto; }
    .platform-public-footer { align-items: flex-start; flex-direction: column; }
}
