/* ===================================
   LEE SAMSON - AI & Automation
   Complete Stylesheet
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-logo: 'Birthstone', cursive;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.nav-links a.btn-nav {
    padding: 8px 24px;
    font-size: 14px;
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    border-radius: var(--radius);
}

.nav-links a.btn-nav:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* --- Section Common --- */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* Section CTAs (shared across all sections) */
.section-ctas {
    text-align: center;
    margin-top: 48px;
}

.section-ctas p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-ctas-dark p {
    color: var(--gray-400);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    color: var(--gray-300);
    border-color: var(--gray-500);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-handwriting {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: var(--gray-900);
    line-height: 1;
    font-weight: 400;
}

.footer .logo-handwriting {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

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

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-chevron {
    transition: transform var(--transition);
}

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

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 8px 0;
    list-style: none;
    z-index: 100;
}

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

.nav-dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--gray-600);
    border-radius: 0;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Standout nav buttons — Calculator & AI Assistant */
.nav-btn-item {
    margin-left: 6px;
}

.nav-links a.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-links a.nav-btn svg {
    flex-shrink: 0;
}

.nav-links a.nav-btn-calc {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.nav-links a.nav-btn-calc:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.nav-links a.nav-btn-ai {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.nav-links a.nav-btn-ai:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #e8f0fe 50%, #f0f4ff 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 24px;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.proof-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

/* Hero visual / graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.graphic-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.graphic-card .card-icon {
    font-size: 1.5rem;
}

.graphic-card .card-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.card-1 {
    top: 20px;
    left: 10px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.card-3 {
    bottom: 20px;
    left: 40px;
    animation-delay: -4s;
}

.graphic-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

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

.card-2 {
    animation-name: float2;
}

@keyframes float2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 12px)); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.6); opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* Hero 3D Tag Sphere */
.tag-sphere-wrap {
    width: 480px;
    height: 480px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.tag-sphere-wrap:active {
    cursor: grabbing;
}

.tag-sphere-wrap .sphere-tag {
    position: absolute;
    will-change: transform;
    white-space: nowrap;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    pointer-events: auto;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tag-sphere-wrap .sphere-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
}

.tag-sphere-wrap .sphere-tag[data-style="primary"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tag-sphere-wrap .sphere-tag[data-style="primary"]:hover {
    background: var(--primary-dark);
}

.tag-sphere-wrap .sphere-tag[data-style="accent"] {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.tag-sphere-wrap .sphere-tag[data-style="outline"] {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.sphere-hint {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--gray-400);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.5s;
}

@media (max-width: 1024px) {
    .tag-sphere-wrap {
        width: 340px;
        height: 340px;
    }

    .sphere-hint {
        bottom: -4px;
    }
}

@media (max-width: 480px) {
    .tag-sphere-wrap {
        width: 280px;
        height: 280px;
    }

    .tag-sphere-wrap .sphere-tag {
        font-size: 0.72rem;
        padding: 6px 14px;
    }
}

/* ===================================
   PAIN POINTS
   =================================== */
.pain-points {
    padding: 50px 0;
    background: var(--white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pain-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    background: var(--white);
}

.pain-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.pain-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.pain-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

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

.pain-cta p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ===================================
   SERVICES / PRICING
   =================================== */
.services {
    padding: 50px 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    padding-top: 48px;
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.pricing-model {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 6px;
}

.pricing-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 20px;
}

.pricing-includes {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.pricing-includes li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 22px;
}

.pricing-includes li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-ideal {
    font-size: 0.82rem;
    color: var(--gray-500);
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.pricing-ideal strong {
    color: var(--gray-700);
}

.pricing-highlight {
    font-size: 0.85rem;
    padding: 14px;
    background: #fef3c7;
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: var(--gray-700);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
}

.pricing-note p {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.pricing-note a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ===================================
   SAVINGS CALCULATOR
   =================================== */
.calculator {
    padding: 50px 0;
    background: var(--white);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-inputs {
    position: sticky;
    top: 90px;
}

/* Task row */
.calc-task-row {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.calc-task-name {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
}

.calc-task-name:focus {
    border-color: var(--primary);
}

.calc-task-name::placeholder {
    color: var(--gray-400);
    font-weight: 500;
}

.calc-task-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.calc-task-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

.calc-task-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-field input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--dark);
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.calc-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.calc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-field select {
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.calc-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-field .currency-prefix {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Add task button */
.calc-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--gray-500);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.calc-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* Efficiency slider */
.calc-efficiency {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.calc-efficiency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-efficiency-header label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.calc-efficiency-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.calc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: linear-gradient(to right, var(--gray-200), var(--primary));
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

.calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--gray-400);
}

/* Results panel */
.calc-results {
    position: sticky;
    top: 90px;
}

.calc-result-card {
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
}

.calc-result-card.current {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.calc-result-card.savings {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.calc-result-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.calc-result-card.current .calc-result-label {
    color: var(--gray-500);
}

.calc-result-card.savings .calc-result-label {
    color: rgba(255,255,255,0.7);
}

.calc-result-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.calc-result-card.current .calc-result-number {
    color: var(--dark);
}

.calc-result-sub {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.calc-result-card.current .calc-result-sub {
    color: var(--gray-500);
}

.calc-result-card.savings .calc-result-sub {
    color: rgba(255,255,255,0.8);
}

.calc-result-hours {
    font-size: 0.88rem;
    font-weight: 600;
}

.calc-result-card.current .calc-result-hours {
    color: var(--gray-400);
}

.calc-result-card.savings .calc-result-hours {
    color: rgba(255,255,255,0.7);
}

/* Split two-column result layout */
.calc-result-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.calc-result-col {
    text-align: center;
}

.calc-result-col .calc-result-number {
    font-size: 2.25rem;
    margin-bottom: 2px;
}

.calc-result-col .calc-result-sub {
    margin-bottom: 0;
}

.calc-result-divider {
    width: 1px;
    height: 60px;
    background: var(--gray-200);
}

.calc-result-card.savings .calc-result-divider {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
    .calc-result-split {
        grid-template-columns: 1fr;
    }

    .calc-result-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
    }
}

/* Breakdown */
.calc-breakdown {
    margin-bottom: 20px;
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.calc-breakdown-name {
    color: var(--gray-600);
    font-weight: 500;
}

.calc-breakdown-cost {
    font-weight: 700;
    color: var(--dark);
}

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

/* Calculator tooltips */
.calc-tooltip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: none;
    animation: tooltipFadeIn 0.4s ease;
    position: relative;
}

.calc-tooltip.visible {
    display: block;
}

.calc-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
}

.slider-tooltip {
    margin-bottom: 0;
    margin-top: 8px;
}

.slider-tooltip::after {
    top: -6px;
    bottom: auto;
    border-top: none;
    border-bottom: 6px solid var(--primary);
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Savings card pulse animation */
.calc-result-card.savings.has-result {
    animation: savingsPulse 2.5s ease-in-out infinite;
    position: relative;
}

.calc-result-card.savings.has-result::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #f59e0b, #2563eb);
    background-size: 300% 100%;
    animation: borderRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}

.calc-result-card.savings.has-result > * {
    position: relative;
    z-index: 1;
}

@keyframes savingsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 24px 4px rgba(37, 99, 235, 0.15); }
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* CTA button — only appears when calculator has results */
#calcDiscoverBtn {
    cursor: pointer;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 12px;
    isolation: isolate;
}

/* Grow + glow pulse */
#calcDiscoverBtn.pulse {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* Rotating gradient border — use @property for smooth angle animation */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#calcDiscoverBtn.pulse {
    --border-angle: 0deg;
    background:
        linear-gradient(#2563eb, #2563eb) padding-box,
        conic-gradient(from var(--border-angle), #2563eb, #7c3aed, #ec4899, #f59e0b, #10b981, #2563eb) border-box;
    color: #fff;
    border: 3px solid transparent;
    animation: ctaPulse 2s ease-in-out infinite, ctaBorderSpin 2.5s linear infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 28px 8px rgba(37, 99, 235, 0.3);
    }
}

@keyframes ctaBorderSpin {
    to { --border-angle: 360deg; }
}

.calc-cta p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-inputs,
    .calc-results {
        position: static;
    }

    .calc-result-number {
        font-size: 2.25rem;
    }
}

/* ===================================
   WHAT I BUILD (Hover-Reveal Cards)
   =================================== */
.what-i-build {
    padding: 50px 0;
    background: var(--white);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stack-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
}

.stack-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stack-card-top {
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.stack-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stack-card h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.stack-card .preview {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.stack-card-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.stack-card:hover .stack-card-reveal {
    max-height: 200px;
}

.stack-card-reveal-inner {
    padding: 20px 28px;
}

.stack-card-reveal p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.reveal-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.reveal-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--primary-bg);
    color: var(--primary);
}

.build-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works {
    padding: 50px 0;
    background: var(--dark);
    color: var(--white);
}

.how-it-works .section-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.how-it-works .section-header h2 {
    color: var(--white);
}

.how-it-works .section-desc {
    color: var(--gray-400);
}

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

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
}

.step-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.7;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--gray-700);
    margin-left: 27px;
    margin: 8px 0 8px 27px;
}

.steps-cta {
    text-align: center;
    margin-top: 60px;
}

/* ===================================
   CASE STUDIES SLIDER
   =================================== */
.use-cases {
    padding: 50px 0;
    background: var(--gray-50);
}

/* Slider container */
.cases-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.cases-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-slide {
    min-width: 100%;
    padding: 0 4px;
}

/* Card inside slide */
.case-card-v2 {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-md);
}

.case-card-left {
    display: flex;
    flex-direction: column;
}

/* Header with emoji + industry */
.case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.case-emoji {
    font-size: 1.5rem;
}

.case-industry-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

/* Big result badge */
.case-result-badge {
    padding: 32px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.result-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 6px;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Problem / Solution blocks */
.case-body {
    padding: 28px;
    flex: 1;
}

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

.case-block:last-child {
    margin-bottom: 0;
}

.case-block-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.case-block.problem .case-block-label {
    background: #fef2f2;
    color: #dc2626;
}

.case-block.solution .case-block-label {
    background: #ecfdf5;
    color: #059669;
}

.case-block p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Quote */
.case-quote {
    padding: 24px 28px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.case-quote blockquote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    border-left: 3px solid var(--primary-light);
}

.case-quote cite {
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    color: var(--gray-400);
    display: block;
    padding-left: 18px;
}

/* Slider controls */
.cases-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 8px;
}

.cases-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
}

.cases-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    box-shadow: var(--shadow-md);
}

.cases-dots {
    display: flex;
    gap: 8px;
}

.cases-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.cases-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.cases-dot:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .case-card-v2 {
        grid-template-columns: 1fr;
    }

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

    .case-body {
        padding: 20px;
    }
}

