/* ==========================================================================
   E-Natija — Premium Minimal Landing Page
   Inspired by Linear, Raycast, Vercel — Warm Teacher-Focused Palette
   ========================================================================== */

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-subtle: rgba(79, 70, 229, 0.07);
    --primary-glow: rgba(79, 70, 229, 0.18);

    --accent: #7c3aed;
    --accent-subtle: rgba(124, 58, 237, 0.08);

    --success: #059669;
    --success-subtle: rgba(5, 150, 105, 0.08);
    --warning: #d97706;
    --warning-subtle: rgba(217, 119, 6, 0.08);
    --danger: #dc2626;
    --danger-subtle: rgba(220, 38, 38, 0.08);

    --bg: #fafafa;
    --bg-subtle: #f4f4f5;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: #e4e4e7;
    --border-hover: #d4d4d8;

    --text: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 0 1px var(--primary-subtle), 0 8px 40px var(--primary-glow);

    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --navbar-bg: rgba(250, 250, 250, 0.82);
    --navbar-blur: 20px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-subtle: rgba(129, 140, 248, 0.1);
    --primary-glow: rgba(129, 140, 248, 0.12);

    --accent: #a78bfa;
    --accent-subtle: rgba(167, 139, 250, 0.1);

    --success: #34d399;
    --success-subtle: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-subtle: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-subtle: rgba(248, 113, 113, 0.1);

    --bg: #09090b;
    --bg-subtle: #18181b;
    --surface: #1c1c22;
    --surface-elevated: #27272a;
    --border: #27272a;
    --border-hover: #3f3f46;

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 1px var(--primary-subtle), 0 8px 40px var(--primary-glow);

    --navbar-bg: rgba(9, 9, 11, 0.82);

    /* Bootstrap 5.3 Theme Tokens Overrides for Dark Mode */
    --bs-body-color: #fafafa;
    --bs-body-bg: #09090b;
    --bs-secondary-color: #a1a1aa;
    --bs-tertiary-color: #71717a;
    --bs-border-color: #27272a;
    --bs-table-color: #fafafa;
    --bs-table-bg: transparent;
    --bs-table-hover-color: #fafafa;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    --bs-accordion-btn-color: #fafafa;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-color: #818cf8;
    --bs-accordion-active-bg: rgba(129, 140, 248, 0.1);
}

