/* =====================================================
   UniCalc — Homepage Styles
   Only loaded on index.html
   ===================================================== */

/* Hero Primary Button */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    background: var(--accent);
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-hero-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-icon-arrow {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover .btn-icon-arrow {
    transform: translateY(2px);
}

/* Hero Secondary Button */
.btn-glass-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-glass-outline:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass-outline:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: calc(var(--header-height) + 40px) 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0.3;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(20deg) translateY(-100px) scale(1.5);
    opacity: 0.6;
}

.gradient-sphere {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.gradient-sphere.secondary {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    /* Crisp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 32px;
    font-family: var(--font-display);
    /* Crisp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.line-wrapper {
    display: block;
    overflow: hidden;
}

.line-reveal {
    display: block;
    white-space: nowrap;
    transform: translateY(100%);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-outline {
    -webkit-text-stroke: 2px var(--text-secondary);
    -webkit-text-fill-color: transparent;
    transition: -webkit-text-fill-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

[data-theme="light"] .text-outline {
    -webkit-text-stroke: 2px var(--text-primary);
}

.text-outline:hover {
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
}

@keyframes revealUp {
    to {
        transform: translateY(0);
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    /* Crisp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.link-underline {
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
    /* Crisp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.link-underline:hover {
    color: var(--text-primary);
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.reveal-text.delay-1 {
    animation-delay: 0.2s;
}

.reveal-text.delay-2 {
    animation-delay: 0.4s;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    animation: revealScale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

/* Hero visual container - provides 3D space for the calculator window */
.hero-visual {
    perspective: 1200px;
    perspective-origin: center center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D Window reveal animation - ends in tilted state */
@keyframes reveal3DWindow {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(15deg) rotateY(-15deg) scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(4deg) rotateY(-8deg) scale(1);
    }
}

/* Calculator Window (Glassmorphism & 3D) */
.calculator-window {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    /* Enhanced 3D box shadow for depth - creates 3D box appearance */
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    /* Initial state for animation entrance */
    opacity: 0;
    animation: reveal3DWindow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
    /* Transform will be controlled by JS for 3D tilt */
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    /* 3D depth effect - transition for hover shadow changes only */
    transition: box-shadow 0.4s ease;
}

/* Enhanced shadow on hover for more 3D depth */
.calculator-window:hover {
    box-shadow:
        10px 50px 100px rgba(0, 0, 0, 0.7),
        5px 30px 60px rgba(0, 0, 0, 0.5),
        2px 15px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(59, 130, 246, 0.08);
}

/* Glare overlay for the tilt effect */
.calculator-window .tilt-glare {
    mix-blend-mode: overlay;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background-color: #ff5f57;
}

.control.yellow {
    background-color: #febc2e;
}

.control.green {
    background-color: #28c840;
}

.window-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calc-grid {
    display: grid;
    gap: 20px;
}

.calc-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-mock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
}

.input-mock.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.input-mock .total {
    color: var(--text-tertiary);
}

.bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 24px 0;
}

.calc-result {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.window-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.3;
}

/* Marquee Section */
.marquee-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    transform: translateZ(0);
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-item:hover {
    color: var(--text-primary);
    transform: translateY(-6px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Process Section (Bento) */
.process {
    padding: 160px 0 120px;
    position: relative;
}

.process::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 65%);
    pointer-events: none;
}

.process .container {
    position: relative;
    z-index: 1;
}

.section-head {
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.headline {
    font-size: 4rem;
        font-size: clamp(2.5rem, 8vw, 4.8rem);
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 300px;
    text-align: right;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 48px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.process-card:hover::before {
    opacity: 1;
}

.process-card>* {
    position: relative;
}

.card-number {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.process-card h3 {
    font-size: 1.8rem;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 320px;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sub-headline {
        text-align: left;
    }
}

/* Universities (Ecosystem) */
.universities {
    padding: 160px 0 120px;
    position: relative;
    background: var(--bg-base);
}

.universities::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.05), transparent 55%);
    pointer-events: none;
}

