/* ============================================================
   Teach Me Robot — Landing Page CSS (Light Trendy Theme)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary:   #1a56db;
    --primary-d: #1347b8;
    --indigo:    #4338ca;
    --teal:      #0891b2;
    --green:     #059669;
    --surface:   #f8fafc;
    --surface-2: #f1f5f9;
    --border:    #e2e8f0;
    --text:      #0f172a;
    --text-mid:  #475569;
    --text-light:#94a3b8;
    --gradient:  linear-gradient(135deg, #1a56db 0%, #4338ca 50%, #7c3aed 100%);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 48px rgba(0,0,0,.1);
    --nav-h: 72px;
    --trans: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ===========================
   BUTTONS
=========================== */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: .8rem 1.75rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: transform var(--trans), box-shadow var(--trans);
    white-space: nowrap;
    cursor: pointer;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26,86,219,.3);
    color: #fff;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    color: var(--text-mid);
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.75rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: border-color var(--trans), color var(--trans), background var(--trans);
    white-space: nowrap;
}
.btn-hero-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26,86,219,.04);
}

/* ===========================
   NAVBAR
=========================== */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.site-nav.nav-scrolled {
    background: rgba(255,255,255,.97);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    flex-shrink: 0;
}

.nav-brand-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
}

.nav-links {
    display: none;
    list-style: none;
    margin: 0; padding: 0;
    gap: .25rem;
}

@media(min-width:768px) {
    .nav-links {
        display: flex;
        margin-left: auto;
    }
}

.nav-links a {
    display: block;
    padding: .45rem .9rem;
    color: var(--text-mid);
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { color: var(--primary); background: rgba(26,86,219,.05); }

.nav-cta {
    display: none;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media(min-width:768px) { .nav-cta { display: flex; margin-left: 1.5rem; } }

.btn-nav-ghost {
    padding: .45rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-mid);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--trans), color var(--trans);
}
.btn-nav-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-nav-primary {
    padding: .45rem 1.1rem;
    background: var(--gradient);
    border-radius: 8px;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow var(--trans), transform var(--trans);
}
.btn-nav-primary:hover { box-shadow: 0 4px 16px rgba(26,86,219,.3); transform: translateY(-1px); color: #fff; }

/* Hamburger */
.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: none;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    margin-left: auto;
    transition: border-color var(--trans);
}
.nav-hamburger:hover { border-color: var(--primary); color: var(--primary); }
@media(min-width:768px) { .nav-hamburger { display: none; } }

/* Mobile dropdown */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-mid);
    text-decoration: none;
    padding: .5rem 0;
}
.nav-mobile .btn-nav-primary, .nav-mobile .btn-nav-ghost { text-align: center; border-radius: 10px; }

/* ===========================
   HERO
=========================== */
.hero-section {
    padding-top: calc(var(--nav-h) + 5rem);
    padding-bottom: 5rem;
    background: linear-gradient(160deg, #f0f6ff 0%, #faf7ff 40%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

/* Animated orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: rgba(26,86,219,.12); animation-duration: 18s; }
.orb-2 { width: 400px; height: 400px; top: 50px; right: -80px; background: rgba(124,58,237,.1); animation-delay: 4s; }
.orb-3 { width: 320px; height: 320px; bottom: -80px; left: 30%; background: rgba(8,145,178,.08); animation-delay: 8s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.04); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

@media(max-width:991px) { .hero-container { flex-direction: column; gap: 3rem; } }

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(26,86,219,.08);
    color: var(--primary);
    border: 1px solid rgba(26,86,219,.2);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.headline-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-mid);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-lbl { font-size: .78rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.hero-stat-div { width: 1px; height: 2.5rem; background: var(--border); }

/* Hero visual */
.hero-visual { flex: 0 0 48%; max-width: 48%; }
@media(max-width:991px) { .hero-visual { flex: 0 0 100%; max-width: 100%; } }

.hero-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.05);
    animation: imgFloat 8s ease-in-out infinite;
}

@keyframes imgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(15,23,42,.3) 100%); }

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    padding: .55rem 1rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

.badge-top-right { top: 1rem; right: 1rem; color: #4338ca; }
.badge-bottom-left { bottom: 1rem; left: 1rem; color: #059669; }

/* ===========================
   TRUST BAR
=========================== */
.trust-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
}

.trust-label {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-mid);
}

