:root {
    /* Automation Color Palette — Electric Cyan / Deep Blue */
    --primary: #0f172a;
    --accent: #06b6d4; /* Cyan */
    --accent-light: #67e8f9;
    --accent-secondary: #6366f1; /* Indigo */
    --bg-light: #f0fdfa;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px -12px rgba(6, 182, 212, 0.15);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --radius: 1.25rem;
    --button-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
}

html { scroll-behavior: auto; }
html.is-loaded { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding { padding: 6rem 0; }

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    color: white;
    font-size: 1.05rem;
}

.logo-icon {
    width: 32px; height: 32px;
    background: var(--button-gradient);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

@media (hover: hover) {
    .nav-links a:hover { color: white; }
}

/* BUTTONS */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-accent {
    background: var(--button-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
    }
    .btn-secondary:hover {
        background: var(--bg-light);
        border-color: var(--accent);
        color: var(--accent);
    }
    .btn-accent:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
    }
}

.btn:active {
    transform: translateY(0) scale(0.98);
    opacity: 0.9;
}

/* CARDS */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-premium);
        border-color: rgba(6, 182, 212, 0.3);
    }
}

.card:active { transform: translateY(-2px); }

/* BADGE */
.badge {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 3rem;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.06), transparent 40%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.04), transparent 40%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.hero-img-container {
    position: relative;
}

.hero-img-glow {
    position: absolute;
    top: 10%; left: 10%;
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(99, 102, 241, 0.12) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* DEMO SECTION */
.demo-section {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.12), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
    pointer-events: none;
}

.demo-phone {
    width: 320px;
    height: 580px;
    background: #1e293b;
    border-radius: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    margin: 0 auto;
}

.demo-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 28px;
    background: #1e293b;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.demo-phone-screen {
    padding: 2.5rem 1.25rem 1.25rem;
    height: 100%;
    overflow-y: auto;
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.feature-icon {
    width: 44px; height: 44px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.feature-icon i {
    width: 22px; height: 22px;
}

/* USE CASE GRID */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.usecase-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.usecase-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.usecase-body {
    padding: 1.5rem 2rem 2rem;
}

@media (hover: hover) {
    .usecase-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-premium);
    }
}

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    counter-reset: step;
}

.step-item {
    position: relative;
    padding: 1.75rem 0;
    text-align: center;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 52px; height: 52px;
    background: var(--button-gradient);
    color: white;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 52px;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card.featured {
    border-color: var(--accent);
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-premium);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: white;
    padding: 0.3rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.75rem 0;
}

.price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* FINAL CTA */
.cta-section {
    background: var(--button-gradient);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

/* BRAND BADGE */
.brand-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.brand-badge-icon {
    width: 24px; height: 24px;
    background: var(--button-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: white;
}

.brand-badge-text {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.brand-badge-accent {
    color: #67e8f9;
    font-weight: 700;
}

@media (hover: hover) {
    .brand-badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(6, 182, 212, 0.3);
    }
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-up { transform: translateY(40px); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.95); opacity: 0; }

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* FOOTER */
footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

footer a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .usecase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav .nav-links { display: none; }
    nav .btn { display: none; }
    #mobile-menu-btn { display: block !important; }
    .hero { min-height: auto; padding: 7rem 0 3rem; }
    .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero p { max-width: 600px; }
    .hero-img-container { max-width: 500px; margin: 0 auto; }
    .hero-img { border-radius: 1.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .section-padding { padding: 4rem 0; }
    .steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 4rem 1.5rem; }
    .demo-phone { width: 280px; height: 510px; }
    .usecase-grid { grid-template-columns: 1fr; }
    .demo-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 0.95rem; }
    .container { padding: 0 1.25rem; }
}
