/* ===== Variables ===== */
:root {
    --color-primary: #ff6b35;
    --color-primary-dark: #e85a2b;
    --color-primary-light: #ff8c5a;
    --color-accent: #c8f038;
    --color-accent-dark: #b5dd2f;
    --color-black: #1a1a2e;
    --color-dark: #16213e;
    --color-gray-900: #2d3748;
    --color-gray-800: #4a5568;
    --color-gray-700: #718096;
    --color-gray-600: #a0aec0;
    --color-gray-500: #cbd5e0;
    --color-gray-400: #e2e8f0;
    --color-gray-300: #edf2f7;
    --color-gray-200: #f7fafc;
    --color-gray-100: #ffffff;
    --color-white: #ffffff;
    
    --font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --max-width: 1280px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

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

ul {
    list-style: none;
}

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

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    background-color: var(--color-white);
    box-shadow: none;
}

/* logo switching handled above */

.header-scrolled .nav-link {
    color: var(--color-gray-800);
}

.header-scrolled .nav-link:hover {
    color: var(--color-black);
    background-color: var(--color-gray-200);
}

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

.header-scrolled .btn-outline-light:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

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

.logo-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

.header-scrolled .logo-white {
    display: none;
}

.header-scrolled .logo-black {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link .chevron {
    opacity: 0.6;
}

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

.lang-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-selector:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.nav-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.nav-login:hover {
    color: var(--color-white);
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-gray-700);
}

.btn-secondary:hover {
    background-color: var(--color-gray-100);
    color: var(--color-black);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-gray-300);
}

.btn-outline:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-black);
    font-weight: 600;
}

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

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

.btn-white:hover {
    background-color: var(--color-gray-100);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 140px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background:
        repeating-linear-gradient(
            58deg,
            transparent          0px,
            transparent          38px,
            rgba(0,0,0,0.07)     38px,
            rgba(0,0,0,0.07)     58px,
            transparent          58px,
            transparent          105px,
            rgba(0,0,0,0.05)     105px,
            rgba(0,0,0,0.05)     118px,
            transparent          118px,
            transparent          160px,
            rgba(0,0,0,0.10)     160px,
            rgba(0,0,0,0.10)     170px,
            transparent          170px,
            transparent          220px,
            rgba(0,0,0,0.06)     220px,
            rgba(0,0,0,0.06)     248px,
            transparent          248px,
            transparent          280px,
            rgba(0,0,0,0.04)     280px,
            rgba(0,0,0,0.04)     310px
        ),
        linear-gradient(140deg, #E6193F 0%, #c9152f 50%, #a01025 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 30% 40%, rgba(255,255,255,0.07) 0%, transparent 65%);
    pointer-events: none;
}


.hero .container {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 720px;
}

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

.hero-scroll-down {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    text-decoration: none;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-accent {
    color: rgba(255,255,255,0.75);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: badgePulse 2s ease-in-out infinite;
}

.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.2s;
}

.btn-ghost-hero:hover {
    background: rgba(255,255,255,0.18);
}

.hero-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    align-self: center;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Hero Visual - Contact Form */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -40px;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 32px 64px -16px rgba(0,0,0,0.22),
        0 8px 24px -8px rgba(0,0,0,0.12);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.form-card-header {
    margin-bottom: 28px;
}

.form-card-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E6193F;
    margin-bottom: 8px;
}

.form-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f0f0f;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.form-card-sub {
    font-size: 13px;
    color: rgba(0,0,0,0.45);
    margin: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0,0,0,0.55);
    letter-spacing: 0.01em;
}

.form-field input,
.form-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    background: #fafafa;
    color: #0f0f0f;
    transition: border-color 0.15s, background 0.15s;
    outline: none;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #E6193F;
    background: #fff;
}

.form-field input::placeholder {
    color: rgba(0,0,0,0.25);
}

.btn-form-submit {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    background: #E6193F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.btn-form-submit:hover {
    background: #c9152f;
}

.btn-form-submit:active {
    transform: scale(0.99);
}

.form-privacy {
    text-align: center;
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    margin: 0;
}

.form-group input::placeholder {
    color: var(--color-gray-500);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select:invalid {
    color: var(--color-gray-500);
}

.btn-full {
    width: 100%;
}

/* ===== Logos ===== */
.logos {
    padding: 60px 0;
    background-color: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.logos-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

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

.logo-item {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-400);
    transition: color 0.2s;
}

.logo-item:hover {
    color: var(--color-gray-600);
}

/* ===== Automation Section - Premium SaaS ===== */
.automation-section {
    padding: 100px 0;
    background: #ffffff;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

/* Decorative glows removed for clean white background */

.automation-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Badge */
.automation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.automation-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Heading */
.automation-text h2 {
    color: var(--color-text);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.automation-title-accent {
    background: linear-gradient(90deg, #c4b5fd, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.automation-text p {
    color: rgba(0, 0, 0, 0.55);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Feature list */
.automation-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.automation-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
}

.automation-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    flex-shrink: 0;
}

/* CTAs */
.automation-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.btn-primary-dark {
    padding: 12px 24px;
    background: #fff;
    color: #18181b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary-dark:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-ghost-dark {
    padding: 12px 24px;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: background 0.2s;
}

.btn-ghost-dark:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Stats */
.automation-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.automation-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.automation-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.automation-stat-label {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
}

.automation-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.12);
}

/* Flow Canvas - Premium Design */
.automation-flow-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.flow-canvas {
    background: transparent;
    border-radius: var(--radius-xl);
    width: 580px;
    height: 540px;
    position: relative;
    border: none;
    overflow: visible;
}

/* Celebration Popup */
.flow-celebration {
    position: absolute;
    top: 265px;
    left: 320px;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flow-celebration.show {
    opacity: 1;
    transform: translate(-50%, -60%);
}

.celebration-content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
    text-align: center;
    min-width: 140px;
}

.celebration-icon {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
    animation: bounce 0.6s ease;
}

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

.celebration-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 2px 0;
}

