/* =======================================================
   QUESPER AI — PREMIUM DESIGN SYSTEM (WEB 2.0 REDESIGN)
======================================================= */

/* =========================
   ROOT VARIABLES
========================= */
:root {
    --accent-primary: #FF6B35;
    --accent-dark: #E5521C;
    --accent-light: #FF8C5A;

    --bg-primary: #0F0F13;
    --bg-secondary: #14141A;
    --bg-card: #1A1A22;
    --bg-elevated: #232330;

    --text-primary: #FFFFFF;
    --text-secondary: #A7A7B5;
    --text-muted: #707082;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(255, 107, 53, 0.25);

    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.15), 0 0 60px rgba(255, 107, 53, 0.08);
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.4);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container-width: 1240px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================
   RESET & DEFAULTS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    line-height: 1.5;
}

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

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

ul {
    list-style: none;
}

section {
    position: relative;
    z-index: 1;
}

.section-container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09090c;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* =========================
   GLOW & UTILITIES
========================= */
.hero-glow {
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border-accent);
    background: rgba(255, 107, 53, 0.06);
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.highlight-text {
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C5A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Common Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Divider Lines */
hr.card-divider {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(15, 15, 19, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(15, 15, 19, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: min(90%, var(--container-width));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-cta-btn {
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--accent-primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: var(--accent-light);
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 60%);
}

.hero-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 75% 50%, #000 0%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-top: 24px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-primary-glow {
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--accent-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.45);
}

.btn-secondary-glass {
    padding: 16px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-glass:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-left: 2px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 6px;
    font-weight: 500;
}

/* Hero Phone Container */
.hero-phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22) 0%, transparent 70%);
}