/* ===================================
   WHY ME
   =================================== */
.why-me {
    padding: 50px 0;
    background: var(--dark);
    color: var(--white);
}

.why-me .section-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.why-me .section-header h2 {
    color: var(--white);
}

.why-me .section-desc {
    color: var(--gray-400);
}

.why-me-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.why-me-card {
    border-radius: var(--radius-xl);
    padding: 36px 32px;
}

.why-me-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.why-me-card ul {
    list-style: none;
}

.why-me-card li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.55;
}

.why-me-card li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.you-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.you-card h3 {
    color: var(--accent);
}

.you-card li {
    color: var(--gray-300);
}

.you-card li::before {
    content: "\2605";
    color: var(--accent);
}

.me-card {
    background: var(--primary);
    border: 1px solid var(--primary-light);
}

.me-card h3 {
    color: var(--white);
}

.me-card li {
    color: rgba(255,255,255,0.9);
}

.me-card li::before {
    content: "\2713";
    color: rgba(255,255,255,0.7);
}

.why-me-result {
    margin-bottom: 48px;
}

.why-me-result-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
}

.result-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.result-content h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.result-content p {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.result-content p:last-child {
    margin-bottom: 0;
}

.why-me-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.proof-card {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
}

.proof-card-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
    line-height: 1;
}

