/* =========================
   DESIGN TOKENS
========================== */
:root {
    /* Light Theme */
    --bg: #F7F9FC;
    --bg2: #F2F6FF;
    --glass: rgba(255, 255, 255, .65);
    --glass2: rgba(255, 255, 255, .82);
    --text: #0B1220;
    --muted: #5B6478;
    --border: rgba(11, 18, 32, .10);
    
    --primary: #2563EB;
    --primaryHover: #1D4ED8;
    --cyan: #0EA5E9;
    --amber: #F59E0B;
    --success: #10B981;
    
    --radius: 18px;
    --radius2: 26px;
    --shadow: 0 18px 55px rgba(11, 18, 32, .12);
    --shadow2: 0 10px 26px rgba(11, 18, 32, .08);
    --max: 1200px;
    --blur: 18px;
    --focus: 0 0 0 6px rgba(37, 99, 235, .14);
}

[data-theme="dark"] {
    --bg: #070B14;
    --bg2: #0A1020;
    --glass: rgba(13, 20, 38, .60);
    --glass2: rgba(13, 20, 38, .75);
    --text: #EAF0FF;
    --muted: #A3AFCC;
    --border: rgba(255, 255, 255, .08);
    --primary: #3B82F6;
    --primaryHover: #2563EB;
    --cyan: #22D3EE;
    --shadow: 0 26px 90px rgba(0, 0, 0, .50);
    --shadow2: 0 14px 42px rgba(0, 0, 0, .34);
    --focus: 0 0 0 6px rgba(59, 130, 246, .16);
}

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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    color: var(--text);
    background: radial-gradient(900px 420px at 14% 0%, rgba(37, 99, 235, .16), transparent 60%),
                radial-gradient(900px 420px at 86% 12%, rgba(14, 165, 233, .12), transparent 60%),
                radial-gradient(900px 520px at 60% 92%, rgba(245, 158, 11, .10), transparent 55%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* =========================
   UTILITY CLASSES
========================== */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow2);
    position: relative;
    overflow: hidden;
}

.glass.soft {
    background: var(--glass2);
    box-shadow: var(--shadow);
}

/* Inner highlight */
.glass:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, .35),
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, .08) 70%,
        rgba(255, 255, 255, 0)
    );
    opacity: .55;
    pointer-events: none;
}

[data-theme="dark"] .glass:before {
    opacity: .18;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================
   NAVIGATION
========================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    background: rgba(247, 249, 252, .55);
}

[data-theme="dark"] .topbar {
    background: rgba(7, 11, 20, .50);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -.3px;
}

.mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
    position: relative;
    overflow: hidden;
}

/* Animated shine effect */
.mark:after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .6), transparent 60%);
    transform: translateX(-55%) rotate(18deg);
    animation: shine 4.6s ease-in-out infinite;
    opacity: .6;
}

@keyframes shine {
    0%, 45% {
        transform: translateX(-70%) rotate(18deg);
    }
    60% {
        transform: translateX(70%) rotate(18deg);
    }
    100% {
        transform: translateX(70%) rotate(18deg);
    }
}

.menu {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
}

.menu a {
    padding: 8px 4px;
    position: relative;
    transition: color .2s;
}

.menu a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: .22s ease;
}

.menu a:hover {
    color: var(--text);
}

.menu a:hover:after {
    transform: scaleX(1);
}

.menu .current-menu-item a,
.menu .current_page_item a {
    color: var(--primary);
}

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

/* =========================
   BUTTONS
========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow2);
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .btn {
    background: rgba(13, 20, 38, .55);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    box-shadow: none;
}

.btn-primary {
    border: none;
    color: #fff;
    background: radial-gradient(60px 40px at 18% 18%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)),
                linear-gradient(135deg, var(--primary), var(--cyan));
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(37, 99, 235, .25),
                0 0 0 1px rgba(255, 255, 255, .10) inset;
}

/* Shine effect on primary buttons */
.btn-primary:before {
    content: "";
    position: absolute;
    inset: -55%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .4) 48%, transparent 60%);
    transform: translateX(-65%) rotate(16deg);
    transition: .30s ease;
    opacity: .6;
}

.btn-primary:hover:before {
    transform: translateX(70%) rotate(16deg);
}

.btn-outline {
    background: transparent;
    box-shadow: none;
    border-color: rgba(37, 99, 235, .30);
    color: var(--text);
}

.toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: .18s ease;
    box-shadow: var(--shadow2);
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .toggle {
    background: rgba(13, 20, 38, .55);
}

.toggle:hover {
    transform: translateY(-2px);
}