.celebration-sub {
    font-size: 11px;
    color: rgba(0,0,0,0.5);
}

/* SVG Connections Layer */
.flow-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* Flow Path Animations */
.flow-path-base {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.5;
}

.flow-path-animated {
    fill: none;
    stroke: rgba(0, 0, 0, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    animation: flowDash 0.8s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Glowing particle */
.flow-particle {
    filter: drop-shadow(0 0 6px #fbbf24) drop-shadow(0 0 12px #f59e0b);
}

/* Glow effects */
.flow-glow-amber {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    filter: blur(30px);
    animation: glowPulse 4s ease-in-out infinite;
}

.flow-glow-purple {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    filter: blur(25px);
    animation: glowPulse 5s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}


/* Flow Nodes - Premium SaaS Design */
.flow-node {
    width: 220px;
    background: #fff;
    border: 1px solid #e7e5e4;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: absolute;
    z-index: 2;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-node:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Trigger Node (Dark) - System Design */
.flow-node.flow-trigger {
    background: #18181b;
    border: 2px solid #18181b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.flow-node.flow-trigger .node-header {
    border-bottom: 1px solid #3f3f46;
}

.flow-node.flow-trigger .node-header-icon {
    color: #fbbf24;
}

.flow-node.flow-trigger .node-header-label {
    color: #71717a;
}

.flow-node.flow-trigger .node-header-badge {
    color: #71717a;
}

.flow-node.flow-trigger .node-title {
    color: #fff;
}

.flow-node.flow-trigger .node-desc {
    color: #a1a1aa;
}

/* Regular Nodes - System Design */
.flow-node:not(.flow-trigger) .node-header {
    background: #fafaf9;
    border-bottom: 1px solid #e7e5e4;
}

.flow-node:not(.flow-trigger) .node-header-icon {
    color: #52525b;
}

.flow-node:not(.flow-trigger) .node-header-label {
    color: #52525b;
}

.flow-node:not(.flow-trigger) .node-title {
    color: #18181b;
}

.flow-node:not(.flow-trigger) .node-desc {
    color: #78716c;
}

/* Node inner clip */
.node-inner {
    overflow: hidden;
    border: inherit;
}

/* Node Header - System Design */
.node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.node-header-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.node-header-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex: 1;
}

.node-header-badge {
    font-size: 10px;
    font-weight: 500;
}

.node-header-time {
    font-size: 10px;
    font-weight: 500;
    color: #a8a29e;
    margin-left: auto;
}

/* Node Body - System Design */
.node-body {
    padding: 10px 12px;
}

.node-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.node-desc {
    font-size: 10px;
    line-height: 1.5;
}

/* Handles - System Exact Design (10x10px square) */
.node-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #18181b;
    border: 2px solid #fff;
    border-radius: 0 !important;
    z-index: 3;
}

/* Target handle on left */
.node-handle.target { left: -6px; top: 50%; margin-top: -5px; }
/* Source handle on right */
.node-handle.source { right: -6px; top: 50%; margin-top: -5px; }
/* Target on left for end node */
.node-handle.target-left { left: -6px; top: 50%; margin-top: -5px; }

/* Condition handles - exact positions like system */
.node-handle.source-yes { right: -6px; top: 42px; }
.node-handle.source-no { right: -6px; top: 72px; }

/* Branch Markers - System Design */
.branch-marker {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    right: 12px;
}

.branch-marker.yes { top: 39px; right: 18px; color: #71717a; }
.branch-marker.no { top: 69px; right: 18px; color: #71717a; }


/* ===== Features ===== */
.features {
    padding: 100px 0;
    background-color: var(--color-white);
}

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

.section-badge {
    display: inline-flex;
    padding: 6px 14px;
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-gray-600);
}

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

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

.feature-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-100);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray-600);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 100px 0;
    background: #ffffff;
}

.testimonials-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.testimonials-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(230, 25, 63, 0.08);
    border: 1px solid rgba(230, 25, 63, 0.15);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #E6193F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.testimonials-header h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--color-black);
}

.testimonials-header p {
    font-size: 17px;
    color: rgba(0,0,0,0.55);
}

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

.testimonial-card {
    padding: 32px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 16px -4px rgba(0,0,0,0.08);
}

.card-green {
    background: #c8fae3;
}

.card-pink {
    background: #ffd6e3;
}

.card-purple {
    background: #e6e1fc;
}

.testimonial-stars {
    font-size: 16px;
    color: #fbbf24;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(0,0,0,0.75);
    flex: 1;
}

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

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.6);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
}

.testimonial-info span {
    font-size: 13px;
    color: rgba(0,0,0,0.5);
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--color-gray-400);
    margin-bottom: 32px;
}

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

/* ===== Footer ===== */
.footer {
    padding: 64px 0 32px;
    background-color: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
}

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

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

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin-bottom: 24px;
}

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

.social-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--color-black);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-gray-600);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-200);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-gray-500);
}

.footer-tag {
    font-size: 13px;
    color: var(--color-gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .automation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .automation-text {
        text-align: center;
    }
    
    .automation-features {
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 48px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .automation-text h2 {
        font-size: 28px;
    }
    
    .flow-canvas {
        width: 100%;
        max-width: 400px;
        height: 600px;
        transform: scale(0.85);
    }
    
    .flow-node {
        width: 180px;
    }
    
    .flow-connections {
        transform: scale(0.8);
        transform-origin: top left;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .cta h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .btn-large {
        width: 100%;
    }
}