.trust-item i { font-size: 1.25rem; color: var(--primary); }

/* ===========================
   SECTION SHARED
=========================== */
.section-badge {
    display: inline-block;
    background: rgba(26,86,219,.08);
    color: var(--primary);
    border: 1px solid rgba(26,86,219,.18);
    border-radius: 50px;
    padding: .35rem .9rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header { margin-bottom: 3.5rem; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-sub {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}

/* ===========================
   FEATURES
=========================== */
.features-section {
    padding: 6rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,86,219,.2);
}

.fc-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--fc-bg);
    color: var(--fc-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .6rem;
}

.feature-card p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   ABOUT
=========================== */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 4.5rem;
}

@media(max-width:991px) { .about-grid { flex-direction: column; gap: 2.5rem; } }

.about-img-col { flex: 0 0 45%; max-width: 45%; }
@media(max-width:991px) { .about-img-col { max-width: 100%; flex: 0 0 100%; } }

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-badge {
    position: absolute;
    bottom: 1.25rem; left: 1.25rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: .5rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.about-text-col { flex: 1; min-width: 0; }

.about-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-check {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.about-list li strong {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .2rem;
}

.about-list li p { margin: 0; font-size: .875rem; color: var(--text-mid); line-height: 1.6; }

/* ===========================
   STATS STRIP
=========================== */
.stats-strip {
    padding: 4rem 0;
    background: var(--gradient);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 5rem;
}

.ss-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.ss-num { font-size: 2.25rem; font-weight: 900; color: #fff; line-height: 1; }
.ss-lbl { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials-section {
    padding: 6rem 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--trans), box-shadow var(--trans);
}

.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tcard-stars { color: #f59e0b; font-size: .85rem; margin-bottom: 1rem; display: flex; gap: .15rem; }
.tcard > p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }

.tcard-author { display: flex; align-items: center; gap: .75rem; }

.tcard-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.tcard-author div { display: flex; flex-direction: column; }
.tcard-author strong { font-size: .875rem; color: var(--text); font-weight: 700; }
.tcard-author span { font-size: .78rem; color: var(--text-light); }

/* ===========================
   CONTACT
=========================== */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

.contact-grid {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

@media(max-width:991px) { .contact-grid { flex-direction: column; gap: 2.5rem; } }

.contact-info { flex: 0 0 38%; max-width: 38%; }
@media(max-width:991px) { .contact-info { max-width: 100%; flex: 0 0 100%; } }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    margin-top: 1.5rem;
}

.cd-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(26,86,219,.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail div { display: flex; flex-direction: column; }
.contact-detail span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); margin-bottom: .2rem; }
.contact-detail div { font-size: .9rem; color: var(--text-mid); font-weight: 500; }

.contact-form-wrap { flex: 1; }

/* Form inputs */
.cf-label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: var(--text);
    margin-bottom: .4rem;
}

.cf-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--trans), box-shadow var(--trans);
    outline: none;
}

.cf-input::placeholder { color: var(--text-light); }
.cf-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
    background: #fff;
}

.cf-textarea { resize: vertical; min-height: 120px; }

.contact-alert {
    border-radius: var(--radius-md);
    padding: .8rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.contact-alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.contact-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,.7);
}

.footer-top { padding: 4rem 0 3rem; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.footer-brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}

.footer-desc {
    font-size: .875rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.footer-socials { display: flex; gap: .6rem; }

.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--trans), color var(--trans);
}
.footer-socials a:hover { background: rgba(255,255,255,.14); color: #fff; }

.footer-heading {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1.25rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.site-footer ul a {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color var(--trans);
}
.site-footer ul a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    margin: 0;
    text-align: center;
}

.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ===========================
   SCROLL REVEAL ANIMATIONS
=========================== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}
.reveal-up    { transform: translateY(28px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* ===========================
   RESPONSIVE OVERRIDES
=========================== */
@media(max-width:767px) {
    .hero-headline { letter-spacing: -1px; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-grid, .contact-grid { flex-direction: column; gap: 2rem; }
    .about-img-col, .contact-info { max-width: 100%; flex: 0 0 100%; }
    .trust-logos { gap: 1.5rem; }
    .hero-stats { gap: 1rem; }
    .stats-row { gap: 2rem 3rem; }
}