.toggle svg {
    width: 20px;
    height: 20px;
}

/* =========================
   HERO SECTION
========================== */
.hero {
    padding: 80px 0 60px;
    position: relative;
}

/* Corporate stripe */
.hero:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 320px;
    background: linear-gradient(90deg,
        rgba(37, 99, 235, .14),
        rgba(14, 165, 233, .10),
        rgba(37, 99, 235, .06));
    transform: skewY(-4deg);
    transform-origin: 0 0;
    opacity: .85;
}

[data-theme="dark"] .hero:before {
    opacity: .55;
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: .55;
    pointer-events: none;
    animation: float 7.5s ease-in-out infinite;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .orb {
    mix-blend-mode: screen;
    opacity: .35;
}

.orb.one {
    width: 220px;
    height: 220px;
    left: -60px;
    top: 90px;
    background: rgba(37, 99, 235, .45);
}

.orb.two {
    width: 180px;
    height: 180px;
    right: -50px;
    top: 140px;
    background: rgba(14, 165, 233, .40);
    animation-duration: 8.5s;
}

.orb.three {
    width: 200px;
    height: 200px;
    right: 110px;
    bottom: -70px;
    background: rgba(245, 158, 11, .32);
    animation-duration: 9.4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, -14px);
    }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, .14);
}

h1 {
    margin: 0 0 20px;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 900;
}

.lead {
    margin: 0 0 32px;
    font-size: 19px;
    color: var(--muted);
    max-width: 580px;
    font-weight: 500;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-pills {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
}

.mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .14);
}

/* Hero stats panel */
.stats-panel {
    padding: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .35);
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .stat-item {
    background: rgba(0, 0, 0, .20);
}

.stat-num {
    font-weight: 900;
    font-size: 24px;
    display: block;
    letter-spacing: -.5px;
}

.stat-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    margin-top: 4px;
}

/* =========================
   SECTIONS
========================== */
.section {
    padding: 20px 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

h2 {
    margin: 0 0 16px;
    font-size: 40px;
    letter-spacing: -.8px;
    font-weight: 900;
}

.section-header p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
}

/* =========================
   GRID & CARDS
========================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    padding: 32px;
    transition: all .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* Neon edge effect */
.card:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, .55),
        rgba(14, 165, 233, .35),
        rgba(245, 158, 11, .20));
    -webkit-mask: linear-gradient(#000 0 0) content-box,
                  linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: .25s ease;
    pointer-events: none;
}

.card:hover:after {
    opacity: .7;
}

.icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, .22);
    background: rgba(37, 99, 235, .10);
    color: var(--primary);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.icon:before {
    content: "";
    position: absolute;
    inset: -60%;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, .35), transparent 60%);
    filter: blur(8px);
    opacity: .8;
}

.icon > span {
    position: relative;
    z-index: 1;
}

h3 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -.3px;
    font-weight: 800;
}

.card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    transition: gap .2s;
}

.card-link:hover {
    gap: 12px;
}

/* =========================
   CTA SECTION
========================== */
.cta-section {
    padding: 32px;
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.cta-section:after {
    content: "";
    position: absolute;
    inset: auto -35% -75% auto;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .22), transparent 58%);
    filter: blur(10px);
}

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

.cta-section h3 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.5px;
}

.cta-section p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 500;
    font-size: 16px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   FEATURES LIST
========================== */
.features-list {
    list-style: none;
    margin: 24px 0;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 15px;
}

.features-list li:before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* =========================
   FOOTER
========================== */
footer {
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 400px at 20% 0%, rgba(37, 99, 235, .08), transparent 60%),
                radial-gradient(800px 400px at 80% 100%, rgba(14, 165, 233, .06), transparent 60%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 16px;
    font-size: 15px;
}

.footer-cta {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(var(--blur));
}

.footer-cta h5 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-cta p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-grid h4 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
}

.footer-grid a {
    display: block;
    color: var(--muted);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    position: relative;
    padding-left: 0;
}

.footer-grid a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-grid a:before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all .2s;
}

.footer-grid a:hover:before {
    left: 0;
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    transition: all .2s;
    backdrop-filter: blur(var(--blur));
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}

.social-link:hover svg {
    color: #fff;
}

.footer-bottom {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-weight: 500;
    transition: color .2s;
}

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

/* =========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 42px;
    }
    h2 {
        font-size: 34px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: 1/-1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    .footer-brand {
        grid-column: 1/-1;
        padding-bottom: 32px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    .footer-links {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .orb {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand {
        padding-bottom: 28px;
    }
    .footer-grid > div:not(.footer-brand) {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }
    .footer-grid > div:last-child {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
