/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== DARK THEME (default) ===== */
:root, [data-theme="dark"] {
    --bg:            #08090a;
    --bg-alt:        #18181b;
    --bg-card:       rgba(255,255,255,.04);
    --bg-input:      #141416;

    --text:          #f4f4f5;
    --text-2:        rgba(244,244,245,.58);
    --text-3:        rgba(244,244,245,.36);

    --border:        rgba(255,255,255,.08);
    --border-2:      rgba(255,255,255,.14);

    --nav-bg:        rgba(8,9,10,.92);
    --nav-border:    rgba(255,255,255,.06);
    --nav-link:      rgba(255,255,255,.62);
    --nav-link-h:    #ffffff;
    --nav-link-hbg:  rgba(255,255,255,.07);
    --logo-color:    #ffffff;
    --ham-color:     #ffffff;

    --hero-bg:       #08090a;
    --hero-grid:     rgba(99,102,241,.12);
    --hero-glow1:    rgba(99,102,241,.28);
    --hero-glow2:    rgba(251,146,60,.15);
    --hero-text:     #ffffff;
    --hero-sub:      rgba(255,255,255,.52);

    --sdark-bg:      #18181b;
    --sdark-h2:      #ffffff;
    --sdark-p:       rgba(255,255,255,.42);
    --slight-bg:     #fafafa;

    --card-bg:       rgba(255,255,255,.04);
    --card-border:   rgba(255,255,255,.08);
    --card-hbg:      rgba(99,102,241,.08);
    --card-hborder:  rgba(99,102,241,.4);
    --card-num:      rgba(99,102,241,.07);
    --card-h3:       #ffffff;
    --card-p:        rgba(255,255,255,.44);
    --icon-bg:       rgba(99,102,241,.15);
    --icon-border:   rgba(99,102,241,.2);
    --icon-color:    #a5b4fc;

    --stat-bg:       rgba(255,255,255,.05);
    --stat-border:   rgba(255,255,255,.1);
    --stat-div:      rgba(255,255,255,.1);
    --stat-text:     #ffffff;
    --stat-sub:      rgba(255,255,255,.42);

    --ghost-color:   #ffffff;
    --ghost-border:  rgba(255,255,255,.32);
    --ghost-hbg:     rgba(255,255,255,.08);

    --feat-bg:       #ffffff;
    --feat-border:   #e4e4e7;
    --feat-shadow:   0 2px 16px rgba(0,0,0,.07);
    --feat-text:     #08090a;
    --feat-sub:      #71717a;
    --feat-icon:     rgba(99,102,241,.1);
    --feat-icolor:   #6366f1;
    --check-text:    #3f3f46;

    --form-wrap:     #ffffff;
    --form-label:    #18181b;
    --form-input:    #f4f4f5;
    --form-itext:    #08090a;
    --form-iborder:  #e4e4e7;

    --ci-bg:         rgba(255,255,255,.05);
    --ci-border:     rgba(255,255,255,.08);
    --ci-hbg:        rgba(99,102,241,.1);
    --ci-hborder:    rgba(99,102,241,.3);
    --ci-label:      rgba(255,255,255,.45);
    --ci-text:       #ffffff;
    --ci-icon:       #a5b4fc;

    --footer-bg:     #040405;
    --footer-copy:   rgba(255,255,255,.28);
    --footer-link:   rgba(255,255,255,.32);
    --footer-lh:     rgba(255,255,255,.8);
    --logo-footer:   #ffffff;

    --badge-lt-bg:   rgba(99,102,241,.1);
    --badge-lt-cl:   #6366f1;
    --badge-dk-bg:   rgba(99,102,241,.18);
    --badge-dk-cl:   #a5b4fc;

    --shadow:        0 2px 16px rgba(0,0,0,.2);
    --shadow-lg:     0 16px 48px rgba(0,0,0,.3);

    --toggle-bg:     rgba(255,255,255,.08);
    --toggle-hbg:    rgba(255,255,255,.14);
    --toggle-color:  #fbbf24;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg:            #f8fafc;
    --bg-alt:        #f1f5f9;
    --bg-card:       #ffffff;
    --bg-input:      #ffffff;

    --text:          #0f172a;
    --text-2:        #475569;
    --text-3:        #94a3b8;

    --border:        rgba(0,0,0,.08);
    --border-2:      rgba(0,0,0,.13);

    --nav-bg:        rgba(255,255,255,.92);
    --nav-border:    rgba(0,0,0,.08);
    --nav-link:      rgba(15,23,42,.6);
    --nav-link-h:    #0f172a;
    --nav-link-hbg:  rgba(0,0,0,.05);
    --logo-color:    #0f172a;
    --ham-color:     #0f172a;

    --hero-bg:       #eef2ff;
    --hero-grid:     rgba(99,102,241,.1);
    --hero-glow1:    rgba(99,102,241,.14);
    --hero-glow2:    rgba(251,146,60,.1);
    --hero-text:     #0f172a;
    --hero-sub:      rgba(15,23,42,.55);

    --sdark-bg:      #f0f1fe;
    --sdark-h2:      #0f172a;
    --sdark-p:       #64748b;
    --slight-bg:     #ffffff;

    --card-bg:       #ffffff;
    --card-border:   rgba(0,0,0,.07);
    --card-hbg:      rgba(99,102,241,.04);
    --card-hborder:  rgba(99,102,241,.35);
    --card-num:      rgba(99,102,241,.06);
    --card-h3:       #0f172a;
    --card-p:        #64748b;
    --icon-bg:       rgba(99,102,241,.09);
    --icon-border:   rgba(99,102,241,.14);
    --icon-color:    #6366f1;

    --stat-bg:       rgba(99,102,241,.06);
    --stat-border:   rgba(99,102,241,.15);
    --stat-div:      rgba(99,102,241,.15);
    --stat-text:     #0f172a;
    --stat-sub:      #64748b;

    --ghost-color:   #0f172a;
    --ghost-border:  rgba(15,23,42,.28);
    --ghost-hbg:     rgba(15,23,42,.05);

    --feat-bg:       #ffffff;
    --feat-border:   #e2e8f0;
    --feat-shadow:   0 2px 16px rgba(0,0,0,.05);
    --feat-text:     #0f172a;
    --feat-sub:      #64748b;
    --feat-icon:     rgba(99,102,241,.09);
    --feat-icolor:   #6366f1;
    --check-text:    #1e293b;

    --form-wrap:     #ffffff;
    --form-label:    #0f172a;
    --form-input:    #f8fafc;
    --form-itext:    #0f172a;
    --form-iborder:  #cbd5e1;

    --ci-bg:         rgba(255,255,255,.85);
    --ci-border:     rgba(0,0,0,.07);
    --ci-hbg:        rgba(99,102,241,.06);
    --ci-hborder:    rgba(99,102,241,.25);
    --ci-label:      #64748b;
    --ci-text:       #0f172a;
    --ci-icon:       #6366f1;

    --footer-bg:     #0f172a;
    --footer-copy:   rgba(255,255,255,.32);
    --footer-link:   rgba(255,255,255,.38);
    --footer-lh:     rgba(255,255,255,.85);
    --logo-footer:   #ffffff;

    --badge-lt-bg:   rgba(99,102,241,.09);
    --badge-lt-cl:   #4f46e5;
    --badge-dk-bg:   rgba(99,102,241,.1);
    --badge-dk-cl:   #4338ca;

    --shadow:        0 2px 16px rgba(0,0,0,.06);
    --shadow-lg:     0 16px 48px rgba(0,0,0,.09);

    --toggle-bg:     rgba(0,0,0,.07);
    --toggle-hbg:    rgba(0,0,0,.12);
    --toggle-color:  #6366f1;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background .25s, color .25s;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
a { text-decoration: none; color: inherit; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .22s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn-primary { background: #fb923c; color: #fff; border-color: #fb923c; }
.btn-primary:hover { background: #ea7416; border-color: #ea7416; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(251,146,60,.32); }
.btn-ghost { background: transparent; color: var(--ghost-color); border-color: var(--ghost-border); }
.btn-ghost:hover { background: var(--ghost-hbg); border-color: var(--ghost-color); }
.btn-sm   { padding: 9px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===== BADGE ===== */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 16px;
}
.badge-light  { background: var(--badge-lt-bg); color: var(--badge-lt-cl); }
.badge-dark   { background: var(--badge-dk-bg); color: var(--badge-dk-cl); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--toggle-bg);
    border: none;
    cursor: pointer;
    color: var(--toggle-color);
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--toggle-hbg); }
.theme-toggle svg { display: block; }
.icon-sun  { display: none; }
.icon-moon { display: flex; }
[data-theme="light"] .icon-sun  { display: flex; }
[data-theme="light"] .icon-moon { display: none; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    transition: background .25s, border-color .25s;
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { font-size: 19px; font-weight: 800; color: var(--logo-color); letter-spacing: -.3px; flex-shrink: 0; transition: color .25s; }
.logo span { color: #6366f1; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--nav-link); font-size: 14px; font-weight: 500; padding: 7px 15px; border-radius: 8px; transition: all .2s; }
.nav-links a:hover { color: var(--nav-link-h); background: var(--nav-link-hbg); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ham-color); border-radius: 2px; transition: all .2s; }
.mobile-menu {
    display: none; flex-direction: column;
    padding: 12px 28px 20px; gap: 4px;
    border-top: 1px solid var(--nav-border);
    background: var(--nav-bg);
}
.mobile-menu a { color: var(--nav-link); padding: 10px 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu .theme-toggle { margin-top: 8px; width: 100%; border-radius: 8px; height: 44px; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--hero-bg);
    overflow: hidden; padding-top: 70px;
    transition: background .25s;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, var(--hero-glow1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 80% 80%, var(--hero-glow2) 0%, transparent 60%);
}
.hero-content { position: relative; padding: 100px 0 110px; max-width: 800px; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800; line-height: 1.1;
    color: var(--hero-text);
    letter-spacing: -.03em; margin-bottom: 24px;
    transition: color .25s;
}
.highlight {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #fb923c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: var(--hero-sub); max-width: 540px; margin: 0 auto 40px; line-height: 1.7; transition: color .25s; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }
.hero-stats {
    display: inline-flex; align-items: center; gap: 0;
    background: var(--stat-bg);
    border: 1px solid var(--stat-border);
    border-radius: 14px; padding: 6px;
    backdrop-filter: blur(8px);
    transition: background .25s, border-color .25s;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 14px 32px; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--stat-text); letter-spacing: -.02em; transition: color .25s; }
.stat span   { font-size: 12px; color: var(--stat-sub); font-weight: 500; margin-top: 2px; white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: var(--stat-div); flex-shrink: 0; }

/* ===== SECTIONS ===== */
.section { padding: 104px 0; }
.section-dark  { background: var(--sdark-bg); transition: background .25s; }
.section-light { background: var(--slight-bg); transition: background .25s; }
.section-header { text-align: center; max-width: 580px; margin: 0 auto 64px; }
.section-header h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; line-height: 1.2; color: var(--text); }
.section-dark .section-header h2 { color: var(--sdark-h2); }
.section-header p { color: var(--text-2); font-size: 17px; }
.section-dark .section-header p { color: var(--sdark-p); }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px; padding: 40px 36px;
    transition: all .22s ease; overflow: hidden;
}
.card::before {
    content: attr(data-num); position: absolute;
    top: -8px; right: 20px;
    font-size: 80px; font-weight: 800; color: var(--card-num);
    line-height: 1; pointer-events: none; letter-spacing: -.05em;
}
.card:hover { background: var(--card-hbg); border-color: var(--card-hborder); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 56px; height: 56px;
    background: var(--icon-bg);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--icon-color); margin-bottom: 24px;
    border: 1px solid var(--icon-border);
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--card-h3); margin-bottom: 10px; transition: color .25s; }
.card p  { color: var(--card-p); font-size: 14px; line-height: 1.7; transition: color .25s; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; line-height: 1.2; color: var(--text); }
.about-text > p { color: var(--text-2); font-size: 16px; margin-bottom: 32px; line-height: 1.75; }
.check-list { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--check-text); font-weight: 500; transition: color .25s; }
.check-list li::before {
    content: ''; display: block; width: 22px; height: 22px; flex-shrink: 0;
    background: #6366f1; border-radius: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.about-right { display: flex; flex-direction: column; gap: 20px; }
.feat-card {
    background: var(--feat-bg); border: 1px solid var(--feat-border);
    border-radius: 14px; padding: 26px 28px;
    display: flex; align-items: flex-start; gap: 18px;
    transition: all .22s ease; box-shadow: var(--feat-shadow);
}
.feat-card:hover { border-color: #6366f1; transform: translateX(6px); }
.feat-icon { width: 46px; height: 46px; background: var(--feat-icon); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--feat-icolor); flex-shrink: 0; }
.feat-card strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--feat-text); transition: color .25s; }
.feat-card p { font-size: 13px; color: var(--feat-sub); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.contact-form {
    background: var(--form-wrap); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 20px;
    transition: background .25s, border-color .25s;
}
.form-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; color: var(--form-label); }
.form-sub   { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--form-label); letter-spacing: .01em; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px; border: 1.5px solid var(--form-iborder);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    color: var(--form-itext); background: var(--form-input);
    transition: all .2s; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1; background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== CONTACT INFO ===== */