.hero-phone {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.phone-frame {
    width: 320px;
    height: 650px;
    padding: 10px;
    border-radius: 40px;
    background: #08080B;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 107, 53, 0.08);
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: #0C0C10;
    position: relative;
}

.phone-screen img,
.phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Math Symbols */
.floating-math {
    position: absolute;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.6;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.math-1 { top: 15%; left: 0%; font-size: 2.5rem; }
.math-2 { top: 22%; right: 5%; font-size: 2rem; }
.math-3 { bottom: 25%; left: -5%; font-size: 1.8rem; }
.math-4 { bottom: 15%; right: 8%; font-size: 2.2rem; }
.math-5 { top: 50%; left: -10%; font-size: 2.4rem; }

/* =========================
   TRUST BAR (Logo Marquee)
========================= */
.trust-bar {
    padding: 30px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.trust-container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.trust-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.trust-marquee-wrapper {
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

.trust-marquee-wrapper::before,
.trust-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.trust-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.trust-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.trust-logos {
    display: flex;
    gap: 40px;
    white-space: nowrap;
}

.trust-item {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-item:hover {
    opacity: 1;
    color: var(--accent-primary);
    border-color: rgba(255, 107, 53, 0.15);
}

/* =======================================================
   STICKY PHONE SHOWCASE (Option C)
======================================================= */
.showcase-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.01) 50%, transparent);
}

.showcase-container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

/* Sticky Phone Left side */
.sticky-phone-wrapper {
    height: 100%;
    min-height: calc(100vh - 120px);
}

.sticky-phone {
    position: sticky;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    transition: all 0.3s ease;
}

.large-phone {
    width: 330px;
    height: 670px;
    border-radius: 44px;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Height-based scaling to prevent phone from cutting off on short screens */
@media (max-height: 850px) {
    .sticky-phone {
        top: 10vh;
        padding: 20px 0;
    }
    .large-phone {
        height: 70vh;
        width: calc(70vh * 330 / 670);
        border-radius: calc(70vh * 44 / 670);
    }
/* Inline Mobile Showcase Image (hidden on desktop) */
.mobile-showcase-image {
    display: none;
}

/* Showcase Steps Right side */
.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 150px;
    padding-bottom: 200px;
}

.showcase-step {
    padding-left: 36px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, opacity 0.4s ease;
    opacity: 0.4;
}

.showcase-step.active {
    border-left-color: var(--accent-primary);
    opacity: 1;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 12px;
}

.showcase-step h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-step p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =======================================================
   AI OCR DEMO SECTION (Process Walkthrough)
======================================================= */
.ocr-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.ocr-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ocr-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.ocr-heading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.ocr-story-wrapper {
    display: grid;
    grid-template-columns: 1fr 120px 1.2fr;
    gap: 30px;
    align-items: center;
}

/* Left Card: textbook image scan */
.ocr-card {
    height: 480px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.ocr-label {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    z-index: 10;
    background: rgba(15, 15, 19, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.ocr-textbook {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Scan Laser Line animation */
.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 2;
    pointer-events: none;
    display: none; /* activated in JS */
}

/* Scanning box bounding mockup */
.crop-box {
    position: absolute;
    border: 2px dashed var(--accent-primary);
    background: rgba(255, 107, 53, 0.08);
    border-radius: 6px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

/* Middle: Vertically aligned line pipeline */
.ocr-pipeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
}

.ocr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ocr-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ocr-step.active .ocr-dot {
    background: var(--accent-primary);
    border-color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-primary);
}

.ocr-step h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.ocr-step.active h4 {
    color: var(--accent-light);
}

.ocr-line-v {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.ocr-line-v.active {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-dark));
}

/* Right Card: Console simulation */
/* Right Card: Extracted Questions Mockup */
.output-card {
    padding: 0;
    background: #09090C;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

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

.results-meta h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.results-meta p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.count-badge {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(255, 107, 53, 0.25);
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ocr-results-body {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(480px - 82px); /* height limit to match textbook card */
    scroll-behavior: smooth;
}

/* Empty State / Spinner */
.ocr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: var(--text-muted);
    gap: 16px;
    text-align: center;
}

.ocr-empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

.spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 107, 53, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Question Cards */
.question-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.question-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.q-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.q-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.q-marks {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.q-card-body {
    margin-bottom: 16px;
}

.q-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.math-expr {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--accent-light);
}

/* Matrix layout styles */
.matrix-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
    vertical-align: middle;
}

.matrix-bracket {
    font-size: 3.4rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    user-select: none;
    transform: scaleY(1.25);
}

.matrix-bracket.left {
    margin-right: -4px;
}

.matrix-bracket.right {
    margin-left: -4px;
}

.matrix-grid {
    display: grid;
    gap: 4px 12px;
    text-align: center;
    padding: 0 6px;
}

.matrix-grid.col-3 {
    grid-template-columns: repeat(3, minmax(40px, auto));
}

.matrix-cell {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    font-family: 'Outfit', sans-serif;
}

/* Action button in card */
.q-card-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-add-section {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-add-section:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--accent-primary);
}

.btn-add-section.added {
    background: #FF6B35;
    color: #FFFFFF;
    border-color: #FF6B35;
}

.plus-icon {
    font-size: 1rem;
    line-height: 1;
}

/* =======================================================
   BENTO FEATURES GRID
======================================================= */
.bento-section {
    padding: 120px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 50px;
}

.bento-card {
    position: relative;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
    backdrop-filter: blur(14px);
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Card Glow behind it */
.bento-card-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 107, 53, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.bento-card:hover .bento-card-bg-glow {
    opacity: 1;
}

.bento-card-header {
    margin-bottom: 24px;
}

.bento-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Specific Card Layouts */
.card-ocr {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.bento-stat {
    display: flex;
    flex-direction: column;
}

.bento-stat .stat-val {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.bento-stat .stat-lbl {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 6px;
}

.card-export {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.export-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-badge {
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-badge.pdf {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.exp-badge.word {
    background: rgba(255, 107, 53, 0.08);
    color: var(--accent-light);
    border-color: rgba(255, 107, 53, 0.2);
}

.card-ncert {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.ncert-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.ncert-content p {
    margin-bottom: 0;
}

.ncert-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ncert-chip {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.ncert-chip:hover {
    color: var(--accent-primary);
    border-color: rgba(255, 107, 53, 0.25);
    background: rgba(255, 107, 53, 0.03);
}

/* =======================================================
   ARCHITECTURE FLOW SECTION
======================================================= */
.architecture-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.02) 0%, transparent 60%);
}

.architecture-flow-container {
    width: 100%;
    margin: 60px 0 50px;
}

.arch-nodes-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.arch-node-card {
    flex: 1;
    min-height: 200px;
    padding: 30px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arch-node-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.arch-node-card.featured-node {
    border-color: rgba(255, 107, 53, 0.35);
    background: rgba(255, 107, 53, 0.03);
    box-shadow: 0 15px 45px rgba(255, 107, 53, 0.1);
}

.arch-icon-box {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.arch-node-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-node-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Connective lines and SVG particle path styling */
.arch-line-container {
    width: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.arch-svg-line {
    width: 100%;
    height: auto;
    overflow: visible;
}

.flowing-particles {
    animation: flowParticles 1.5s linear infinite;
}

@keyframes flowParticles {
    to {
        stroke-dashoffset: -23;
    }
}

/* Specs below flow */
.architecture-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
}

.spec-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-light);
}

.spec-column p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =======================================================
   SCREENSHOT GALLERY (3D Interactive Wave Layout)
======================================================= */
.gallery-section {
    padding: 120px 0;
    overflow-clip-margin: 50px;
}

.gallery-track {
    display: flex;
    gap: 28px;
    padding: 70px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 280px;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    scroll-snap-align: center;
    transition: 
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
        box-shadow 0.6s ease, 
        border-color 0.6s ease;
    transform-style: preserve-3d;
    background: var(--bg-card);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.02);
}

.gallery-label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.gallery-card:hover .gallery-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Gallery Tabs styling */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.gallery-tab-btn {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}

.gallery-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #E0533C 100%);
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Tab Demos styling */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 260px);
    gap: 45px;
    justify-content: center;
    margin: 60px auto 0 auto;
    width: 100%;
    max-width: 1000px;
}

.demo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
}

.demo-phone {
    width: 220px;
    height: 440px;
    padding: 8px;
    border-radius: 32px;
    margin-bottom: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 107, 53, 0.05);
}

.demo-phone .phone-screen {
    border-radius: 24px;
}

.demo-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.demo-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 280px;
}

/* =======================================================
   TESTIMONIALS
======================================================= */
.testimonial-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.15);
}

