/* ============================================
   LOGICORA — AI Predictive Analytics Platform
   Modern Dark Theme with Gradient Accents
   ============================================ */

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

:root {
    /* Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-tertiary: #1A1A25;
    --bg-card: #14141E;
    --bg-card-hover: #1C1C2A;

    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;

    --purple: #6C5CE7;
    --purple-light: #8B7EF8;
    --purple-dark: #4A3DB5;
    --cyan: #00CEFF;
    --cyan-light: #40DFFF;
    --green: #00E676;
    --orange: #FF9F43;
    --pink: #FF6B9D;
    --red: #FF6B6B;
    --blue: #4FC3F7;

    --gradient-primary: linear-gradient(135deg, var(--purple), var(--cyan));
    --gradient-text: linear-gradient(135deg, var(--purple-light), var(--cyan));

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --container-max: 1200px;
    --section-pad: 120px;
    --gap: 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ---- UTILITY CLASSES ---- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--purple);
    background: rgba(108, 92, 231, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block { width: 100%; justify-content: center; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--duration) var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon { flex-shrink: 0; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--duration) var(--ease);
    border-radius: 1px;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.hero-glow--purple {
    background: var(--purple);
    top: -200px;
    left: -100px;
}

.hero-glow--cyan {
    background: var(--cyan);
    top: -100px;
    right: -200px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--purple-light);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---- Dashboard Preview ---- */
.hero-dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.dashboard-window {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    overflow: hidden;
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 92, 231, 0.08);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot--red { background: #FF5F56; }
.dot--yellow { background: #FFBD2E; }
.dot--green { background: #27C93F; }

.window-title {
    margin-left: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-body {
    display: flex;
    min-height: 320px;
}

.dash-sidebar {
    width: 180px;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    cursor: default;
    transition: all var(--duration) var(--ease);
}

.dash-nav-item.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--purple-light);
}

.dash-main {
    flex: 1;
    padding: 20px;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dash-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.dash-card-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dash-card-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dash-card-change {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
}

.dash-card-change.positive {
    color: var(--green);
    background: rgba(0, 230, 118, 0.1);
}

.dash-chart {
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.legend-dot--purple { background: var(--purple); }
.legend-dot--cyan { background: var(--cyan); }

.chart-svg { width: 100%; height: auto; }

/* ==================== TRUSTED ==================== */
.trusted {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
}

.trusted-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 1px;
    transition: opacity var(--duration) var(--ease);
}

.trusted-logo:hover { opacity: 0.8; }

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

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

/* ==================== FEATURES ==================== */
.features {
    padding: var(--section-pad) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

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

.feature-card--highlight {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon--purple { background: rgba(108, 92, 231, 0.12); color: var(--purple-light); }
.feature-icon--cyan { background: rgba(0, 206, 255, 0.12); color: var(--cyan); }
.feature-icon--green { background: rgba(0, 230, 118, 0.12); color: var(--green); }
.feature-icon--orange { background: rgba(255, 159, 67, 0.12); color: var(--orange); }
.feature-icon--pink { background: rgba(255, 107, 157, 0.12); color: var(--pink); }
.feature-icon--blue { background: rgba(79, 195, 247, 0.12); color: var(--blue); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Neural Nodes Animation */
.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.neural-nodes {
    position: relative;
    width: 200px;
    height: 200px;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    animation: nodeFloat 3s ease-in-out infinite;
}

.node--1 { top: 20%; left: 10%; animation-delay: 0s; }
.node--2 { top: 60%; left: 25%; animation-delay: 0.5s; background: var(--cyan); box-shadow: 0 0 20px rgba(0, 206, 255, 0.5); }
.node--3 { top: 30%; left: 50%; animation-delay: 1s; }
.node--4 { top: 70%; left: 65%; animation-delay: 1.5s; background: var(--cyan); box-shadow: 0 0 20px rgba(0, 206, 255, 0.5); }
.node--5 { top: 40%; left: 85%; animation-delay: 2s; }

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.2); }
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding-left: 28px;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    min-width: 60px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Code blocks */
.code-block, .api-response {
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
}

.code-filename {
    margin-left: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.code-block pre, .api-response pre {
    padding: 16px;
    font-size: 0.78rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-block code, .api-response code {
    font-family: 'JetBrains Mono', monospace;
}

.code-keyword { color: var(--purple-light); }
.code-string { color: var(--green); }
.code-comment { color: var(--text-muted); }
.code-number { color: var(--cyan); }

/* Model Cards in Step 2 */
.model-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-card {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.model-card--best {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.05);
}

.model-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--purple);
    color: #fff;
}

.model-name { font-weight: 600; flex-shrink: 0; }
.model-score { color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; }

.model-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.model-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-primary);
    transition: width 1.5s var(--ease);
}

/* ==================== MODELS SECTION ==================== */
.models {
    padding: var(--section-pad) 0;
}

.models-showcase {
    max-width: 960px;
    margin: 0 auto;
}

.model-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.model-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.model-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.model-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.model-tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    animation: fadeIn 0.4s var(--ease);
}

.model-tab-content.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.model-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.model-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.model-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.model-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric-box {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.metric-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.metric-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--duration) var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label.active { color: var(--text-primary); }

.save-badge {
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
}

.toggle-switch {
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all var(--duration) var(--ease);
}

.toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--purple);
    transition: all var(--duration) var(--ease);
}

