/* ==========================================================================
   Sisu AI - Brand Guidelines Stylesheet
   Version 1.0
   ========================================================================== */

/* --- Variables & Theme --- */
:root {
    /* Primary Colors */
    --clr-midnight: #0B1120;
    --clr-electric-blue: #3B82F6;
    --clr-arctic-cyan: #06B6D4;

    /* Neutral Colors */
    --clr-cloud-white: #F8FAFC;
    --clr-ash: #E2E8F0;
    --clr-slate: #64748B;
    --clr-steel: #94A3B8;
    --clr-pure-white: #FFFFFF;

    /* Functional Colors */
    --clr-success: #10B981;
    --clr-warning: #F59E0B;
    --clr-error: #EF4444;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--clr-electric-blue) 0%, var(--clr-arctic-cyan) 100%);
    --glow-gradient: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    --card-glass: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-primary: 'Inter', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Resets & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-cloud-white);
    color: var(--clr-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--clr-midnight);
    margin-bottom: 1rem;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

a {
    color: var(--clr-electric-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--clr-arctic-cyan);
}

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

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.text-white {
    color: var(--clr-pure-white) !important;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--clr-electric-blue);
    display: inline-block;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--clr-midnight);
    color: var(--clr-steel);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--clr-pure-white);
}

.section-light {
    background-color: var(--clr-cloud-white);
}

.section-white {
    background-color: var(--clr-pure-white);
}

.section-gradient {
    background: var(--brand-gradient);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-header.text-center {
    margin-inline: auto;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--clr-slate);
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--clr-pure-white);
}

.btn-primary:hover {
    color: var(--clr-pure-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--clr-electric-blue);
    color: var(--clr-pure-white);
    background: rgba(59, 130, 246, 0.1);
}

.btn-white {
    background: var(--clr-pure-white);
    color: var(--clr-electric-blue);
}

.btn-white:hover {
    background: var(--clr-cloud-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--clr-arctic-cyan);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.glass-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--glow-gradient);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
    height: 32px;
}

/* Navbar always on dark surface — use dark-bg logo */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}


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

.nav-links a {
    color: var(--clr-ash);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--clr-pure-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-pure-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -200px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--clr-steel);
    max-width: 540px;
}

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

/* Visual code card in hero */
.visual-card {
    padding: 1.5rem;
    background: rgba(11, 17, 32, 0.6);
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #F59E0B;
}

.dot.green {
    background: #10B981;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

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

.metric-row i {
    font-size: 2rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-value {
    color: var(--clr-pure-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.metric-label {
    color: var(--clr-steel);
    font-size: 0.875rem;
}

/* --- Problem Section --- */
.reality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.reality-card {
    background: var(--clr-pure-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--clr-ash);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.reality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon.warning i {
    color: var(--clr-warning);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.better-way {
    background: var(--clr-pure-white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--clr-ash);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Process Section --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--clr-ash);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--clr-pure-white);
    border: 2px solid var(--clr-ash);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--clr-slate);
    z-index: 2;
}

.timeline-marker.gradient-marker {
    background: var(--brand-gradient);
    color: var(--clr-pure-white);
    border: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.timeline-content {
    background: var(--clr-cloud-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--clr-ash);
}

.duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-electric-blue);
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* --- Solutions Section --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--clr-pure-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--clr-ash);
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--clr-electric-blue);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution-icon i {
    font-size: 2rem;
    color: var(--clr-electric-blue);
}

/* --- Testimonials / Impact Section --- */
.impact-glow {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    max-width: 250px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-desc {
    color: var(--clr-steel);
    font-weight: 500;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote {
    font-size: 1.125rem;
    color: var(--clr-pure-white);
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--clr-pure-white);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--clr-electric-blue);
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
}

.cta-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.25rem;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: var(--clr-steel);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-pure-white);
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--clr-pure-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: var(--clr-steel);
    margin-bottom: 0.75rem;
}

.footer-column a:hover {
    color: var(--clr-pure-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-steel);
    font-size: 0.875rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .hero-container,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {

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

    .menu-toggle {
        display: block;
    }

    section {
        padding: 4rem 0;
    }

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

    .stat-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}