/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    /* Colors - Trusted Intelligence Palette */
    --clay: #C47E62;
    --clay-light: #D89A82;
    --clay-dark: #A96648;
    --navy: #1A2942;
    --navy-light: #2A3952;
    --navy-dark: #0F1A2E;
    --cream: #FAF7F4;
    --cream-dark: #EDE7E0;
    --sand: #E8DDD0;
    --charcoal: #2D2D2D;
    --white: #FFFFFF;
    --success: #4A7856;
    --error: #B84A4A;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--navy);
    margin-bottom: var(--spacing-md);
}

.section-title.centered {
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */

button, .btn-primary, .btn-secondary, .btn-ghost {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--clay);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(196, 126, 98, 0.3);
}

.btn-primary:hover {
    background: var(--clay-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(196, 126, 98, 0.4);
}

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

.btn-secondary:hover {
    background: var(--navy-light);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-primary.large, .btn-ghost.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--sand);
    animation: slideDown 0.6s var(--ease-smooth);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.nav-logo a {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    display: block;
    transition: opacity 0.3s var(--ease-smooth);
}

.nav-logo a:hover .logo-img {
    opacity: 0.8;
}

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

.nav-links a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost) {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost):hover {
    color: var(--clay);
}

/* ========================================
   Container
   ======================================== */

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

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.geometric-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

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

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--navy);
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--navy-light);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    line-height: 1.8;
}

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

.hero-visual {
    position: relative;
    animation: fadeIn 1s var(--ease-smooth);
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26, 41, 66, 0.2);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatCard 3s infinite ease-in-out;
}

.floating-card img {
    width: 24px;
    height: 24px;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: -5%;
    animation-delay: 2s;
}

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

/* ========================================
   Animations
   ======================================== */

.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-smooth) backwards;
}

.fade-in {
    animation: fadeIn 1s var(--ease-smooth) backwards;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Problem Section
   ======================================== */

.problem-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.problem-image img {
    width: 100%;
    border-radius: 20px;
}

.section-intro {
    font-size: 1.3rem;
    color: var(--clay);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.problem-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--sand);
}

.problem-icon {
    color: var(--error);
    font-weight: bold;
    font-size: 1.3rem;
}

.solution-text {
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 500;
    padding: var(--spacing-md);
    background: var(--cream);
    border-left: 4px solid var(--clay);
    border-radius: 8px;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--cream);
    border: 2px solid var(--clay);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.feature-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(44%) sepia(18%) saturate(1156%) hue-rotate(332deg) brightness(92%) contrast(85%);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--navy);
}

.feature-card p {
    color: var(--navy-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-visual {
    border-radius: 12px;
    overflow: hidden;
    margin-top: var(--spacing-sm);
}

.feature-visual img {
    width: 100%;
    display: block;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.steps-container {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-lg) * 1.5);
    position: relative;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
}

.step:nth-child(even) .step-content {
    order: 2;
}

.step:nth-child(even) .step-visual {
    order: 1;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clay), var(--clay-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(196, 126, 98, 0.3);
    margin-bottom: var(--spacing-sm);
}

.step-content h3 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--navy-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.step-visual {
    position: relative;
}

.step-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease-smooth);
}

.step:hover .step-image {
    transform: scale(1.02);
}

.step-connector {
    display: none;
}

/* ========================================
   Platform Section
   ======================================== */

.platform-section {
    padding: var(--spacing-xl) 0;
    background: var(--navy);
    color: var(--cream);
}

.platform-section .section-title {
    color: var(--cream);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.platform-intro {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.platform-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--cream-dark);
}

.platform-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(250, 247, 244, 0.1);
    border-radius: 12px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background: var(--clay);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.platform-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clay-light);
}

.platform-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Audience Section
   ======================================== */

.audience-section {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.audience-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.audience-card:hover {
    transform: translateY(-8px);
}

.audience-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
}

.audience-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--navy);
}

.audience-card p {
    color: var(--navy-light);
}

/* ========================================
   Future Section
   ======================================== */

.future-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    text-align: center;
}

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

.future-intro {
    font-size: 1.3rem;
    color: var(--clay);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.future-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--navy-light);
    margin-bottom: var(--spacing-md);
}

.future-visual {
    margin: var(--spacing-lg) 0;
}

.future-visual img {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.future-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--clay), var(--clay-dark));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

.cta-section .btn-ghost {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-ghost:hover {
    background: var(--white);
    color: var(--clay);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--navy-dark);
    color: var(--cream);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: var(--cream-dark);
    line-height: 1.8;
}

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--cream-dark);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--clay-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(250, 247, 244, 0.1);
    color: var(--cream-dark);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-content,
    .problem-content,
    .platform-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-secondary) {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

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

    .hero-cta button {
        width: 100%;
    }

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

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

    .step:nth-child(even) .step-content,
    .step:nth-child(even) .step-visual {
        order: unset;
    }

    .step-visual {
        order: 2;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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

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

/* ========================================
   Scroll Animations
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