.toggle-switch.active .toggle-knob {
    left: 23px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    align-items: start;
}

.price-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.price-card--popular {
    border-color: var(--purple);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-header {
    margin-bottom: 24px;
}

.price-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.price-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 32px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.price-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.price-features li.included {
    color: var(--text-secondary);
}

.price-features li.included::before {
    background-color: rgba(0, 230, 118, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300E676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.price-features li.excluded {
    color: var(--text-muted);
    opacity: 0.5;
}

.price-features li.excluded::before {
    background-color: rgba(255, 255, 255, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%236B6B80' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: var(--section-pad) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.testimonial-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== CTA ==================== */
.cta {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--duration) var(--ease);
}

.social-links a:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card--highlight {
        grid-column: span 2;
        grid-row: span 1;
    }
    .step {
        grid-template-columns: auto 1fr;
    }
    .step-visual {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .hamburger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .dashboard-body {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        overflow-x: auto;
        gap: 4px;
    }

    .dash-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card--highlight {
        grid-column: span 1;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-visual {
        grid-column: span 1;
    }

    .step-connector {
        padding-left: 0;
        justify-content: flex-start;
    }

    .model-tab-content {
        grid-template-columns: 1fr;
    }
    .model-tab-content.active {
        display: grid;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.6rem; }
    .amount { font-size: 2.8rem; }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
}

/* ==================== PAGE HERO (Inner Pages) ==================== */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-secondary);
}

.page-hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(108, 92, 231, 0.12), transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Active nav link on inner pages */
.active-link {
    color: var(--purple) !important;
}

/* ==================== WHY LOGICORA (Home Exclusive) ==================== */
.why-logicora {
    padding: var(--section-pad) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.why-card {
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.why-number {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== EXPLORE PLATFORM (Home Exclusive) ==================== */
.explore-platform {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.explore-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all var(--duration) var(--ease);
}

.explore-card:hover {
    border-color: var(--purple);
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
}

.explore-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explore-icon--purple { background: rgba(108, 92, 231, 0.12); color: #8B7EF8; }
.explore-icon--cyan { background: rgba(0, 206, 255, 0.12); color: #00CEFF; }
.explore-icon--green { background: rgba(0, 230, 118, 0.12); color: #00E676; }
.explore-icon--orange { background: rgba(255, 159, 67, 0.12); color: #FF9F43; }
.explore-icon--pink { background: rgba(255, 107, 157, 0.12); color: #FF6B9D; }

.explore-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

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

.explore-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple);
    transition: gap var(--duration) var(--ease);
}

.explore-card:hover .explore-link {
    gap: 10px;
}

/* ==================== BY THE NUMBERS (Home Exclusive) ==================== */
.by-numbers {
    padding: var(--section-pad) 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.number-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.number-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.number-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.1;
}

.number-label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== FEATURE DETAILS (Features Page) ==================== */
.feature-details {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 56px;
}

.detail-row + .detail-row {
    margin-top: 80px;
}

.detail-row--reverse {
    direction: rtl;
}

.detail-row--reverse > * {
    direction: ltr;
}

.detail-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-card-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.dmc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-mini-card strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.detail-mini-card em {
    color: var(--purple);
    font-style: normal;
}

.dmc-time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.alert-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.alert-dot--yellow { background: #FFD700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.alert-dot--green { background: #00E676; box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }

.alert-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.alert-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==================== INTEGRATIONS (How It Works Page) ==================== */
.integrations-showcase {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    text-align: center;
}

.integration-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.integration-icon {
    font-size: 2rem;
}

.integration-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==================== RESEARCH (Models Page) ==================== */
.research-section {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.research-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.research-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.research-venue {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.research-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

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

/* ==================== FAQ (Pricing Page) ==================== */
.faq-section {
    padding: var(--section-pad) 0;
}

.faq-list {
    max-width: 720px;
    margin: 56px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: var(--purple);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform var(--duration) var(--ease);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== FEATURED TESTIMONIAL ==================== */
.featured-testimonial {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.featured-quote-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 48px 40px;
}

.featured-quote-marks {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.featured-quote-card blockquote {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 32px;
    position: relative;
}

.featured-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.author-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 1rem;
}

.featured-author strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.featured-author span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-company {
    font-size: 0.78rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

.testimonials-grid--full {
    grid-template-columns: repeat(3, 1fr);
}

/* ==================== CASE STUDIES (Testimonials Page) ==================== */
.case-studies {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.case-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.case-stat {
    margin-bottom: 20px;
}

.case-stat-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.case-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.case-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CONTACT ==================== */
.contact {
    padding: var(--section-pad) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--duration) var(--ease);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236B6B80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.contact-info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon--purple { background: rgba(108, 92, 231, 0.12); color: #8B7EF8; }
.contact-info-icon--cyan { background: rgba(0, 206, 255, 0.12); color: #00CEFF; }
.contact-info-icon--green { background: rgba(0, 230, 118, 0.12); color: #00E676; }
.contact-info-icon--orange { background: rgba(255, 159, 67, 0.12); color: #FF9F43; }

.contact-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-social {
    margin-top: 8px;
}

.contact-social h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ==================== OFFICES ==================== */
.offices {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 56px;
}

.office-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.office-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.office-flag {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.office-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.office-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.office-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form success state */
.contact-form-success {
    text-align: center;
    padding: 60px 20px;
}

.contact-form-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.12);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-form-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-form-success p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==================== AUTH POPUP MODALS ==================== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 440px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}

.auth-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.auth-modal-logo {
    text-align: center;
    margin-bottom: 8px;
}

.auth-modal-logo span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-modal .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 6px;
}

.auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-switch a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .auth-modal h2 {
        font-size: 1.25rem;
    }
}

/* ==================== ADDITIONAL RESPONSIVE — New Sections ==================== */
@media (max-width: 1024px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-row,
    .detail-row--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .page-hero { padding: 140px 0 60px; }
    .page-hero-content h1 { font-size: 1.8rem; }

    .why-grid {
        grid-template-columns: 1fr;
    }
    .explore-grid {
        grid-template-columns: 1fr;
    }
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .research-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid--full {
        grid-template-columns: 1fr;
    }
    .featured-quote-card blockquote {
        font-size: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .offices-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}