.universities .section-head {
    align-items: flex-start;
    gap: 24px;
}

.universities .headline {
    font-size: clamp(3rem, 8vw, 5rem);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

.uni-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--bg-base, #050505);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    overflow: hidden;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.uni-card {
    position: relative;
    padding: 40px 32px;
    border-radius: 0;
    background: rgba(8, 8, 8, 0.92);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uni-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uni-card:hover {
    transform: translateY(-4px);
    background: rgba(15, 15, 15, 0.95);
}

.uni-card:hover::before {
    opacity: 1;
}

.uni-card * {
    position: relative;
}

.uni-initial {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.uni-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uni-type {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Feature Strip - Sliding Marquee */
.feature-strip {
    background: #f5f5f5;
    padding: 40px 0;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    transform: rotate(-3deg);
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.strip-track {
    display: flex;
    width: max-content;
    animation: stripSlide 25s linear infinite;
}

.strip-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    flex-shrink: 0;
}

.strip-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    color: #050505;
    text-transform: uppercase;
    white-space: nowrap;
}

.strip-dot {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent);
    font-weight: 700;
}

@keyframes stripSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .universities {
        padding: 80px 0;
    }

    .universities .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-container {
        width: 100%;
    }

    .uni-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        border-radius: 20px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 140px 0;
}

