:root {
    --purple-deep: #2D1B69;
    --purple-mid: #4A2FA0;
    --purple-brand: #6B3FA0;
    --purple-light: #8B5CF6;
    --purple-lighter: #A78BFA;
    --lavender-bg: #F3EEFF;
    --lavender-light: #F8F5FF;
    --orange: #F5A623;
    --orange-hover: #E6951A;
    --orange-light: #FFF3E0;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #A3A3A3;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --green: #22C55E;
    --red: #EF4444;
    --blue: #3B82F6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(45,27,105,0.08);
    --shadow-lg: 0 10px 40px rgba(45,27,105,0.12);
    --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--purple-deep);
    line-height: 1.2;
}

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45,27,105,0.06);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 90px;
}
.nav-logo img { height: 80px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--gray-600); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--purple-mid); background: var(--lavender-light); }
.nav-cta {
    background: var(--orange) !important; color: var(--white) !important;
    font-weight: 600 !important; border-radius: 50px !important; padding: 10px 24px !important;
}
.nav-cta:hover { background: var(--orange-hover) !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--purple-deep); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown.open .nav-dropdown-trigger { color: var(--purple-mid); background: var(--lavender-light); }

/* Mega Menu */
.nav-mega-menu {
    display: none; position: fixed; top: 90px; left: 0; right: 0; z-index: 100;
    background: var(--white); border-top: 1px solid rgba(45,27,105,0.06);
    box-shadow: 0 20px 60px rgba(45,27,105,0.12);
}
.nav-mega.open .nav-mega-menu { display: block; }
.nav-mega-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: 250px 1fr 1fr; gap: 40px;
}
.nav-mega-intro { border-right: 1px solid var(--gray-200); padding-right: 32px; }
.nav-mega-col { display: flex; flex-direction: column; gap: 4px; }
.nav-mega-item {
    display: flex !important; align-items: center; gap: 14px;
    padding: 14px 16px !important; border-radius: 12px !important;
    text-decoration: none !important; color: inherit !important;
    transition: background 0.15s;
}
.nav-mega-item:hover { background: var(--lavender-bg) !important; }
.nav-mega-icon {
    width: 40px; height: 40px; min-width: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--lavender-light); border-radius: 10px; font-size: 18px;
    line-height: 40px; text-align: center; flex-shrink: 0;
}
.nav-mega-item div { display: flex; flex-direction: column; }
.nav-mega-item strong { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.nav-mega-item span { font-size: 12px; color: var(--gray-400); line-height: 1.4; }

/* ===== HERO ===== */
.hero {
    padding: 160px 24px 80px;
    background: linear-gradient(135deg, var(--lavender-light) 0%, var(--white) 40%, var(--lavender-bg) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--purple-lighter);
    color: var(--purple-mid); font-size: 13px; font-weight: 600;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--gray-600); max-width: 680px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 600;
    text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,166,35,0.3); }
.btn-secondary { background: var(--white); color: var(--purple-deep); border: 2px solid var(--purple-lighter); }
.btn-secondary:hover { background: var(--lavender-light); transform: translateY(-2px); }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 800; color: var(--purple-deep); }
.hero-stat-label { font-size: 14px; color: var(--gray-600); margin-top: 2px; }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--gray-600); }
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--purple-light); margin-bottom: 12px;
}
.bg-lavender { background: var(--lavender-bg); }
.bg-white { background: var(--white); }