.stars {
    color: #FFBD2E;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.reviewer-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -15px;
}

/* =======================================================
   PRICING SECTION
======================================================= */
.pricing-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.015) 50%, transparent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    padding: 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.2);
}

.pricing-card.featured-pricing {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.02);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.08);
}

.featured-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--accent-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.price-display .currency {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-display .amount {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-framing {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured-pricing .premium-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.pricing-card.featured-pricing .premium-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.45);
}

/* =======================================================
   FOUNDER STORY SECTION
======================================================= */
.founder-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.founder-card {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
    padding: 50px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.founder-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.founder-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.founder-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.founder-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.founder-content .manifesto {
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 107, 53, 0.05);
    border-left: 4px solid var(--accent-primary);
    color: var(--accent-light);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
}

.founder-metadata {
    display: flex;
    gap: 40px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Founder Photo Card Right */
.founder-image-wrapper {
    display: flex;
    justify-content: center;
}

.founder-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.founder-photo-container {
    width: 220px;
    height: 220px;
    position: relative;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.05);
}

.founder-socials {
    display: flex;
    gap: 16px;
}

.social-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.08);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* =======================================================
   FOOTER
======================================================= */
.footer {
    padding: 80px 0 40px;
    background: #09090C;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 24px;
}

.gcp-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.8fr;
    gap: 30px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent-primary);
}

.footer-statement p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    width: min(90%, var(--container-width));
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =======================================================
   RESPONSIVE BREAKPOINTS
======================================================= */

/* TABLETS (Max 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }

    .trust-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .trust-text {
        font-size: 0.8rem;
    }

    .trust-marquee-wrapper {
        width: 100%;
    }

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .showcase-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sticky-phone-wrapper {
        display: none !important; /* Hide sticky phone completely on mobile */
    }

    .mobile-showcase-image {
        display: block;
        width: 100%;
        max-width: 290px;
        margin: 20px auto;
        padding: 8px;
        border-radius: 28px;
        background: #08080B;
        border: 2px solid rgba(255, 255, 255, 0.08);
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 107, 53, 0.04);
    }

    .mobile-showcase-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
    }

    .showcase-content {
        padding-top: 10px;
        padding-bottom: 60px;
        gap: 60px;
    }

    .showcase-step {
        opacity: 1; /* Always active/visible on mobile */
        padding-left: 20px;
        border-left: 2px solid var(--accent-primary);
    }

    .ocr-story-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ocr-pipeline {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .ocr-line-v {
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.05);
    }

    .arch-nodes-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .arch-line-container {
        display: none; /* hide arrow lines on small screen grids */
    }

    .arch-node-card {
        flex: 0 0 45%;
    }

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

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .founder-card {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 30px;
    }

    .founder-content {
        align-items: center;
    }

    .founder-metadata {
        justify-content: center;
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-statement {
        grid-column: 1 / 3;
    }
}

/* PHONES (Max 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple burger or hide links for clean app landing page look */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .demos-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 50px;
        margin-top: 40px;
    }

    .card-ocr, .card-export, .card-ncert {
        grid-column: auto;
        grid-row: auto;
    }

    .ncert-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .arch-node-card {
        flex: 0 0 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-statement {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* MIN PHONES (Max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .btn-primary-glow, .btn-secondary-glass {
        width: 100%;
    }

    .phone-frame {
        width: 270px;
        height: 550px;
    }

    .large-phone {
        width: 270px;
        height: 550px;
    }

    .ocr-card {
        height: 380px;
    }

    .ocr-console-body {
        min-height: 300px;
        font-size: 0.8rem;
    }
}

/* =======================================================
   COMMITMENT & SOCIAL PRINCIPLES SECTION
======================================================= */
.commitment-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.005);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.commitment-card {
    padding: 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commitment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.15);
}

.commitment-icon {
    font-size: 2.2rem;
}

.commitment-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.commitment-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =======================================================
   LEGAL PAGES (Terms & Privacy)
======================================================= */
.legal-body {
    width: min(90%, 800px);
    margin: 80px auto;
    padding: 60px 48px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 53, 0.02);
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 40px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-home:hover {
    transform: translateX(-4px);
    opacity: 0.9;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
}

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

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.legal-section p,
.legal-section ul li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

.legal-section ul li {
    margin-bottom: 12px;
}

.legal-section strong {
    color: var(--text-primary);
}

.legal-section .footer-email {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Legal page footer override */
.legal-body ~ .footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-body ~ .footer .footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-body ~ .footer .footer-link:hover {
    color: var(--accent-primary);
}

.legal-body ~ .footer .footer-sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
}
