/* StepDesk landing page.
   Light theme in the colours of ict.gsu.edu.ph. One typeface, Tailwind type scale,
   spacing tokens only, flat backgrounds. */

:root {
    /* Light theme surfaces */
    --surface-page: #FFFFFF;
    --surface-card: #EEF2FB;
    --surface-raised: #FFFFFF;
    --surface-border: #DCE3F4;
    --surface-hover: #C5D0EA;

    --text-strong: #222222;
    --text-muted: #5A6070;

    /* Brand colours taken from ict.gsu.edu.ph */
    --brand: #1337AC;
    --brand-hover: #10309B;
    --link: #025AA5;
    --accent-red: #950004;

    /* Spacing tokens */
    --spacing-25: 2px;
    --spacing-50: 4px;
    --spacing-75: 8px;
    --spacing-100: 12px;
    --spacing-200: 16px;
    --spacing-300: 24px;
    --spacing-400: 32px;
    --spacing-500: 40px;
    --spacing-600: 48px;
    --spacing-700: 64px;
    --spacing-800: 80px;
    --spacing-900: 96px;

    /* Tailwind radius values */
    --radius-lg: 8px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    --ease-base: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface-page);
    color: var(--text-strong);
    font-family: 'Poppins', system-ui, sans-serif;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

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

button {
    font: inherit;
    color: inherit;
}

/* ---- Text styles ---- */

.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; text-wrap: balance; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; text-wrap: balance; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; text-wrap: balance; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; text-wrap: balance; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; text-wrap: pretty; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; text-wrap: pretty; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }

.muted {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .heading-1 { font-size: 36px; line-height: 40px; }
    .heading-2 { font-size: 30px; line-height: 36px; }
    .heading-3 { font-size: 24px; line-height: 32px; }
}

/* ---- Layout ---- */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: var(--spacing-300);
}

.section {
    padding-block: var(--spacing-900);
}

.section-head {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-200);
    margin-bottom: var(--spacing-700);
}

@media (max-width: 640px) {
    .section {
        padding-block: var(--spacing-700);
    }

    .section-head {
        margin-bottom: var(--spacing-500);
    }
}

.eyebrow {
    color: var(--accent-red);
}

.section-head h2,
.card h3,
.step h3 {
    color: var(--brand);
}

/* ---- Skip link and focus ---- */

.skip-link {
    position: absolute;
    left: var(--spacing-200);
    top: var(--spacing-200);
    z-index: 100;
    padding: var(--spacing-75) var(--spacing-100);
    background: var(--brand);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    transform: translateY(-200%);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: var(--spacing-50);
}

/* ---- Buttons ---- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-75);
    padding: var(--spacing-75) var(--spacing-100);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition:
        transform 300ms var(--ease-base),
        background-color 300ms var(--ease-base),
        opacity 300ms var(--ease-base);
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    background: var(--brand);
    color: #FFFFFF;
}

.button-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    border-color: var(--surface-hover);
    color: var(--brand);
}

.button-secondary:hover {
    background: var(--surface-card);
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: var(--spacing-200);
    left: 50%;
    z-index: 50;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-300);
    max-width: calc(100% - var(--spacing-400));
    padding: var(--spacing-75) var(--spacing-75) var(--spacing-75) var(--spacing-200);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-2xl);
}

.nav-brand {
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-75);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-200);
}

.nav-link {
    padding: var(--spacing-75) var(--spacing-100);
    color: var(--text-muted);
    transition: color 300ms var(--ease-base);
}

.nav-link:hover,
.nav-link[aria-current='page'] {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
}

.nav-toggle-line {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: var(--brand);
    transition: transform 500ms var(--ease-base);
}

.nav-toggle-line:nth-child(1) { top: 15px; }
.nav-toggle-line:nth-child(2) { top: 23px; }

.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.menu-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-200);
    padding: var(--spacing-900) var(--spacing-300) var(--spacing-600);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 500ms var(--ease-base),
        visibility 500ms var(--ease-base);
}

.menu-panel.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-link {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 500ms var(--ease-base),
        transform 500ms var(--ease-base);
}

.menu-panel.is-open .menu-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--index) * 60ms);
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        justify-content: space-between;
        width: calc(100% - var(--spacing-400));
    }
}

@media (min-width: 761px) {
    .menu-panel {
        display: none;
    }
}

/* ---- Hero ---- */

