/* === DESIGN TOKENS === */
:root {
    --primary: #0a0f1e;
    --primary-mid: #141b2d;
    --secondary: #2d3a4f;
    --accent: #c4a265;
    --accent-light: #dbc697;
    --accent-glow: rgba(196, 162, 101, 0.15);
    --bg-light: #f7f8fb;
    --bg-warm: #faf8f4;
    --white: #ffffff;
    --text-main: #1a1f2e;
    --text-muted: #5c6478;
    --border: #e4e7ee;
    --success: #2ecc71;
    --danger: #e74c3c;

    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1200px;

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

/* === RESET & BASE === */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}
a:hover { color: var(--primary); }

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

::selection {
    background: var(--accent);
    color: var(--white);
}

/* === LAYOUT === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.section--light {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section--warm { background: var(--bg-warm); }

.section--dark {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    position: relative;
    overflow: hidden;
}

.section--dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 30px 10px var(--accent-glow); }
}

/* === NAVIGATION === */
.site-nav {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    z-index: 1000;
    transition: all 0.4s var(--ease-out-expo);
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav__logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.3s;
}

.site-nav__logo:hover { opacity: 0.7; color: var(--primary); }
.site-nav__logo span { color: var(--accent); }

.site-nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.site-nav__links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.site-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

.site-nav__links a:hover { color: var(--primary); }
.site-nav__links a:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown__trigger::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown__trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
    z-index: 100;
    animation: fadeInUp 0.2s var(--ease-out-expo);
}

.nav-dropdown:hover .nav-dropdown__menu { display: block; }

.nav-dropdown__menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 6px;
    margin: 0 0.4rem;
}

.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover { background: var(--bg-light); }

/* Mobile menu toggle */
.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover { color: var(--white); background: var(--primary-mid); }

.btn--accent {
    background: var(--accent);
    color: var(--white);
}

.btn--accent:hover { color: var(--white); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--sm {
    padding: 0.55rem 1.3rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

/* === HERO === */
.hero {
    padding-top: 9rem;
    padding-bottom: 5rem;
    position: relative;
}

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

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    max-width: 860px;
    animation: fadeInUp 0.8s var(--ease-out-expo);
}

.hero--centered h1 { margin-left: auto; margin-right: auto; }

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero--centered .hero__subtitle { margin-left: auto; margin-right: auto; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.05s both;
}

.hero__badge span { color: var(--accent); font-weight: 600; }

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--border);
    padding-top: 3.5rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.stat-item { position: relative; }

.stat-item h3 {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SPLIT LAYOUT === */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split--reverse > :first-child { order: 2; }
.split--reverse > :last-child { order: 1; }

/* === FEATURE LIST === */
.feature-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
    transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.feature-item:hover {
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === CARD GRID === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.card:hover::before { opacity: 1; }

.card__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-glow), rgba(196, 162, 101, 0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease-spring);
}

.card:hover .card__icon { transform: scale(1.1) rotate(-3deg); }

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    font-weight: 700;
}

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

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-light); }
.comparison-table td:first-child { font-weight: 600; color: var(--primary); }
.highlight-cell { color: var(--accent); font-weight: 700; }

/* === BLOCKQUOTE === */
.pullquote {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    position: relative;
}

.pullquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: var(--font-heading);
    line-height: 1;
}

.pullquote p {
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.pullquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--accent);
}

/* === APP WINDOW MOCKUP === */
.app-window {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.app-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}

.app-window__header {
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f6 100%);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.app-window__dot { width: 10px; height: 10px; border-radius: 50%; }
.app-window__dot--red { background: #ff5f56; }
.app-window__dot--yellow { background: #ffbd2e; }
.app-window__dot--green { background: #27c93f; }

.app-window__body { padding: 2.5rem; }

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

/* === PRODUCT HERO VARIANT === */
.product-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, var(--accent-glow) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 60%),
        var(--white);
    position: relative;
}

.product-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.product-hero .hero__subtitle {
    font-size: 1.12rem;
    margin-bottom: 2rem;
}

/* === FOOTER === */
.site-footer {
    background: var(--primary);
    color: #8892a6;
    padding: 5rem 0 2rem;
    font-size: 0.88rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.site-footer h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

.footer-brand p {
    color: #6b7a8d;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
    color: #8892a6;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    text-align: center;
    color: #4a5568;
    font-size: 0.82rem;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .split, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .split--reverse > :first-child { order: 1; }
    .split--reverse > :last-child { order: 2; }
    .hero h1, .product-hero h1 { font-size: 2.4rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .section { padding: 5rem 0; }
}

@media (max-width: 768px) {
    .site-nav__links { display: none; }
    .site-nav__toggle { display: block; }
    .site-nav__links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        gap: 0.75rem;
    }
    .site-nav__links.active a::after { display: none; }
    .nav-dropdown__menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    .nav-dropdown:hover .nav-dropdown__menu { display: block; }
    .section { padding: 3.5rem 0; }
    .card-grid { grid-template-columns: 1fr; }
    .hero h1, .product-hero h1 { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .container { padding: 0 1.25rem; }
}