.contact-info-box { padding-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.cinfo-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--ci-bg); border: 1px solid var(--ci-border);
    border-radius: 14px; padding: 22px 24px;
    transition: all .22s ease;
}
.cinfo-card:hover { background: var(--ci-hbg); border-color: var(--ci-hborder); }
.cinfo-card svg { color: var(--ci-icon); flex-shrink: 0; transition: color .25s; }
.cinfo-card div { display: flex; flex-direction: column; gap: 3px; }
.cinfo-card strong { font-size: 12px; font-weight: 700; color: var(--ci-label); letter-spacing: .05em; text-transform: uppercase; transition: color .25s; }
.cinfo-card a, .cinfo-card span { font-size: 15px; color: var(--ci-text); font-weight: 500; transition: color .25s; }
.cinfo-card a:hover { color: #a5b4fc; }
.contact-cta {
    margin-top: 8px; background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 14px; padding: 30px 24px; text-align: center;
}
.contact-cta p { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 16px; }
.contact-cta strong { display: block; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.contact-cta .btn-ghost { width: 100%; color: #fff; border-color: rgba(255,255,255,.35); }
.contact-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ===== FOOTER ===== */
.footer { background: var(--footer-bg); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { color: var(--logo-footer); }
.footer-copy { color: var(--footer-copy); font-size: 14px; margin-left: auto; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--footer-link); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--footer-lh); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links, .nav-inner > .btn-primary, .nav-inner > .theme-toggle { display: none; }
    .hamburger { display: flex; }

    .section { padding: 72px 0; }
    .cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }

    .hero-stats { flex-direction: column; gap: 0; width: 100%; max-width: 280px; }
    .stat { padding: 14px 24px; width: 100%; }
    .stat-divider { width: 100%; height: 1px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-copy { margin-left: 0; }
}