.proof-card-text {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.4;
}

.why-me .section-ctas p {
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .why-me-grid {
        grid-template-columns: 1fr;
    }

    .why-me-proof {
        grid-template-columns: 1fr;
    }

    .why-me-result-inner {
        flex-direction: column;
    }
}

/* ===================================
   BENEFITS
   =================================== */
.benefits {
    padding: 50px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f3ff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.benefit-icon-wrap {
    margin-bottom: 16px;
}

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

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 16px;
}

.benefit-stat {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 14px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: inline-block;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   CLIENTS & SECTORS
   =================================== */
.clients {
    padding: 50px 0;
    background: var(--gray-50);
}

.featured-clients {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-client {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.featured-client img.client-logo {
    display: block;
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all var(--transition);
}

.featured-client img.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.featured-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 48px;
    font-weight: 500;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sector-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
    text-align: center;
}

.sector-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sector-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.sector-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.sector-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===================================
   TECH STACK / MARQUEE
   =================================== */
.tech-stack {
    padding: 50px 0;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.tech-stack .section-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.tech-stack .section-header h2 {
    color: var(--white);
}

.tech-stack .section-desc {
    color: var(--gray-400);
}

.marquee-wrap {
    margin-bottom: 48px;
}

.marquee-row {
    overflow: hidden;
    margin-bottom: 16px;
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-row.reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    margin: 0 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.marquee-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   GRADIENT BORDER CARDS (Clients/Sectors)
   =================================== */
.gradient-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gradient-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--white);
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
    text-align: center;
}

.gradient-card:hover {
    transform: translateY(-4px);
}

.gradient-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

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

.gradient-card .sector-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: block;
}

.gradient-card h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.gradient-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .gradient-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gradient-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-clients {
        gap: 40px;
    }

    .featured-client img.client-logo {
        height: 40px;
        max-width: 140px;
    }

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

@media (max-width: 480px) {
    .gradient-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PARTICLE NETWORK BACKGROUND
   =================================== */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg > .container {
    position: relative;
    z-index: 1;
}

.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   ABOUT
   =================================== */
.about {
    padding: 50px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.about-photo {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
}

.about-content .section-tag {
    display: inline-block;
}

.about-content h2 {
    font-size: 2.25rem;
    margin: 12px 0 20px;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--gray-600);
}

.about-highlights {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.highlight-icon {
    font-size: 1.1rem;
}

/* ===================================
   AI ASSISTANT / CHAT
   =================================== */
.ai-assistant {
    padding: 40px 0 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f3ff 100%);
}

.ai-assistant .container {
    max-width: 1100px;
}

.ai-assistant .section-header {
    margin-bottom: 32px;
}

/* Two option cards above chat */
.ai-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto 28px;
}

.ai-option {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.ai-option-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.ai-option-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.ai-option-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.55;
}

/* Rotating example prompt */
#exampleText {
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.55;
    transition: opacity 0.3s ease;
}