/* ===== MODULE CARDS ===== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.module-card {
    background: var(--white); border-radius: var(--radius); padding: 36px 32px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(45,27,105,0.06);
    transition: all 0.3s; text-decoration: none; color: inherit; display: block;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-lighter); }
.module-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;
}
.module-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.module-card p { font-size: 15px; color: var(--gray-600); line-height: 1.6; }
.module-card .module-features { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.module-tag {
    font-size: 12px; font-weight: 500; padding: 4px 10px;
    border-radius: 6px; background: var(--lavender-light); color: var(--purple-mid);
}
.module-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
    font-size: 14px; font-weight: 600; color: var(--purple-mid); text-decoration: none;
}
.module-link:hover { color: var(--orange); }

/* icon color variations */
.icon-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: var(--purple-mid); }
.icon-orange { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); color: #E8850C; }
.icon-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.icon-green { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.icon-pink { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #DB2777; }
.icon-indigo { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); color: #4338CA; }
.icon-amber { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #B45309; }
.icon-teal { background: linear-gradient(135deg, #CCFBF1, #99F6E4); color: #0D9488; }
.icon-rose { background: linear-gradient(135deg, #FFE4E6, #FECDD3); color: #E11D48; }

/* ===== FEATURE DETAIL SECTIONS ===== */
.feature-row {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-text h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.feature-text p { font-size: 16px; color: var(--gray-600); margin-bottom: 20px; }
.feature-list { list-style: none; }
.feature-list li {
    padding: 8px 0; padding-left: 28px; position: relative; font-size: 15px; color: var(--gray-700);
}
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.feature-visual {
    background: var(--lavender-light); border-radius: var(--radius); padding: 40px;
    display: flex; align-items: center; justify-content: center; min-height: 340px;
}
.feature-visual-content { text-align: center; font-size: 64px; }
.feature-visual:has(.feature-visual-dark) {
    background: transparent; padding: 0; border-radius: 0;
}
.feature-visual-dark {
    background: linear-gradient(135deg, #1E1B4B, #2D1B69);
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.08);
    color: #fff; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    min-height: 340px; display: flex; align-items: stretch;
}

/* ===== WORKFLOW DEMO ===== */
.workflow-demo {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); max-width: 500px; margin: 0 auto;
}
.workflow-node {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; font-weight: 500;
}
.workflow-node .node-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.node-trigger { background: #FEF3C7; } .node-trigger .node-icon { background: #F59E0B; color: white; }
.node-wait { background: #DBEAFE; } .node-wait .node-icon { background: #3B82F6; color: white; }
.node-condition { background: #E0E7FF; } .node-condition .node-icon { background: #6366F1; color: white; }
.node-action { background: #D1FAE5; } .node-action .node-icon { background: #10B981; color: white; }
.workflow-arrow { text-align: center; color: var(--gray-400); font-size: 18px; margin: 4px 0; }

/* ===== SEGMENTS ===== */
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.segment-card {
    background: var(--white); border-radius: var(--radius); padding: 40px 32px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(45,27,105,0.06); transition: all 0.3s;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.segment-icon { font-size: 48px; margin-bottom: 20px; }
.segment-card h3 { font-size: 22px; margin-bottom: 12px; }
.segment-card p { font-size: 15px; color: var(--gray-600); margin-bottom: 20px; }
.segment-pains { text-align: left; }
.segment-pains li {
    list-style: none; padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--gray-600);
}
.segment-pains li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ===== COMPARISON TABLE ===== */
.comparison-wrapper { overflow-x: auto; border: 2px solid var(--purple-deep); border-radius: var(--radius); }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.comparison-table thead th { background: var(--white); color: var(--purple-deep); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--purple-deep); }
.comparison-table tbody tr:hover { background: var(--lavender-light); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* ===== JOURNEY ===== */
.journey-timeline { max-width: 700px; margin: 0 auto; position: relative; }
.journey-timeline::before {
    content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--purple-lighter), var(--orange)); border-radius: 2px;
}
.journey-step { display: flex; gap: 24px; padding: 16px 0; position: relative; }
.journey-dot {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    flex-shrink: 0; z-index: 1; box-shadow: 0 0 0 6px var(--white);
}
.journey-content h4 { font-size: 17px; margin-bottom: 4px; }
.journey-content p { font-size: 14px; color: var(--gray-600); }

/* ===== DIFFERENTIALS ===== */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.diff-card {
    padding: 32px 28px; border-radius: var(--radius);
    border: 1px solid rgba(45,27,105,0.06); background: var(--white); transition: all 0.3s;
}
.diff-card:hover { border-color: var(--purple-lighter); box-shadow: var(--shadow); }
.diff-card .diff-number {
    width: 40px; height: 40px; border-radius: 10px; background: var(--lavender-bg);
    color: var(--purple-mid); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.diff-card h3 { font-size: 18px; margin-bottom: 8px; }
.diff-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 100%);
    padding: 80px 24px; text-align: center;
}
.cta-section h2 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 600px; margin: 0 auto 32px; }
.cta-section .btn-primary { font-size: 18px; padding: 16px 40px; }

/* ===== FOOTER ===== */
.footer { background: var(--white); padding: 48px 24px; text-align: center; border-top: 1px solid var(--gray-200); }
.footer p { color: var(--gray-600); font-size: 14px; }
.footer a { color: var(--purple-mid); text-decoration: none; }
.footer a:hover { color: var(--purple-deep); }
.footer-logo { height: 64px; margin-bottom: 16px; }

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
    color: var(--purple-mid); text-decoration: none; margin-bottom: 32px;
}
.back-link:hover { color: var(--orange); }

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, #1E1B4B 0%, #2D1B69 40%, #4A2FA0 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%); pointer-events: none;
}
.page-hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%); pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; margin-bottom: 16px; color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 680px; margin: 0 auto; }
.page-hero .back-link { color: rgba(255,255,255,0.6); }
.page-hero .back-link:hover { color: #F5A623; }
.page-hero .section-label, .page-hero .page-hero-label {
    display: inline-block; color: #F5A623; font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: fixed;
        top: 90px; left: 0; right: 0; background: var(--white);
        padding: 16px 24px; box-shadow: var(--shadow-lg); gap: 4px;
        max-height: calc(100vh - 90px); overflow-y: auto;
    }
    .nav-toggle { display: block; }
    .nav-mega-menu {
        position: static !important; box-shadow: none !important; border-top: none !important;
    }
    .nav-mega-inner {
        grid-template-columns: 1fr !important; gap: 16px !important; padding: 16px 0 !important;
    }
    .nav-mega-intro { display: none; }
    .nav-mega-item { padding: 10px 8px !important; }
    .nav-mega-icon { width: 32px; height: 32px; min-width: 32px; font-size: 14px; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-text { order: 1; }
    .feature-row.reverse .feature-visual { order: 2; }
    .segments-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 32px; }
    .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero { padding: 110px 16px 60px; }
    .page-hero { padding: 110px 16px 40px; }
    section { padding: 60px 16px; }
    .hero-stat-number { font-size: 28px; }
}

/* ===== PUZZLE SINERGIA ===== */
.puzzle-section { padding: 80px 24px; background: linear-gradient(135deg, #1E1B4B 0%, #2D1B69 50%, #4A2FA0 100%); }
.puzzle-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.puzzle-label { color: #F5A623; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.puzzle-title { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 8px; }
.puzzle-subtitle { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.puzzle-grid { display: flex; align-items: stretch; justify-content: center; gap: 0; }
.puzzle-piece {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; padding: 32px 28px; width: 260px; text-decoration: none; color: #fff;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s; position: relative;
}
.puzzle-piece:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.puzzle-piece.puzzle-main {
    background: rgba(255,255,255,0.12); border: 2px solid #F5A623; width: 300px; z-index: 2;
    box-shadow: 0 0 40px rgba(245,166,35,0.2);
}
.puzzle-piece.puzzle-main:hover { box-shadow: 0 0 50px rgba(245,166,35,0.3); }
.puzzle-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px;
}
.puzzle-piece.puzzle-main .puzzle-icon { width: 64px; height: 64px; font-size: 28px; }
.puzzle-piece h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #E2E8F0; }
.puzzle-piece.puzzle-main h4 { font-size: 20px; color: #F5A623; }
.puzzle-piece p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; margin: 0; }
.puzzle-piece.puzzle-main p { font-size: 14px; color: rgba(255,255,255,0.85); }
.puzzle-piece .puzzle-badge {
    display: inline-block; background: #F5A623; color: #1E1B4B; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.puzzle-connector {
    display: flex; align-items: center; justify-content: center; width: 48px; flex-shrink: 0; z-index: 3;
}
.puzzle-connector-icon {
    width: 40px; height: 40px; background: #F5A623; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: #1E1B4B; font-size: 16px; font-weight: 800;
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}
.puzzle-footer-text { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 32px; font-style: italic; }
@media (max-width: 900px) {
    .puzzle-grid { flex-direction: column; align-items: center; gap: 0; }
    .puzzle-piece, .puzzle-piece.puzzle-main { width: 100%; max-width: 340px; }
    .puzzle-connector { width: auto; height: 36px; transform: none; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