.hero {
    padding-top: calc(var(--spacing-900) + var(--spacing-600));
    padding-bottom: var(--spacing-900);
}

.hero-copy {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-300);
}

.hero-title {
    background: linear-gradient(to right, #000000, #666666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 680px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-200);
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: var(--spacing-75);
    color: var(--text-muted);
    max-width: 680px;
}

.hero-visual {
    margin-top: var(--spacing-700);
}

/* ---- Example ticket (illustration) ---- */

.ticket-card {
    max-width: 760px;
    padding: var(--spacing-200);
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-2xl);
}

.ticket-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-100);
    padding-bottom: var(--spacing-200);
    border-bottom: 1px solid var(--surface-border);
}

.ticket-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-75);
}

.badge {
    padding: var(--spacing-25) var(--spacing-75);
    background: var(--surface-raised);
    border: 1px solid var(--surface-hover);
    color: var(--text-muted);
}

.badge-strong {
    background: var(--brand);
    border-color: var(--brand);
    color: #FFFFFF;
}

.thread {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-100);
    padding-top: var(--spacing-200);
}

.thread-entry {
    padding: var(--spacing-200);
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
}

.thread-entry-head {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-100);
    margin-bottom: var(--spacing-75);
}

.example-note {
    margin-top: var(--spacing-100);
    color: var(--text-muted);
}

/* ---- Benefits ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-200);
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-100);
    padding: var(--spacing-300);
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-2xl);
    transition:
        transform 500ms var(--ease-base),
        background-color 300ms var(--ease-base);
}

.card:hover {
    background: var(--surface-raised);
    transform: translateY(-2px);
}

.card-icon {
    color: var(--brand);
    font-size: 24px;
    line-height: 24px;
    margin-bottom: var(--spacing-75);
}

/* ---- How it works ---- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-200);
    counter-reset: step;
}

.step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-100);
    padding: var(--spacing-300);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-2xl);
}

.step-number {
    color: var(--accent-red);
}

/* ---- Tagline reveal ---- */

.tagline {
    max-width: 880px;
    color: var(--brand);
}

.tagline-word {
    display: inline-block;
    margin-right: 0.25em;
    opacity: 0.3;
    transition: opacity 500ms var(--ease-base);
}

.tagline-word.is-lit {
    opacity: 1;
}

@media (min-width: 641px) {
    .tagline.heading-3 {
        font-size: 48px;
        line-height: 48px;
    }
}

/* ---- Audiences ---- */

.audience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-200);
}

/* ---- FAQ ---- */

.faq {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-100);
}

.faq-item {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-2xl);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-200);
    padding: var(--spacing-200) var(--spacing-300);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex: none;
    transition: transform 500ms var(--ease-base);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-300) var(--spacing-300);
    color: var(--text-muted);
    max-width: 680px;
}

.faq-answer a {
    color: var(--link);
    text-decoration: underline;
}

/* ---- Final CTA ---- */

.final-cta {
    padding: var(--spacing-700) var(--spacing-300);
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-300);
}

.final-cta h2 {
    color: #FFFFFF;
}

.final-cta p {
    max-width: 680px;
    color: #DCE3F4;
}

.final-cta .button-primary {
    background: #FFFFFF;
    color: var(--brand);
}

.final-cta .button-primary:hover {
    background: var(--surface-card);
}

.final-cta a:focus-visible {
    outline-color: #FFFFFF;
}

/* ---- Footer ---- */

.footer {
    padding-block: var(--spacing-600);
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-300);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-300);
}

.footer-links a:hover {
    color: var(--brand);
}

/* ---- Scroll reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 700ms var(--ease-base),
        transform 700ms var(--ease-base);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Reduced motion: opacity only ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .menu-link {
        transform: none;
    }

    .button:hover,
    .card:hover {
        transform: none;
    }

    .tagline-word {
        opacity: 1;
        transition: none;
    }
}