/* Prompt navigation arrows */
.prompt-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
}

.prompt-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
}

.prompt-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.prompt-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

@media (max-width: 768px) {
    .ai-options {
        grid-template-columns: 1fr;
    }
}

.chat-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: all 0.5s ease;
}

.chat-container.expanded {
    height: 80vh;
    scroll-margin-top: 90px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: messageIn 0.3s ease-out;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

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

.message-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.assistant .message-avatar {
    background: var(--primary);
    color: var(--white);
}

.user .message-avatar {
    background: var(--gray-200);
    color: var(--gray-600);
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.6;
}

.assistant .message-bubble {
    background: var(--gray-100);
    color: var(--gray-700);
    border-bottom-left-radius: 4px;
}

.user .message-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-bubble p + p {
    margin-top: 10px;
}

.chat-input-area {
    padding: 16px 28px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.chat-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 8px 8px 8px 16px;
    transition: border-color var(--transition);
}

.chat-input-wrap:focus-within {
    border-color: var(--primary);
}

.chat-input-wrap textarea {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 15px;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
    padding: 6px 0;
    color: var(--gray-700);
}

.chat-input-wrap textarea::placeholder {
    color: var(--gray-400);
}

.chat-send {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.chat-send:hover {
    background: var(--primary-dark);
}

.chat-send:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.chat-disclaimer {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 10px;
}

.chat-disclaimer a {
    color: var(--primary);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 4px;
}

.typing-indicator span {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat contact capture form */
.chat-contact-form {
    padding: 20px 28px 24px;
    border-top: 2px solid var(--primary);
    background: var(--primary-bg);
    animation: slideDownIn 0.4s ease;
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.chat-form-header p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.chat-form-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-form-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.chat-form-toggle .toggle-icon-up { display: none; }
.chat-contact-form.collapsed .chat-form-toggle .toggle-icon-down { display: none; }
.chat-contact-form.collapsed .chat-form-toggle .toggle-icon-up { display: block; }

.chat-contact-form .chat-form-body {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.chat-contact-form.collapsed .chat-form-body {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.chat-contact-form.collapsed .chat-form-header p {
    margin-bottom: 0;
}

.chat-contact-form.collapsed {
    padding-bottom: 16px;
}

.chat-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-contact-form input {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    color: var(--gray-700);
    background: var(--white);
}

.chat-contact-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-contact-form input::placeholder {
    color: var(--gray-400);
}

.chat-contact-form .btn {
    margin-top: 4px;
}

.chat-form-skip {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 10px;
}

.chat-form-skip a {
    color: var(--primary);
}

.chat-form-success {
    text-align: center;
    padding: 8px 0;
}

.chat-form-success p {
    font-size: 0.9rem;
    color: var(--success);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .chat-form-row {
        grid-template-columns: 1fr;
    }

    .chat-contact-form {
        padding: 16px;
    }
}

/* ===================================
   CONTACT
   =================================== */
.contact {
    padding: 50px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-content .section-tag {
    display: inline-block;
}

.contact-content h2 {
    font-size: 2.25rem;
    margin: 12px 0 20px;
}

.contact-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 36px;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-benefit > .benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    line-height: 1.4;
}

.contact-benefit strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-benefit p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-size: 1.35rem;
    margin-bottom: 28px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group .optional {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    color: var(--gray-700);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

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

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 12px;
}

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

.form-success .success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.form-success h3 {
    color: var(--success);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}


.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-contact .btn-outline {
    color: var(--gray-300);
    border-color: var(--gray-600);
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===================================
   FLOATING CHAT WIDGET
   =================================== */
.chat-widget-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.chat-widget-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.widget-icon-close {
    display: none;
}

.widget-badge {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    background: var(--white);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.chat-widget-toggle:hover .widget-badge {
    opacity: 1;
}

/* ===================================
   ANIMATIONS (scroll reveal)
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-proof {
        justify-content: center;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .build-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .about-highlights {
        align-items: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--gray-200);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li a {
        padding: 8px 16px;
    }

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

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

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

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-proof {
        flex-direction: column;
        gap: 12px;
    }

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

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

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

    .chat-container {
        height: 450px;
    }

    .chat-container.expanded {
        max-width: 100%;
        height: 75vh;
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .section-header h2 {
        font-size: 1.65rem;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-input-area {
        padding: 12px 16px 16px;
    }

    .chat-message {
        max-width: 92%;
    }
}
