:root,
[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-400: #60a5fa;
    --accent: #0ea5e9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --glow-color: rgba(37, 99, 235, 0.22);
    --glow: 0 0 25px var(--glow-color);
    --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.06);
    --blob-1: rgba(37, 99, 235, 0.14);
    --blob-2: rgba(14, 165, 233, 0.1);
    --sticky-bg: rgba(248, 250, 252, 0.92);
    --input-bg: #ffffff;
    --hero-mockup-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.14);
    --chat-ai-bg: rgba(37, 99, 235, 0.08);
    --chat-ai-border: rgba(37, 99, 235, 0.22);
    --highlight-bg: rgba(37, 99, 235, 0.06);
    --badge-bg: rgba(255, 255, 255, 0.88);
    --badge-border: rgba(37, 99, 235, 0.2);
    --scrollbar: #cbd5e1;
    --scrollbar-hover: #94a3b8;
    --gradient-text-start: #0f172a;
    --gradient-text-end: #2563eb;
    --hero-gradient: linear-gradient(to left, #2563eb, #3b82f6, #0ea5e9);
    --btn-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --btn-shadow: 0 4px 15px rgba(37, 99, 235, 0.28);
    --btn-shadow-hover: 0 8px 25px rgba(37, 99, 235, 0.38);
    --panel-bg: rgba(255, 255, 255, 0.95);
    --teacher-accent: #e11d48;
    --teacher-accent-dark: #be123c;
    --teacher-accent-soft: rgba(225, 29, 72, 0.1);
    --teacher-gradient: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    --teacher-shadow: 0 8px 32px rgba(225, 29, 72, 0.28);
}

[data-theme="dark"] {
    --bg: #020617;
    --bg-card: #0f172a;
    --bg-surface: #1e293b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-400: #60a5fa;
    --accent: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --glow-color: rgba(37, 99, 235, 0.35);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --blob-1: rgba(37, 99, 235, 0.22);
    --blob-2: rgba(56, 189, 248, 0.14);
    --sticky-bg: rgba(2, 6, 23, 0.92);
    --input-bg: #020617;
    --hero-mockup-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --chat-ai-bg: rgba(37, 99, 235, 0.15);
    --chat-ai-border: rgba(37, 99, 235, 0.35);
    --highlight-bg: rgba(37, 99, 235, 0.1);
    --badge-bg: rgba(15, 23, 42, 0.78);
    --badge-border: rgba(37, 99, 235, 0.28);
    --scrollbar: #334155;
    --scrollbar-hover: #475569;
    --gradient-text-start: #e2e8f0;
    --gradient-text-end: #60a5fa;
    --hero-gradient: linear-gradient(to left, #60a5fa, #3b82f6, #38bdf8);
    --btn-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --btn-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    --btn-shadow-hover: 0 8px 25px rgba(37, 99, 235, 0.45);
    --panel-bg: rgba(15, 23, 42, 0.95);
    --teacher-accent: #fb7185;
    --teacher-accent-dark: #f43f5e;
    --teacher-accent-soft: rgba(251, 113, 133, 0.14);
    --teacher-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    --teacher-shadow: 0 8px 32px rgba(244, 63, 94, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", sans-serif;
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    padding-bottom: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--primary-light);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 999px;
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar) transparent;
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--sticky-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.landing-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--highlight-bg);
}

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

[data-theme="dark"] .theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: inline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gradient-text-start) 0%, var(--gradient-text-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.55;
    animation: float 10s ease-in-out infinite;
    transition: background 0.3s ease;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--blob-2);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.background-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 120px;
}

.hero-content {
    flex: 1.2;
    padding-left: 40px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-mockup-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-5deg) rotateX(5deg);
    }
}

.hero-img-placeholder {
    width: 300px;
    height: 640px;
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-light);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--hero-mockup-shadow), inset 0 0 0 4px var(--bg);
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-img-placeholder video {
    width: 100%;
    /* height: 100%; */
    border-radius: 40px;
}

