/* =========================================
   NEW DESIGN SYSTEM (DARK SaaS BENTO)
   ========================================= */

   :root {
    /* Warm, welcoming Light Theme */
    --bg-dark: #fafaf9; /* Warm off-white */
    --bg-card: #ffffff; /* Clean white */
    --bg-hover: #f5f5f4;
    --border: #e7e5e4;

    --text-primary: #1c1917; /* Soft black */
    --text-muted: #57534e; /* Warm gray */
    --text-dark: #fafaf9; /* For inverted text on buttons */

    /* Friendly, soft Pastel/Vibrant Accents */
    --accent-blue: #38bdf8;
    --accent-blue-hover: #0ea5e9;
    --accent-cyan: #2dd4bf; /* Teal/Mint */
    --accent-purple: #c084fc; /* Soft purple */
    --accent-orange: #fb923c; /* Warm, energetic orange */
    --accent-green: #4ade80; /* Fresh green */

    --glow-primary: radial-gradient(circle at top center, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
    --card-gradient: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    
    --radius-round: 9999px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    background-color: #fafaf9; /* Force light theme */
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.text-center { text-align: center; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
}

/* =========================================
   COMPONENTS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    border: none;
}
.btn-sm { padding: 0.4rem 0.8rem; }
.btn-lg { padding: 0.8rem 1.7rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; padding: 0.8rem; border-radius: 10px; }

.btn-primary {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.4);
}
.btn-primary:hover {
    background: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.5);
}
.btn-glass {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
}

/* Utils */
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }

/* =========================================
   PILL NAV
   ========================================= */
.pill-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-round);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.login-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-round);
    padding: 0.2rem;
}
.lang-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-round);
    cursor: pointer;
}
.lang-btn.active { background: var(--border); color: var(--text-primary); }


/* =========================================
   HERO
   ========================================= */
.hero {
    /* Hero Sections & Landing */
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #fafaf9;
    display: block; /* Ensure no flex conflicts */
}

/* Lifestyle Image Layer */
.hero-lifestyle {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    opacity: 0.15;
    filter: saturate(1.2);
}

.hero-lifestyle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Family Warmth: Mesh Gradient Blobs */
.hero-bg-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: blobMove 20s infinite alternate ease-in-out;
}

@keyframes blobMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 30px) scale(1.1); }
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -300px;
    left: -200px;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    bottom: -250px;
    right: -100px;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 10%;
    right: 5%;
}

/* Floating UI Fragments (Mini Product Cards) */
.ui-fragment {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: fragmentFloat 8s infinite ease-in-out;
}

.ui-fragment i {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
}

@keyframes fragmentFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    /* Friendly Gradient Text */
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; }

/* Mockup */
.bento-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background-image: var(--card-gradient);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.bento-mockup:hover { transform: rotateY(0) rotateX(0); }
.mockup-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.bento-mockup h3 { margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 500; }
.mockup-task {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.mockup-task.pending { opacity: 0.6; }
.check-circle {
    width: 24px; height: 24px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.check-circle i { width: 14px; }
.empty-circle {
    width: 24px; height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
}

/* =========================================
   BENTO GRID (FEATURES)
   ========================================= */
.section-head { margin-bottom: 4rem; }
.section-head h2 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s;
}
.bento-card:hover {
    background: var(--bg-hover);
}
.bento-icon { margin-bottom: auto; width: 32px; height: 32px; opacity: 0.8;}

.bento-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.bento-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }

/* Grid Spans */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.row-span-1 { grid-row: span 1; }
.row-span-2 { grid-row: span 2; }

.card-gradient-1 {
    background: linear-gradient(to bottom right, #1e1b4b, #171717);
}


/* =========================================
   ALL FEATURES LIST GRID
   ========================================= */
.features-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.feat-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.feat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: transform 0.2s, background 0.2s, border 0.2s;
}
.feat-item:hover .feat-icon {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}
.feat-item h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.feat-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* =========================================
   PRICING
   ========================================= */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 500;
}
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border); transition: .3s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--text-primary); transition: .3s; }
input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.badge-saving {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.price-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.price-box.premium {
    border-color: rgba(255,255,255,0.2);
}
.premium-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 200px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}
.tag {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--text-primary); color: var(--bg-dark);
    font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 6px;
}
.price-box h3 { font-size: 1.125rem; font-weight: 500; color: var(--text-muted); margin-bottom: 1rem; }
.price-val { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price-val .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.875rem; }

.price-box ul { margin-bottom: 2.5rem; }
.price-box ul li {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem; font-size: 0.95rem;
}
.price-box ul li i { width: 18px; color: var(--text-primary); }

.secure-checkout {
    display: flex; justify-content: center; align-items: center; gap: 0.4rem;
    margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted);
}
.secure-checkout i { width: 14px; }


/* =========================================
   PRODUCT GUIDE / DOCUMENTATION
   ========================================= */
.doc-section {
    padding: 10rem 0;
    background: #fafaf9; /* Matches hero background */
    position: relative;
    overflow: hidden;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.doc-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    position: relative;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.doc-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    background: rgba(251, 146, 60, 0.1);
    color: var(--accent-orange);
}

.doc-card i {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.doc-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.step-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 3px;
}

.step-content {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-content b {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Onboarding Special Card */
.doc-card.full-width {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.onboarding-item {
    background: rgba(255,255,255,0.4);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.6);
}

/* =========================================
   LEGAL PAGES & DROPDOWN
   ========================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.dropdown-trigger:hover {
    background: rgba(0,0,0,0.03);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    padding: 0.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--accent-orange-soft);
    color: var(--accent-orange);
}

.legal-page {
    background: #fafaf9;
    min-height: 100vh;
    padding: 8rem 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 5rem;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.legal-container h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.legal-container h2 {
    font-size: 1.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-container p, .legal-container li {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-container strong {
    color: var(--text-primary);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.legal-back:hover {
    color: var(--accent-orange);
}

.legal-hr {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-bx {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem;
}
.f-brand h4 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.f-brand p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }
.f-legal { font-size: 0.75rem; color: var(--text-muted); }

.f-links { display: flex; gap: 4rem; }
.f-links strong { display: block; margin-bottom: 1rem; font-size: 0.875rem; }
.f-links a { display: block; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.f-links a:hover { color: var(--text-primary); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .col-span-1, .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    .row-span-2 {
        grid-row: auto;
    }
    .hero-bx { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .bento-mockup { transform: none; }
}

@media (max-width: 600px) {
    .pill-nav { 
        width: 95%; justify-content: space-between;
        padding-right: 1.5rem;
    }
    .nav-links, .login-link { display: none; }
    .hero-text h1 { font-size: 2.5rem; }
}