/* ── Dark Mode Text Contrast & Component Fixes ───────────────────────────── */
[data-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark {
    color: var(--text) !important;
}

[data-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .accordion-button {
    color: var(--text) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed),
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background-color: var(--primary-subtle) !important;
}

[data-theme="dark"] .accordion-button::after,
[data-bs-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(0.85);
}

[data-theme="dark"] .table,
[data-bs-theme="dark"] .table {
    --bs-table-color: var(--text) !important;
    --bs-table-striped-color: var(--text) !important;
    --bs-table-hover-color: var(--text) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table thead th {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .comp-table th,
[data-theme="dark"] .comp-table td,
[data-bs-theme="dark"] .comp-table th,
[data-bs-theme="dark"] .comp-table td {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-white {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light {
    background-color: var(--bg-subtle) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .border,
[data-bs-theme="dark"] .border {
    border-color: var(--border) !important;
}

[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
    border-color: var(--border) !important;
}

[data-theme="dark"] blockquote,
[data-bs-theme="dark"] blockquote {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.65;
    letter-spacing: -0.011em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

p {
    color: var(--text-secondary);
    margin: 0;
}

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

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

/* ── Utility: bg-subtle ──────────────────────────────────────────────────── */
.bg-subtle {
    background-color: var(--bg-subtle) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.text-theme {
    color: var(--text) !important;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-6px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.animate-in {
    animation: fadeInUp 0.7s var(--ease-out) both;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(var(--navbar-blur));
    -webkit-backdrop-filter: blur(var(--navbar-blur));
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ── Desktop Nav Links List ──────────────────────────────────────────────── */
.navbar-desktop-nav {
    display: flex;
    align-items: center;
}

/* ── Mobile Hamburger Button ─────────────────────────────────────────────── */
.btn-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-hamburger:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

/* ── Responsive Navbar Switch (< 800px Breakpoint) ───────────────────────── */
@media (max-width: 1200px) {

    .navbar-minimal .navbar-nav,
    .navbar-desktop-nav {
        display: none !important;
    }

    .navbar-minimal .btn-hamburger,
    .btn-hamburger {
        display: flex !important;
    }
}

/* ── Nav Drawer Overlay ──────────────────────────────────────────────────── */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-drawer-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ── Nav Drawer Panel ────────────────────────────────────────────────────── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 1200;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    overflow: hidden;
    overscroll-behavior: contain;
}

.nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

/* ── Drawer Header ───────────────────────────────────────────────────────── */
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    min-height: 62px;
}

.nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.nav-drawer-close:hover {
    background: var(--border);
}

/* ── Drawer Nav Links ────────────────────────────────────────────────────── */
.nav-drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 2px;
    overflow-y: auto;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.nav-drawer-link i {
    font-size: 1rem;
    opacity: 0.65;
    width: 20px;
    text-align: center;
}

.nav-drawer-link:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.nav-drawer-link:hover i {
    opacity: 1;
}

.nav-drawer-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 600;
}

.nav-drawer-link.active i {
    opacity: 1;
    color: var(--primary);
}

/* ── Drawer CTA Actions ──────────────────────────────────────────────────── */
.nav-drawer-actions {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-drawer-actions .btn-m {
    width: 100%;
    justify-content: center;
}


.brand-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-link-minimal {
    color: var(--text-tertiary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link-minimal:hover {
    color: var(--text) !important;
}

.nav-link-minimal.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: var(--primary-subtle);
}

/* Theme Toggle */
.btn-theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-subtle);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
    font-size: 0.85rem;
}

[data-theme="dark"] .sun-icon {
    display: block;
    font-size: 0.85rem;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* ── Button System ────────────────────────────────────────────────────────── */
.btn-m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}

.btn-m-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-m-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-m-secondary {
    background: var(--surface);
    color: var(--text) !important;
    border: 1px solid var(--border);
}

.btn-m-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-m-ghost {
    background: transparent;
    color: var(--text-secondary) !important;
    padding: 0.5rem 0.85rem;
}

.btn-m-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text) !important;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero-minimal {
    padding: 9rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Soft radial gradient background */
.hero-minimal::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-minimal>* {
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-xs);
    animation: fadeIn 0.8s var(--ease-out) both;
    max-width: 100%;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.hero-pill .live-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.hero-pill .live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--success);
    animation: pulse-ring 2s ease-out infinite;
}

.hero-title-m {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-title-m .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Typed.js Hero Dynamic Capability Typing ─────────────────────────────── */
#typed-hero {
    display: inline-block;
    min-height: 1.15em;
    vertical-align: bottom;
}

.typed-cursor {
    display: inline-block;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-weight: 300;
    margin-left: 2px;
    opacity: 1;
    animation: typedBlink 0.8s infinite;
    vertical-align: baseline;
}

@keyframes typedBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-sub-m {
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

/* Stats Row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.35s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 0.1rem;
}

/* Dashboard Window */
.dashboard-window-m {
    max-width: 1060px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.window-header-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.window-dots-m {
    display: flex;
    gap: 5px;
}

.window-dot-m {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot-m:nth-child(1) {
    background: #f87171;
}

.window-dot-m:nth-child(2) {
    background: #fbbf24;
}

.window-dot-m:nth-child(3) {
    background: #34d399;
}

/* ── Section Defaults ─────────────────────────────────────────────────────── */
.section-m {
    padding: 4.5rem 1.5rem;
}

.section-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title-m {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Feature Grid ─────────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 3.5rem;
}

.feature-cell {
    background: var(--surface);
    padding: 2.25rem 2rem;
    transition: background 0.25s ease;
    position: relative;
}

.feature-cell:hover {
    background: var(--bg-subtle);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.15rem;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.feature-cell:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.feature-icon.green {
    background: var(--success-subtle);
    color: var(--success);
}

.feature-cell:hover .feature-icon.green {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.feature-icon.amber {
    background: var(--warning-subtle);
    color: var(--warning);
}

.feature-cell:hover .feature-icon.amber {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.feature-icon.violet {
    background: var(--accent-subtle);
    color: var(--accent);
}

.feature-cell:hover .feature-icon.violet {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.feature-icon.rose {
    background: var(--danger-subtle);
    color: var(--danger);
}

.feature-cell:hover .feature-icon.rose {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Bento Showcase ───────────────────────────────────────────────────────── */
.bento-grid-m {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.bento-card-m {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

.bento-card-m:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.span-12-m {
    grid-column: span 12;
}

.span-8-m {
    grid-column: span 8;
}

.span-7-m {
    grid-column: span 7;
}

.span-6-m {
    grid-column: span 6;
}

.span-5-m {
    grid-column: span 5;
}

.span-4-m {
    grid-column: span 4;
}

@media (max-width: 991px) {

    .span-8-m,
    .span-7-m,
    .span-6-m,
    .span-5-m,
    .span-4-m {
        grid-column: span 12;
    }
}

.icon-box-m {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    background: var(--bg-subtle);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Interactive Attendance Demo */
.att-row-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.5rem;
}

.att-btn-m {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--surface);
    color: var(--text-tertiary);
    transition: all 0.15s ease;
}

.att-btn-m:hover {
    border-color: var(--border-hover);
}

.att-btn-m.active-p {
    background: var(--success-subtle);
    color: var(--success);
    border-color: var(--success);
}

.att-btn-m.active-a {
    background: var(--danger-subtle);
    color: var(--danger);
    border-color: var(--danger);
}

.att-btn-m.active-l {
    background: var(--warning-subtle);
    color: var(--warning);
    border-color: var(--warning);
}

/* Mini Tables */
.table-m {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.table-m th {
    background: var(--bg-subtle);
    padding: 0.55rem 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.table-m td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ── How It Works ─────────────────────────────────────────────────────────── */
.step-card-m {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    height: 100%;
    transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.step-card-m:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.step-num-m {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    opacity: 0.35;
    letter-spacing: -0.04em;
}

/* ── Testimonial / Social Proof ───────────────────────────────────────────── */
.proof-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.proof-item {
    text-align: center;
}

.proof-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--text);
    letter-spacing: -0.04em;
}

.proof-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-card-m {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 0.55rem;
    transition: border-color 0.2s ease;
}

.faq-card-m:hover {
    border-color: var(--border-hover);
}

.faq-btn-m {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    color: var(--text) !important;
}

.faq-btn-m:not(.collapsed) {
    color: var(--primary) !important;
    background: var(--bg-subtle);
}

.faq-btn-m::after {
    filter: none;
    opacity: 0.4;
}

/* ── Contact / CTA ────────────────────────────────────────────────────────── */
.cta-box-m {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box-m::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
    pointer-events: none;
}

.cta-box-m>* {
    position: relative;
    z-index: 1;
}

.input-m {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    width: 100%;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-m:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.input-m::placeholder {
    color: var(--text-tertiary);
}

.select-m {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    width: 100%;
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.select-m:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ── Brand Badge ──────────────────────────────────────────────────────────── */
.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

/* ── Hero Window Tabs ─────────────────────────────────────────────────────── */
.window-tabs-m {
    display: flex;
    gap: 4px;
    background: var(--surface);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.window-tab-btn {
    background: transparent;
    border: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.window-tab-btn:hover {
    color: var(--text);
}

.window-tab-btn.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.window-tab-pane {
    display: none;
    position: relative;
    overflow: hidden;
}

.window-tab-pane.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

/* ── 4 Modular Pillars ────────────────────────────────────────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s var(--ease-out);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.8;
}

.pillar-card.pillar-green::before {
    background: linear-gradient(90deg, var(--success), transparent);
}

.pillar-card.pillar-amber::before {
    background: linear-gradient(90deg, var(--warning), transparent);
}

.pillar-card.pillar-violet::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.pillar-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pillar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.pillar-tag-blue {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.pillar-tag-green {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.pillar-tag-amber {
    background: var(--warning-subtle);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.pillar-tag-violet {
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.pillar-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

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

.pillar-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pillar-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.5;
}

.pillar-feature-item i {
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pillar-card.pillar-blue .pillar-feature-item i {
    color: var(--primary);
}

.pillar-card.pillar-green .pillar-feature-item i {
    color: var(--success);
}

.pillar-card.pillar-amber .pillar-feature-item i {
    color: var(--warning);
}

.pillar-card.pillar-violet .pillar-feature-item i {
    color: var(--accent);
}

.pillar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pillar-pill {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ── Interactive ID Card Mockup inside Bento ──────────────────────────────── */
.id-card-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.id-card-photo {
    width: 68px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.id-card-info {
    flex: 1;
    min-width: 0;
}

.id-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 2px;
}

.id-card-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.id-card-qr {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Role-Based Value Matrix ──────────────────────────────────────────────── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.role-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.role-header {
    margin-bottom: 1.25rem;
}

.role-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.role-icon.blue {
    background: var(--primary-subtle);
    color: var(--primary);
}

.role-icon.green {
    background: var(--success-subtle);
    color: var(--success);
}

.role-icon.amber {
    background: var(--warning-subtle);
    color: var(--warning);
}

.role-icon.violet {
    background: var(--accent-subtle);
    color: var(--accent);
}

.role-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.role-subtitle {
    font-size: 0.76rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.role-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.role-bullet {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.role-bullet i {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Comparison Table ─────────────────────────────────────────────────────── */
.comparison-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.comp-table th {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.comp-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.comp-table tr:last-child td {
    border-bottom: none;
}

.comp-highlight {
    background: var(--primary-subtle) !important;
    color: var(--text) !important;
    font-weight: 600;
}

.comp-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    text-transform: uppercase;
}

/* ── Interactive ROI / Time-Savings Calculator ─────────────────────────────── */
.roi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border);
    outline: none;
    transition: background 0.2s ease;
    margin: 1.5rem 0 2.5rem;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--primary-subtle);
    transition: transform 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.roi-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.roi-stat-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.roi-val {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.roi-lbl {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Security & Compliance ────────────────────────────────────────────────── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.security-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.security-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--success-subtle);
    color: var(--success);
}

/* ── Live Absenteeism Alert Toast Simulation ──────────────────────────────── */
.live-alert-toast {
    display: none;
    align-items: center;
    gap: 0.65rem;
    background: var(--surface);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
    color: var(--text);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.3s ease;
}

.live-alert-toast.show {
    display: flex;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer-m {
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2.5rem;
    font-size: 0.84rem;
    color: var(--text-tertiary);
}

.footer-link-m {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link-m:hover {
    color: var(--text);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .comp-table th,
    .comp-table td {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-minimal {
        padding: 7rem 1rem 3.5rem;
    }

    .hero-title-m {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }

    .section-m {
        padding: 4rem 1rem;
    }

    .cta-box-m {
        padding: 2.5rem 1.25rem;
    }

    .proof-strip {
        gap: 1.25rem;
    }

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

    .roi-metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .roi-card {
        padding: 2rem 1.25rem;
    }

    .window-tabs-m {
        display: none;
    }
}

/* ==========================================================================
   Android Mobile App Section — Role-Based Authentication & Workflows
   ========================================================================== */
.app-section-wrapper {
    position: relative;
    overflow: hidden;
}

/* ── Role Tab Selector ───────────────────────────────────────────────────── */
.role-tabs-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.role-tabs-container::-webkit-scrollbar {
    display: none;
}

.role-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
    white-space: nowrap;
}

.role-tab-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.role-tab-btn:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.role-tab-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.role-tab-btn[data-role="admin"].active {
    background: var(--primary-subtle);
    color: var(--primary);
    border-color: var(--primary-glow);
}

.role-tab-btn[data-role="teacher"].active {
    background: var(--success-subtle);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.25);
}

.role-tab-btn[data-role="parent"].active {
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: rgba(124, 58, 237, 0.25);
}

/* ── Role Showcase Layout ────────────────────────────────────────────────── */
.role-showcase-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.role-badge-pill.badge-admin {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.role-badge-pill.badge-teacher {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.role-badge-pill.badge-parent {
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.role-panel-content {
    display: none;
    animation: fadeIn 0.35s var(--ease-out) both;
}

.role-panel-content.active {
    display: block;
}

.role-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.role-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}

.role-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.role-feature-icon.admin {
    background: var(--primary-subtle);
    color: var(--primary);
}

.role-feature-icon.teacher {
    background: var(--success-subtle);
    color: var(--success);
}

.role-feature-icon.parent {
    background: var(--accent-subtle);
    color: var(--accent);
}

/* ── Realistic Smartphone Mockup ─────────────────────────────────────────── */
.phone-mockup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.phone-mockup-frame {
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    border: 10px solid #1e293b;
    border-radius: 44px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px -10px var(--primary-glow);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

[data-theme="dark"] .phone-mockup-frame {
    border-color: #27272a;
    background: #09090b;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 50px -10px var(--primary-glow);
}

/* Phone Notch & Camera */
.phone-notch-bar {
    height: 28px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    position: relative;
    z-index: 5;
}

[data-theme="dark"] .phone-notch-bar {
    background: #09090b;
}

.phone-camera-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    border: 1.5px solid #334155;
}

/* Phone Screen Container */
.phone-inner-screen {
    background: var(--bg);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

/* In-App Header */
.phone-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.phone-app-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.phone-app-brand img {
    height: 18px;
    width: auto;
}

.phone-screen-pane {
    display: none;
    padding: 1rem;
    animation: fadeIn 0.3s var(--ease-out) both;
    overflow-y: auto;
    max-height: 480px;
}

.phone-screen-pane.active {
    display: block;
}

/* In-App Widget Styling */
.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--shadow-xs);
}

.app-stat-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
}

.app-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.app-btn-action:hover {
    transform: translateY(-1px);
}

/* ── Role-Based Auth Dual Cards ─────────────────────────────────────────── */
.auth-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.auth-card-m {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--ease-out);
}

.auth-card-m:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.auth-card-m::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.auth-card-m.staff-auth::before {
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.auth-card-m.parent-auth::before {
    background: linear-gradient(90deg, var(--accent), var(--warning));
}

.auth-badge-small {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

/* ── App Download Banner Strip ───────────────────────────────────────────── */
.app-cta-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

[data-theme="dark"] .app-cta-banner {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(167, 139, 250, 0.06));
    border-color: #27272a;
}

.app-badge-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .auth-dual-grid {
        grid-template-columns: 1fr;
    }

    .role-showcase-card {
        padding: 1.75rem 1.25rem;
    }

    .app-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Role-Based Authentication (RBA) Overview — Role Cards + Permission Matrix
   ========================================================================== */

/* ── 3-Column Role Cards Grid ─────────────────────────────────────────────── */
.rba-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.rba-role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.28s var(--ease-out);
}

.rba-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.rba-role-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.rba-role-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Admin card accent */
.rba-admin::before {
    background: linear-gradient(90deg, var(--primary), #818cf8);
}
.rba-admin:hover {
    border-color: rgba(79, 70, 229, 0.35);
}
.rba-admin::after {
    background: radial-gradient(ellipse at top left, rgba(79, 70, 229, 0.05), transparent 60%);
}
.rba-admin:hover::after { opacity: 1; }

/* Teacher card accent */
.rba-teacher::before {
    background: linear-gradient(90deg, var(--success), #34d399);
}
.rba-teacher:hover {
    border-color: rgba(5, 150, 105, 0.35);
}
.rba-teacher::after {
    background: radial-gradient(ellipse at top left, rgba(5, 150, 105, 0.05), transparent 60%);
}
.rba-teacher:hover::after { opacity: 1; }

/* Parent card accent */
.rba-parent::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.rba-parent:hover {
    border-color: rgba(139, 92, 246, 0.35);
}
.rba-parent::after {
    background: radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.05), transparent 60%);
}
.rba-parent:hover::after { opacity: 1; }

/* ── Role Card Header ─────────────────────────────────────────────────────── */
.rba-role-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rba-role-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rba-role-card:hover .rba-role-icon-wrap {
    transform: scale(1.1);
}

.rba-icon-admin {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.rba-icon-teacher {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.rba-icon-parent {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.rba-role-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rba-role-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* ── Access Level Badge ──────────────────────────────────────────────────── */
.rba-access-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.rba-access-full {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.rba-access-scoped {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.rba-access-view {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ── Role Title & Desc ───────────────────────────────────────────────────── */
.rba-role-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.rba-role-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.58;
    margin-bottom: 1rem;
}

/* ── Auth Method Row ─────────────────────────────────────────────────────── */
.rba-auth-method {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.78rem;
}

.rba-auth-method > i {
    font-size: 1.15rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.rba-auth-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 1px;
}

.rba-auth-value {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.35;
}

/* ── Role Feature List ───────────────────────────────────────────────────── */
.rba-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.rba-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
}

.rba-feature-list li > i {
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Permission Chips ────────────────────────────────────────────────────── */
.rba-permission-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.rba-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.rba-chip i {
    font-size: 0.65rem;
}

.rba-chip-admin {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
}

.rba-chip-teacher {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.rba-chip-parent {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.rba-chip-restrict {
    background: var(--danger-subtle);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
    opacity: 0.7;
}

/* ── Permission Matrix Table ─────────────────────────────────────────────── */
.rba-matrix-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.rba-matrix-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.rba-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.rba-matrix-feature-col {
    width: 28%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
    background: var(--bg-subtle);
}

.rba-matrix-role-col {
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.01em;
}

.rba-col-admin {
    background: var(--primary-subtle);
    color: var(--primary);
    border-left: 1px solid var(--primary-glow);
    border-right: 1px solid var(--primary-glow);
}

.rba-col-teacher {
    background: var(--success-subtle);
    color: var(--success);
    border-left: 1px solid rgba(5, 150, 105, 0.15);
    border-right: 1px solid rgba(5, 150, 105, 0.15);
}

.rba-col-parent {
    background: rgba(139, 92, 246, 0.07);
    color: #8b5cf6;
    border-left: 1px solid rgba(139, 92, 246, 0.15);
    border-right: 1px solid rgba(139, 92, 246, 0.15);
}

.rba-matrix-feature {
    padding: 0.7rem 1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.rba-matrix-cell {
    text-align: center;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.rba-matrix-table tbody tr:last-child .rba-matrix-feature,
.rba-matrix-table tbody tr:last-child .rba-matrix-cell {
    border-bottom: none;
}

.rba-matrix-table tbody tr:hover .rba-matrix-feature,
.rba-matrix-table tbody tr:hover .rba-matrix-cell {
    background-color: var(--bg-subtle);
    transition: background 0.15s ease;
}

.rba-yes,
.rba-partial,
.rba-no {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.rba-yes {
    background: var(--success-subtle);
    color: var(--success);
}

.rba-partial {
    background: var(--warning-subtle);
    color: var(--warning);
}

.rba-no {
    background: var(--danger-subtle);
    color: var(--danger);
    opacity: 0.7;
}

.rba-matrix-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* ── RBA Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .rba-roles-grid {
        grid-template-columns: 1fr;
    }

    .rba-matrix-feature-col {
        width: 35%;
    }
}

@media (max-width: 768px) {
    .rba-matrix-feature-col,
    .rba-matrix-role-col {
        padding: 0.6rem 0.5rem;
        font-size: 0.74rem;
    }

    .rba-matrix-feature {
        padding: 0.55rem 0.5rem;
        font-size: 0.76rem;
    }

    .rba-yes,
    .rba-partial,
    .rba-no {
        font-size: 0.68rem;
        padding: 0.15rem 0.4rem;
    }

    .rba-matrix-legend {
        gap: 0.85rem;
        font-size: 0.72rem;
    }

    /* ── Mobile Viewport Optimizations ── */
    .hero-title-m {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
        line-height: 1.15;
    }

    .hero-sub-m {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .section-title-m {
        font-size: clamp(1.5rem, 5.5vw, 1.85rem);
        line-height: 1.25;
    }

    .section-m {
        padding: 3.25rem 1rem;
    }

    .hero-minimal {
        padding: 6.5rem 0.85rem 3rem;
    }

    .hero-pill {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        border-radius: var(--radius-lg);
        margin-top: 2rem;
    }

    .feature-cell {
        padding: 1.5rem 1.25rem;
    }

    .bento-card-m {
        padding: 1.35rem 1.15rem;
        border-radius: var(--radius-lg);
    }

    .phone-mockup-frame {
        width: 100%;
        max-width: 295px;
        border-width: 7px;
        border-radius: 36px;
        margin: 0 auto;
    }

    .phone-notch-bar {
        height: 24px;
        padding: 0 1rem;
        font-size: 0.62rem;
    }

    .phone-inner-screen {
        min-height: 440px;
    }

    .phone-screen-pane {
        padding: 0.75rem;
        max-height: 420px;
    }

    .role-tabs-container {
        display: flex;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.35rem;
        border-radius: var(--radius-lg);
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
    }

    .role-tab-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .role-showcase-card {
        padding: 1.5rem 1.15rem;
        border-radius: var(--radius-lg);
    }

    .role-feature-list {
        margin: 1rem 0 1.25rem 0;
        gap: 0.65rem;
    }

    .role-feature-item {
        font-size: 0.83rem;
        gap: 0.6rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .comp-table {
        min-width: 620px;
    }

    .comp-table th,
    .comp-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.78rem;
    }

    .rba-matrix-wrapper {
        padding: 1rem 0.65rem;
        border-radius: var(--radius-lg);
    }

    .rba-matrix-table {
        min-width: 500px;
    }

    .rba-matrix-feature-col {
        width: 32%;
    }

    .auth-dual-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .auth-card-m {
        padding: 1.35rem 1.15rem;
        border-radius: var(--radius-lg);
    }

    .app-cta-banner {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.25rem;
    }

    .app-cta-banner .d-flex {
        justify-content: center;
        width: 100%;
    }

    .app-cta-banner .btn-m {
        width: 100%;
        justify-content: center;
    }

    .app-badge-strip {
        gap: 0.65rem;
        font-size: 0.72rem;
    }

    .id-card-preview {
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .id-card-photo {
        width: 52px;
        height: 62px;
        font-size: 1.4rem;
    }

    .id-card-name {
        font-size: 0.85rem;
    }

    .id-card-meta {
        font-size: 0.68rem;
    }

    .id-card-qr {
        width: 38px;
        height: 38px;
    }

    .id-card-qr i {
        font-size: 1.4rem !important;
    }

    .footer-m {
        padding: 2.5rem 1rem 2rem;
        text-align: center;
    }

    .footer-m .d-flex.align-items-center {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-m .d-flex.gap-3 {
        gap: 0.75rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-minimal {
        padding: 0 0.85rem !important;
        height: 56px;
    }

    .brand-logo {
        font-size: 1.05rem;
    }

    .brand-logo img {
        height: 22px !important;
    }

    .hero-minimal {
        padding: 5.5rem 0.75rem 2.5rem;
    }

    .hero-title-m {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .hero-sub-m {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .hero-stats {
        gap: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .section-m {
        padding: 2.75rem 0.75rem;
    }

    .section-title-m {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 0.84rem;
    }

    .bento-card-m {
        padding: 1.15rem 0.85rem !important;
    }

    .att-row-m {
        padding: 0.45rem 0.6rem;
    }

    .att-row-m .small {
        font-size: 0.74rem;
    }

    .att-btn-m {
        padding: 0.25rem 0.5rem;
        font-size: 0.68rem;
    }

    .rba-role-card {
        padding: 1.35rem 1rem;
        border-radius: var(--radius-lg);
    }

    .rba-permission-chips {
        gap: 0.3rem;
    }

    .rba-chip {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
    }

    .faq-btn-m {
        font-size: 0.88rem;
        padding: 0.85rem 1rem;
    }

    #contact-us .p-4,
    #contact-us .p-md-5 {
        padding: 1.25rem 0.85rem !important;
    }

    .input-m,
    .select-m {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }
}

/* ── Feature Section Tab Buttons ─────────────────────────────────────────── */
.feature-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.feature-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

.feature-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px -2px var(--primary-glow);
}

[data-theme="dark"] .feature-tab-btn {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}