.hero-badge {
    position: absolute;
    background: var(--badge-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--badge-border);
    padding: 12px 20px;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    z-index: 3;
    color: var(--text-secondary);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.badge-1 {
    top: 15%;
    right: -40px;
    color: var(--primary-light);
}

.badge-2 {
    bottom: 25%;
    left: -60px;
    color: var(--accent);
}

.highlight-box {
    background: var(--highlight-bg);
    border-right: 4px solid var(--primary);
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 1.9;
    color: var(--text-secondary);
    backdrop-filter: blur(5px);
}

/* —— Teacher promo (hero + floating bar + spotlight section) —— */

.teacher-promo-float {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--teacher-gradient);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--teacher-shadow);
    transform: translateX(-50%);
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.teacher-promo-float:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 36px rgba(225, 29, 72, 0.38);
    color: #fff;
}

.teacher-promo-float--hidden,
.teacher-promo-float--dismissed {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-12px);
}

.teacher-promo-float--dismissed {
    display: none;
}

.teacher-promo-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: teacher-pulse 1.6s ease-in-out infinite;
}

@keyframes teacher-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.35); }
}

.teacher-promo-arrow {
    font-size: 0.8rem;
    opacity: 0.9;
    animation: teacher-bounce 1.8s ease-in-out infinite;
}

@keyframes teacher-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.teacher-hero-callout {
    position: relative;
    margin: 28px 0 24px;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(225, 29, 72, 0.35);
    background: linear-gradient(135deg, var(--teacher-accent-soft) 0%, rgba(249, 115, 22, 0.08) 100%);
    overflow: hidden;
}

.teacher-hero-callout-glow {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.teacher-hero-callout-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--teacher-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.teacher-hero-callout-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    text-align: right;
}

.teacher-hero-callout-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--teacher-gradient);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--teacher-shadow);
}

.teacher-hero-callout-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--teacher-accent-dark);
    margin-bottom: 6px;
}

[data-theme="dark"] .teacher-hero-callout-body h3 {
    color: var(--teacher-accent);
}

.teacher-hero-callout-body p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-teacher {
    background: var(--teacher-gradient);
    box-shadow: var(--teacher-shadow);
}

.teacher-hero-callout .btn-teacher {
    width: 100%;
}

.btn-teacher:hover {
    box-shadow: 0 12px 36px rgba(225, 29, 72, 0.42);
    filter: brightness(1.06);
}

.btn-teacher-outline {
    padding: 14px 35px;
    border-radius: 12px;
    border: 2px solid var(--teacher-accent);
    background: transparent;
    color: var(--teacher-accent-dark);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

[data-theme="dark"] .btn-teacher-outline {
    color: var(--teacher-accent);
}

.btn-teacher-outline:hover {
    background: var(--teacher-accent-soft);
    transform: translateY(-2px);
    color: var(--teacher-accent-dark);
}

.teachers-spotlight {
    padding-bottom: 120px;
    scroll-margin-top: 100px;
}

.teachers-spotlight-inner {
    position: relative;
    padding: 48px 40px 40px;
    border-radius: 1.75rem;
    background: linear-gradient(160deg, var(--teacher-accent-soft) 0%, var(--bg-card) 38%, var(--bg-card) 100%);
    border: 2px solid rgba(225, 29, 72, 0.28);
    box-shadow: var(--teacher-shadow), var(--shadow-card);
}

[data-theme="dark"] .teachers-spotlight-inner {
    border-color: rgba(251, 113, 133, 0.35);
}

.teachers-spotlight--pulse .teachers-spotlight-inner {
    animation: teachers-highlight 1.1s ease;
}

@keyframes teachers-highlight {
    0%, 100% { box-shadow: var(--teacher-shadow), var(--shadow-card); }
    40% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.22), var(--teacher-shadow), var(--shadow-card); }
}

.teachers-spotlight-header {
    text-align: center;
    margin-bottom: 36px;
}

.teachers-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--teacher-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: var(--teacher-shadow);
}