.faq-section .section-head {
    margin-bottom: 60px;
    align-items: flex-start;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: rgba(93, 133, 255, 0.8);
    box-shadow: 0 0 25px rgba(93, 133, 255, 0.15);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.4rem;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-inner {
    padding: 0 32px 28px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-trigger {
        font-size: 1.15rem;
        padding: 24px;
    }

    .faq-inner {
        padding: 0 24px 24px;
    }
}

/* =====================================================
   HOMEPAGE RESPONSIVE DESIGN
   ===================================================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 7rem;
    }

    .calculator-window {
        padding: 32px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .hero-grid {
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(3.5rem, 10vw, 6rem);
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .calculator-window {
        padding: 20px;
    }

    .result-value {
        font-size: 2.8rem;
    }

    .process-grid {
        gap: 24px;
    }

    .process-card {
        padding: 36px;
    }
}

/* Tablet Landscape (992px) */
@media (max-width: 992px) {
    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        width: 90%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: clamp(2.8rem, 10vw, 4.5rem);
    }

    /* Calculator Window */
    .calculator-window {
        padding: 24px;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .input-mock {
        font-size: 1rem;
        padding: 10px;
    }

    /* Process */
    .process {
        padding: 100px 0 80px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-card {
        padding: 32px;
        min-height: auto;
    }

    /* Universities */
    .universities {
        padding: 100px 0;
    }

    .uni-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FAQ */
    .faq-section {
        padding: 100px 0;
    }

    /* Feature Strip - Tablet fix */
    .feature-strip {
        margin: 60px 0;
        padding: 30px 0;
        width: 100vw;
        max-width: 100%;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        transform: rotate(-2.5deg);
    }

    .strip-text {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: calc(var(--header-height) + 30px) 0 50px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 13vw, 4rem);
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-actions {
        gap: 20px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-hero-primary {
        padding: 13px 26px;
        font-size: 0.9rem;
    }

    .btn-glass-outline {
        padding: 13px 26px;
        font-size: 0.9rem;
    }

    /* Calculator Window - Leave margins on mobile */
    .hero-visual {
        width: 92%;
        max-width: 420px;
        margin: 0 auto;
    }

    .calculator-window {
        padding: 20px;
        border-radius: 12px;
    }

    .window-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .calc-grid {
        gap: 14px;
    }

    .calc-item label {
        font-size: 0.75rem;
    }

    .input-mock {
        padding: 10px;
        font-size: 0.95rem;
    }

    .result-value {
        font-size: 2.2rem;
    }

    .result-unit {
        font-size: 1.2rem;
    }

    .calc-divider {
        margin: 16px 0;
    }

    /* Marquee */
    .marquee-section {
        padding: 50px 0;
        margin-top: 25px;
    }

    .marquee-item {
        font-size: 3rem;
        gap: 30px;
    }

    .marquee-track {
        gap: 40px;
    }

    /* Section Headings */
    .headline {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .section-head {
        margin-bottom: 50px;
    }

    /* Process */
    .process {
        padding: 80px 0 60px;
    }

    .process-card {
        padding: 28px;
    }

    .process-card h3 {
        font-size: 1.5rem;
    }

    /* Universities */
    .universities {
        padding: 80px 0;
    }

    .uni-card {
        padding: 28px 20px;
        min-height: 130px;
    }

    .uni-initial {
        font-size: 1.6rem;
    }

    /* Feature Strip */
    .feature-strip {
        padding: 25px 0;
        margin: 50px 0;
        transform: rotate(-2deg);
    }

    .strip-text {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .strip-content {
        gap: 24px;
    }

    /* FAQ */
    .faq-section {
        padding: 80px 0;
    }

    .faq-trigger {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-inner {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}

/* Mobile Large (576px) */
@media (max-width: 576px) {
    /* Hero */
    .hero {
        padding: calc(var(--header-height) + 20px) 0 40px;
    }

    .hero-label {
        font-size: 0.8rem;
        gap: 10px;
        margin-bottom: 20px;
        margin-top: 17px;
    }

    .label-line {
        width: 24px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 15vw, 3.5rem);
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-lg {
        padding: 11px 20px;
        font-size: 0.875rem;
    }

    .btn-hero-primary {
        padding: 13px 26px;
        font-size: 0.9rem;
    }

    .btn-glass-outline {
        padding: 13px 26px;
        font-size: 0.9rem;
    }

    /* Calculator Window - Mobile margins */
    .hero-visual {
        width: 88%;
        max-width: 360px;
        margin: 0 auto;
    }

    .calculator-window {
        padding: 16px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        will-change: auto;
        transform-style: flat;
    }

    .calculator-window:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .window-controls {
        gap: 6px;
    }

    .control {
        width: 10px;
        height: 10px;
    }

    .window-title {
        font-size: 0.7rem;
    }

    .calc-grid {
        gap: 12px;
    }

    .input-mock {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .result-unit {
        font-size: 1rem;
    }

    .result-label {
        font-size: 0.65rem;
    }

    /* Marquee */
    .marquee-section {
        padding: 40px 0;
        margin-top: 25px;
    }

    .marquee-item {
        font-size: 2.2rem;
        gap: 24px;
    }

    .marquee-track {
        gap: 30px;
    }

    /* Section Headings */
    .headline {
        font-size: clamp(1.8rem, 12vw, 2.8rem);
    }

    .sub-headline,
    .sub-headline-center {
        font-size: 1rem;
    }

    .section-head {
        margin-bottom: 40px;
    }

    /* Process */
    .process {
        padding: 60px 0 50px;
    }

    .process-card {
        padding: 24px;
    }

    .card-number {
        font-size: 0.85rem;
    }

    .process-card h3 {
        font-size: 1.3rem;
    }

    .process-card p {
        font-size: 1rem;
    }

    /* Universities */
    .universities {
        padding: 60px 0;
    }

    .filter-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .filter-pill {
        padding: 10px 16px;
        font-size: 0.9rem;
        text-align: center;
        justify-content: center;
        border-radius: 10px;
    }

    .uni-grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
        margin-top: 40px;
    }

    .uni-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .uni-initial {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .uni-type {
        font-size: 0.9rem;
    }

    /* Feature Strip - Mobile fix */
    .feature-strip {
        padding: 20px 0;
        margin: 40px 0;
        width: 100vw;
        max-width: 100%;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        transform: rotate(-2deg);
    }

    .strip-text {
        font-size: 1.4rem;
    }

    .strip-dot {
        font-size: 1rem;
    }

    .strip-content {
        gap: 16px;
    }

    /* FAQ */
    .faq-section {
        padding: 60px 0;
    }

    .faq-item {
        border-radius: 12px;
    }

    .faq-trigger {
        font-size: 1rem;
        padding: 20px 16px;
    }

    .faq-icon {
        font-size: 1.2rem;
    }

    .faq-inner {
        padding: 0 16px 18px;
        font-size: 0.95rem;
    }
}

/* Mobile Small (400px and below) */
@media (max-width: 400px) {
    .hero-title {
        font-size: clamp(2.3rem, 14vw, 2.8rem);
    }

    /* Calculator Window - Extra small mobile */
    .hero-visual {
        width: 85%;
        max-width: 320px;
    }

    .calculator-window {
        padding: 12px;
    }

    .result-value {
        font-size: 1.8rem;
    }

    /* Feature Strip - Extra small mobile */
    .feature-strip {
        padding: 16px 0;
        margin: 30px 0;
        transform: rotate(-1.5deg);
    }

    .strip-text {
        font-size: 1.2rem;
    }

    .strip-dot {
        font-size: 0.8rem;
    }

    .strip-content {
        gap: 12px;
        padding: 0 10px;
    }
}

/* Very small phones (320px) */
@media (max-width: 340px) {
    .hero-title {
        font-size: clamp(2rem, 13vw, 2.4rem);
    }

    .hero-label {
        font-size: 0.7rem;
        gap: 8px;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-visual {
        width: 90%;
        max-width: 280px;
    }

    .calculator-window {
        padding: 10px;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-unit {
        font-size: 0.85rem;
    }

    .result-label {
        font-size: 0.6rem;
    }

    .input-mock {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .calc-grid {
        gap: 10px;
    }

    .calc-item label {
        font-size: 0.65rem;
    }

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

    .uni-initial {
        font-size: 1.2rem;
    }

    .uni-type {
        font-size: 0.82rem;
    }

    .process-card {
        padding: 20px;
    }

    .process-card h3 {
        font-size: 1.2rem;
    }

    .faq-trigger {
        font-size: 0.9rem;
        padding: 16px 14px;
    }

    .faq-inner {
        padding: 0 14px 14px;
        font-size: 0.9rem;
    }

    .faq-icon {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-glass-outline {
        padding: 12px 20px;
        font-size: 0.82rem;
    }

    .marquee-item {
        font-size: 1.8rem;
        gap: 20px;
    }

    .marquee-track {
        gap: 24px;
    }

    .headline {
        font-size: clamp(1.5rem, 12vw, 2.2rem);
    }

    .filter-pill {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .filter-container {
        gap: 6px;
    }
}

/* Reduce motion for homepage animations */
@media (prefers-reduced-motion: reduce) {
    .strip-track,
    .marquee-track {
        animation: none;
    }
}

/* =====================================================
   LIGHT THEME OVERRIDES — Homepage
   ===================================================== */
[data-theme="light"] .btn-glass-outline {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
}
[data-theme="light"] .btn-glass-outline:hover {
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}
[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}
[data-theme="light"] .calculator-window {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .calculator-window:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 12px 36px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .window-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .input-mock {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .input-mock.active {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .bar {
    background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .calc-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}
[data-theme="light"] .process-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .process-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .card-number {
    color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .uni-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .uni-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .filter-pill {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    background: transparent;
}
[data-theme="light"] .filter-pill:hover {
    border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
[data-theme="light"] .feature-strip {
    background: var(--text-primary);
}
[data-theme="light"] .strip-text {
    color: #ffffff;
}
[data-theme="light"] .strip-dot {
    color: rgba(255, 255, 255, 0.3);
}
[data-theme="light"] .marquee-item {
    color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .faq-item {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.01);
}
[data-theme="light"] .faq-item.active {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}
[data-theme="light"] .gradient-sphere {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}
[data-theme="light"] .gradient-sphere.secondary {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}
[data-theme="light"] .hero-bg .bg-image {
    opacity: 0.15;
}
[data-theme="light"] .window-reflection {
    display: none;
}

/* Print styles for homepage */
@media print {
    .hero-bg,
    .feature-strip {
        display: none;
    }
}
