/* 
  Design Philosophy: Modern Minimalism.
  "Nature Distilled" palette—muted earthy tones, soft grays, plenty of white space.
*/

:root {
    /* Colors */
    --clr-bg: #FFFFFF;
    --clr-bg-light: #F6F9FC;
    /* Stripe-like soft background */
    --clr-text: #1A1F36;
    /* Deeper, more professional blue-black */
    --clr-text-muted: #4F566B;
    /* Softened text */
    --clr-border: #E3E8EE;

    /* Accents (Stripe-inspired) */
    --clr-brand: #635BFF;
    /* Main Stripe-like Purple/Indigo */
    --clr-brand-hover: #5851DF;
    --clr-brand-light: #F0EFFF;
    /* Very soft purple for badges/highlights */
    --clr-brand-accent: #00D4FF;
    /* Electric blue accent */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, "Times New Roman", serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Basics */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.1;
    color: var(--clr-text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
}

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

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

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

.bg-light {
    background-color: var(--clr-bg-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    border-bottom: 1px solid var(--clr-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--clr-text);
}

.logo svg {
    color: var(--clr-brand);
}

.nav-cta {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    background-color: var(--clr-brand);
    color: white;
    box-shadow: 0 4px 6px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nav-cta:hover {
    background-color: var(--clr-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
}

.primary-button {
    background-color: var(--clr-brand);
    color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.primary-button:hover {
    background-color: var(--clr-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--clr-brand-light);
    color: var(--clr-brand);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(99, 91, 255, 0.1);
}

.secondary-button {
    background-color: white;
    color: var(--clr-brand);
    border: 1px solid var(--clr-border);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.secondary-button:hover {
    border-color: var(--clr-brand);
    background-color: var(--clr-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 4rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-actions {
    margin-bottom: 5rem;
}

.hero-mockup-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    background-color: var(--clr-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.app-mockup {
    width: 100%;
    height: auto;
    display: block;
}

/* Problem Section */
.problem-section {
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    padding: 3rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    text-align: left;
    transition: var(--transition-fast);
}

.problem-card:hover {
    border-color: #d1d1cc;
    transform: translateY(-5px);
}

.cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FEE2E2;
    color: #DC2626;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Features (Three Pillars) */
.features-section {
    background-color: var(--clr-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 2rem;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--clr-bg-light);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(50, 50, 93, 0.05);
    background-image: radial-gradient(at 100% 0%, rgba(99, 91, 255, 0.05) 0%, transparent 50%);
}

.cta-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto 3rem auto;
    color: var(--clr-text-muted);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--clr-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.made-in {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.social-link:hover {
    color: var(--clr-text);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 8rem;
    }

    .problem-card {
        padding: 2rem;
    }

    .roadmap-content {
        padding: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }
}