/* ========================================
   Betty Landing - Minimalist Premium Design
   Inspired by Notion, Clay, Loop
   Clean, Grid-based, Product-focused
   ======================================== */

:root {
    /* Colors - Clean Monochrome */
    --color-bg-base: #FFFFFF;
    --color-bg-subtle: #F7F7F5;
    /* Notion-like subtle gray */
    --color-bg-card: #FFFFFF;

    /* Text */
    --color-text-primary: #111111;
    --color-text-secondary: #6B6B6B;
    --color-text-tertiary: #9A9A9A;

    /* Accents - Betty Purple */
    --color-primary: #7C6DF0;
    --color-primary-hover: #6B5CE0;
    --color-primary-subtle: #F0EDFF;

    /* Borders */
    --color-border: #EBEBEB;
    --color-border-hover: #D0D0D0;

    /* Shadows */
    --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0px 4px 6px -1px rgba(0, 0, 0, 0.05), 0px 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0px 12px 24px -4px rgba(0, 0, 0, 0.08);
    --shadow-card: 0px 2px 8px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --header-height: 70px;

    /* Compatibility / Legacy Variables (for Policy & Other Pages) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    --gradient-primary: linear-gradient(135deg, #7C6DF0 0%, #5DADE2 100%);
    --color-bg-light: #F8FAFC;
    --color-text-dark: #1E293B;
    --color-primary-light: #A89CF4;
    --color-primary-dark: #6B5CE0;
    --color-white: #FFFFFF;
    --color-gray-200: #E5E7EB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span {
    color: var(--color-primary);
}

.nav-links {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 8px 0;
    border: 1px solid var(--color-border);
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--color-text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover>a {
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    /* Slightly squarer than before */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-border-hover);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
    max-width: 260px;
    margin: 0 auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.phone-frame {
    position: relative;
    background: #111;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    border: 8px solid #111;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.hero-screenshot {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 32px;
    /* Matches internal radius */
    transform: none;
    /* Override previous 3D tilt */
    background: #FFF;
}

/* ========================================
   Bento Grid Benefits
   ======================================== */
.section-features {
    padding: 100px 0;
    background-color: var(--color-bg-subtle);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
}

.bento-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 109, 240, 0.3);
}

/* Bento Spans */
.span-2 {
    grid-column: span 1;
}

/* Default mobile */
.span-3 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .span-2 {
        grid-column: span 2;
    }

    .span-3 {
        grid-column: span 3;
    }

    .row-span-2 {
        grid-row: span 2;
    }
}

.bento-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-text {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Specific Bento Visuals */
.bento-visual-right {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    opacity: 0.8;
}

/* ========================================
   How It Works
   ======================================== */
.section-steps {
    padding: 100px 0;
    background: #FFF;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.step-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .step-row {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    /* Connector Line */
    .step-row::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: var(--color-bg-subtle);
        z-index: 0;
    }
}

.step-item {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    background: #FFF;
    /* Hide line behind text if needed */
    padding: 0 10px;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--color-text-primary);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid #FFF;
    /* Border to clear line */
}

.step-head {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    max-width: 300px;
}

.footer-nav h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 20px;
}

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

.footer-nav a {
    color: var(--color-text-secondary);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-copyright {
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: 0.85rem;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Waitlist Form
   ======================================== */
.waitlist-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.waitlist-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.waitlist-btn {
    white-space: nowrap;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-btn {
        width: 100%;
    }
}