:root {
    --navy: #06275f;
    --navy-dark: #031a43;
    --cream: #f5efe4;
    --white: #ffffff;
    --gold: #ffb329;
    --red: #df2027;
    --text: #082454;
    --muted: #68625c;
    --border: #ebe5dc;
    --shadow: 0 22px 55px rgba(6, 39, 95, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* =========================
   MAIN LAYOUT
========================= */

.landing-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(400px, 42%);
}

/* =========================
   LEFT HERO SECTION
========================= */

.hero-section {
    min-width: 0;
    min-height: 100vh;
    padding: clamp(28px, 3vw, 52px);
    display: flex;
    flex-direction: column;
    color: var(--white);
    background:
        radial-gradient(
            circle at 82% 17%,
            rgba(255, 255, 255, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            var(--navy),
            var(--navy-dark)
        );
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.school-logo {
    width: clamp(125px, 9vw, 165px);
    height: clamp(125px, 9vw, 165px);
    flex: 0 0 auto;
    object-fit: contain;
}

.school-brand-copy {
    min-width: 0;
}

.school-brand-copy h1 {
    margin: 0;
    font-size: clamp(24px, 2vw, 36px);
    line-height: 1.08;
}

.school-brand-copy strong {
    display: block;
    margin-top: 8px;
    color: var(--gold);
    font-size: clamp(14px, 1.15vw, 19px);
    letter-spacing: 0.19em;
}

.school-brand-copy span {
    display: block;
    margin-top: 7px;
    color: var(--gold);
    font-size: clamp(14px, 1.05vw, 18px);
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(330px, 42%);
    align-items: center;
    justify-content: space-between;
    column-gap: 6%;
    padding: clamp(44px, 6vh, 76px) 0;
}

.hero-copy {
    min-width: 0;
    width: 100%;
    justify-self: start;
}

.hero-copy h2 {
    width: 100%;
    max-width: 580px;
    margin: 0;
    font-size: clamp(56px, 5vw, 84px);
    line-height: 0.94;
    letter-spacing: -0.045em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-copy h2 .gold-text {
    display: block;
    color: var(--gold);
}

.hero-copy p {
    max-width: 560px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.72;
}

.feature-list {
    max-width: 540px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 26px;
}

.feature-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 700;
    line-height: 1.3;
}

.feature-item::before {
    content: "✓";
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 21px;
    line-height: 1;
}

/* =========================
   DASHBOARD PREVIEW
========================= */

.dashboard-preview {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    padding: 20px;
    border-radius: 34px;
    color: var(--navy);
    background: var(--white);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.27);
    transform: rotate(3deg);
    transform-origin: center;
}

.preview-header {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 800;
}

.preview-header strong {
    text-align: center;
    font-size: 18px;
}

.preview-card {
    margin-bottom: 14px;
    padding: 19px;
    border-radius: 22px;
    background: #f2f2f2;
}

.preview-card:last-child {
    margin-bottom: 0;
}

.preview-card span {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.preview-card strong {
    display: block;
    margin-top: 7px;
    font-size: 27px;
}

.preview-card small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================
   LEFT FOOTER
========================= */

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.hero-footer strong,
.hero-footer a {
    color: var(--gold);
    font-weight: 800;
}

/* =========================
   RIGHT PORTAL SECTION
========================= */

.portal-section {
    min-width: 0;
    min-height: 100vh;
    padding: clamp(34px, 3vw, 58px);
    display: flex;
    flex-direction: column;
    background: var(--cream);
}

.portal-heading {
    margin-bottom: 42px;
    text-align: center;
}

.portal-heading h2 {
    margin: 0;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1;
}

.portal-heading p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.25vw, 19px);
}

.portal-heading::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: var(--gold);
}

.portal-cards {
    display: grid;
    gap: 28px;
}