.teachers-spotlight-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--teacher-accent-dark) 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .teachers-spotlight-title {
    background: linear-gradient(135deg, #fda4af 0%, #fdba74 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.teachers-spotlight-intro {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.teachers-empty-state {
    max-width: 600px;
    margin: 0 auto 36px;
    text-align: center;
    border-color: rgba(225, 29, 72, 0.25);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    align-items: center;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 35px 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-card);
    background-color: var(--bg-surface);
}

.card i {
    font-size: 2.8rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-row {
    margin-bottom: 80px;
}

.css-graphic-box {
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.css-graphic-box--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--feature-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.css-graphic-box--bg>* {
    position: relative;
    z-index: 1;
}

.voice-overlay {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-ui {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 2;
}

.rd-node.done {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.rd-node.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
    color: var(--accent);
}

.rd-line {
    width: 50px;
    height: 4px;
    background: var(--border-light);
    z-index: 1;
}

.rd-line.done {
    background: var(--primary);
}

.voice-ui {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-bar {
    width: 8px;
    background: var(--primary);
    border-radius: 10px;
    animation: sound 1s infinite alternate ease-in-out;
}

.sound-bar:nth-child(1) {
    height: 20px;
    animation-delay: 0.1s;
}

.sound-bar:nth-child(2) {
    height: 50px;
    animation-delay: 0.2s;
}

.sound-bar:nth-child(3) {
    height: 80px;
    animation-delay: 0.3s;
    background: var(--accent);
}

.sound-bar:nth-child(4) {
    height: 60px;
    animation-delay: 0.4s;
}

.sound-bar:nth-child(5) {
    height: 30px;
    animation-delay: 0.5s;
}

@keyframes sound {
    0% {
        transform: scaleY(0.3);
    }

    100% {
        transform: scaleY(1);
    }
}

.chat-ui {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
}

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    max-width: 80%;
}

.chat-user {
    background: var(--bg);
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-bottom-right-radius: 5px;
    color: var(--text-secondary);
}

.chat-ai {
    background: var(--chat-ai-bg);
    border: 1px solid var(--chat-ai-border);
    align-self: flex-end;
    border-bottom-left-radius: 5px;
    color: var(--text-primary);
}

.mt-100 {
    margin-top: 100px !important;
}

.img-placeholder {
    background: var(--bg-surface);
    border: 2px solid var(--badge-border);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.img-placeholder:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.feature-img-placeholder {
    width: 32%;
    min-width: 250px;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1/1;
}

.feature-img-placeholder img {
    width: 100%;
    height: 100%;
}

.feature-img-container {
    display: flex;
    justify-content: space-between;
    overflow-x: scroll;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 10px;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--sticky-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-light);
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

[data-theme="dark"] .sticky-cta {
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta>span {
    color: var(--text-primary);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    width: 280px;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

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

.btn {
    padding: 14px 35px;
    border-radius: 12px;
    border: none;
    background: var(--btn-gradient);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: var(--btn-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--highlight-bg);
    box-shadow: none;
}

footer {
    background-color: var(--bg-card);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer h2 {
    color: var(--text-primary);
}

.fs-p {
    font-size: 1.1rem;
}

.container-us {
    padding: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.08);
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.team-card:hover::after {
    opacity: 1;
}

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

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

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

.dashed-panel {
    background: var(--bg-surface);
    border: 1px dashed var(--border-light);
    padding: 40px;
    border-radius: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.teacher-form-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.teacher-invitation-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 18px 24px;
    border-radius: 14px;
    border: 1px solid rgba(225, 29, 72, 0.3);
    background: var(--teacher-accent-soft);
    color: var(--teacher-accent-dark);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .teacher-invitation-link {
    color: var(--teacher-accent);
}

.teacher-invitation-link:hover {
    border-color: var(--teacher-accent);
    background: var(--bg-card);
    transform: translateY(-2px);
    color: var(--teacher-accent-dark);
}

.teacher-invitation-link .fa-file-pdf {
    font-size: 1.35rem;
    flex-shrink: 0;
    color: var(--teacher-accent);
}

.teacher-invitation-link .fa-arrow-up-left-from-center {
    font-size: 0.85rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.teacher-form-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    text-align: right;
}

.teacher-form-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--teacher-accent-soft);
    color: var(--teacher-accent);
    font-size: 1.5rem;
}

.teacher-form-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.teacher-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, background 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
}

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

.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 24px;
    border-radius: 12px;
    border: 2px dashed var(--border-light);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    text-align: center;
}

.file-upload:hover,
.file-upload:focus-within {
    border-color: var(--primary-light);
    background: var(--highlight-bg);
}

.file-upload i {
    font-size: 2rem;
    color: var(--primary-light);
}

.file-upload-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.file-upload-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.form-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message--success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .form-message--success {
    color: #4ade80;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

[data-theme="dark"] .form-message--error {
    color: #f87171;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.kg-section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2;
}

.panel.kg-panel {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.kg-panel {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 1.25rem;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.kg-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 560px;
}

#kg-network {
    width: 100%;
    height: 560px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
    transition: background 0.4s ease;
}

#kg-info {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 5;
    width: min(300px, calc(100% - 28px));
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.75;
    border-radius: 10px;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

#kg-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, background 0.4s ease;
}

.kg-loading-inner {
    width: min(520px, 86%);
}

[data-theme="light"] .kg-loading-track {
    height: 22px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .kg-loading-track {
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

#kg-loading-bar {
    height: 100%;
    width: 8%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    transition: width 0.15s ease;
}

#kg-loading-text {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.4s ease;
}

.kg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.kg-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kg-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.35);
}

.kg-dot-primary {
    background: var(--primary-light);
}

.kg-dot-accent {
    background: #10b981;
}

[data-theme="dark"] .kg-dot-accent {
    background: #2ecc71;
}

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

    .hero-content {
        padding-left: 0;
    }

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

    #kg-network {
        height: 460px;
    }

    .kg-canvas-wrap {
        min-height: 460px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 12px 16px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .highlight-box {
        text-align: right;
    }

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

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

    .teacher-form-panel {
        padding: 28px 20px;
    }

    .teacher-form-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teacher-invitation-link {
        flex-direction: column;
        gap: 10px;
        padding: 20px 16px;
        font-size: 0.95rem;
    }

    .teacher-promo-float {
        top: 64px;
        padding: 10px 16px;
        font-size: 0.78rem;
        white-space: normal;
        text-align: center;
        border-radius: 16px;
        max-width: calc(100% - 24px);
    }

    .teacher-promo-float span:not(.teacher-promo-pulse) {
        line-height: 1.5;
    }

    .teacher-hero-callout-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teachers-spotlight-inner {
        padding: 32px 18px 28px;
    }

    .hero-image {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .blob-1,
    .blob-2 {
        display: none;
    }

    .hero-mockup-wrapper {
        margin-top: 60px;
    }

    .feature-row:nth-child(odd) .feature-text {
        order: 1;
    }

    .feature-row:nth-child(odd) .feature-image {
        order: 2;
    }

    .css-graphic-box {
        height: 200px;
    }

    .sticky-cta {
        /* flex-direction: column; */
        text-align: center;
        padding: 20px 5px;
        gap: 15px;
    }

    .input-group {
        /* width: 100%; */
        gap: 0;
        justify-content: space-evenly;
    }

    .input-group input {
        width: 65%;
    }

    .btn {
        padding: 10px 15px;
    }

    footer {
        padding: 60px 0 150px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        position: relative;
        mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
        scroll-behavior: smooth;
    }

    .team-card {
        min-width: 200px;
        max-width: 200px;
    }

    .team-grid::after {
        content: "";
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: scroll;
        padding: 30px 0 10px 0;
    }

    .container.reveal>div {
        padding: 20px 10px !important;
    }

    .card {
        padding: 15px;
    }

    .grid-4 .card {
        width: 200px;
    }

    .hero-img-placeholder {
        width: 250px;
        height: 530px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .fs-p {
        font-size: 0.9rem;
    }

    .container-us {
        padding: 15px;
    }
}