.portal-card {
    width: 100%;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.portal-card-top {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.portal-icon {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 34px;
    font-weight: 800;
}

.portal-icon.admin {
    background: var(--navy);
}

.portal-icon.registry {
    background: var(--red);
}

.portal-card h3 {
    margin: 0 0 11px;
    color: #000000;
    font-size: clamp(25px, 2vw, 32px);
}

.portal-card p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
}

.portal-button {
    display: block;
    width: 100%;
    padding: 18px 22px;
    border-radius: 17px;
    color: var(--white);
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.portal-button:hover {
    transform: translateY(-2px);
    opacity: 0.94;
}

.portal-button.admin {
    background: var(--navy);
}

.portal-button.registry {
    background: var(--red);
}

.portal-footer {
    margin-top: auto;
    padding-top: 38px;
    text-align: center;
    color: var(--navy);
    font-size: 14px;
}

/* =========================
   MEDIUM DESKTOP
========================= */

@media (max-width: 1380px) and (min-width: 1181px) {
    .hero-content {
        grid-template-columns: minmax(0, 51%) minmax(320px, 43%);
        column-gap: 6%;
    }

    .hero-copy h2 {
        font-size: clamp(52px, 4.7vw, 72px);
    }

    .dashboard-preview {
        max-width: 380px;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1180px) {
    .landing-page {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .portal-section {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
        column-gap: 36px;
    }

    .hero-copy h2 {
        max-width: 550px;
        font-size: clamp(52px, 7vw, 76px);
    }

    .dashboard-preview {
        max-width: 390px;
    }

    .portal-section {
        padding-top: 54px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 820px) {
    .hero-section {
        padding: 24px 18px 28px;
    }

    .school-brand {
        align-items: flex-start;
        gap: 15px;
    }

    .school-logo {
        width: 105px;
        height: 105px;
    }

    .school-brand-copy h1 {
        font-size: 21px;
    }

    .school-brand-copy strong {
        font-size: 12px;
    }

    .school-brand-copy span {
        font-size: 13px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        row-gap: 34px;
        padding: 42px 0 28px;
    }

    .hero-copy h2 {
        max-width: none;
        font-size: clamp(44px, 13vw, 64px);
        line-height: 0.96;
    }

    .hero-copy p {
        max-width: none;
        font-size: 16px;
    }

    .dashboard-preview {
        width: 100%;
        max-width: 520px;
        justify-self: center;
        transform: none;
    }

    .hero-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portal-section {
        padding: 42px 18px 26px;
    }

    .portal-heading {
        margin-bottom: 30px;
    }

    .portal-heading h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .portal-cards {
        gap: 20px;
    }

    .portal-card {
        padding: 23px 20px;
        border-radius: 23px;
    }

    .portal-card-top {
        gap: 16px;
    }

    .portal-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        font-size: 27px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 560px) {
    .hero-section {
        padding: 20px 14px 24px;
    }

    .school-logo {
        width: 88px;
        height: 88px;
    }

    .school-brand-copy h1 {
        font-size: 18px;
    }

    .school-brand-copy strong {
        font-size: 10px;
        letter-spacing: 0.15em;
    }

    .school-brand-copy span {
        font-size: 11px;
    }

    .hero-content {
        padding-top: 34px;
    }

    .hero-copy h2 {
        font-size: clamp(39px, 14vw, 52px);
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.65;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .dashboard-preview {
        padding: 15px;
        border-radius: 23px;
    }

    .preview-card {
        padding: 15px;
        border-radius: 17px;
    }

    .preview-card strong {
        font-size: 22px;
    }

    .portal-section {
        padding: 36px 14px 22px;
    }

    .portal-heading h2 {
        font-size: 34px;
    }

    .portal-card {
        padding: 20px 16px;
    }

    .portal-card-top {
        align-items: flex-start;
    }

    .portal-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        font-size: 23px;
    }

    .portal-card h3 {
        font-size: 22px;
    }

    .portal-card p {
        font-size: 15px;
    }

    .portal-button {
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .school-logo {
        width: 74px;
        height: 74px;
    }

    .school-brand-copy h1 {
        font-size: 16px;
    }

    .hero-copy h2 {
        font-size: 36px;
    }

    .portal-heading h2 {
        font-size: 30px;
    }
}
