/* =========================================================================
   Variables & Theming - Apple Glass / Material Light Theme
   ========================================================================= */
:root {
    /* Color Palette - Light Theme */
    --bg-main: #f5f5f7; /* Apple light gray */
    --bg-glass-layer: rgba(255, 255, 255, 0.65);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --text-inverse: #ffffff;
    
    --accent-primary: #0066cc; /* Apple Blue */
    --accent-primary-hover: #0077ed;
    --accent-secondary: #34c759; /* Apple Green */
    
    --gradient-primary: linear-gradient(135deg, #007aff 0%, #34c759 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(52, 199, 89, 0.1) 100%);
    
    /* Layout & Styling */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 16px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Max width container */
    --max-w: 1200px;
}

/* =========================================================================
   Base Styles & Reset
   ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Mesh gradient background effect */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(52, 199, 89, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 45, 85, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 { font-size: 2.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* =========================================================================
   Layout Containers
   ========================================================================= */
.container {
    width: 90%;
    max-width: var(--max-w);
    margin: 0 auto;
}

section { padding: 8rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* =========================================================================
   Components (Buttons, File Folders, Glassmorphism)
   ========================================================================= */
/* Glassmorphism Generic Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

/* 📁 File Folder Shape Component */
.file-folder {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    /* Square top-left corner to accommodate the tab */
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    border: var(--border-glass);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-top: 24px; /* Space for the tab */
}

.file-folder::before {
    content: '';
    position: absolute;
    top: -24px; /* Move above the card */
    left: -1px; /* Align with border */
    width: 45%;
    min-width: 120px;
    height: 24px;
    background: inherit;
    /* Rounded top corners, square bottom */
    border-radius: 12px 12px 0 0;
    border: var(--border-glass);
    border-bottom: none; /* Blend into the main card */
    z-index: 0;
}

/* Mask line to blend tab with card body */
.file-folder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    min-width: 120px;
    height: 2px;
    background: var(--bg-card); /* Match background */
    z-index: 2;
}

.file-folder-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
}

.file-folder:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 980px; /* Pill shape (Apple style) */
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-small { 
    padding: 0.5rem 1.5rem; 
    font-size: 0.9rem; 
    min-width: 90px;
}
.btn-large { 
    padding: 0.8rem 2.2rem; 
    font-size: 1.05rem; 
    min-width: 140px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-gradient {
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.3);
    border: none;
}

.btn-primary:hover, .btn-gradient:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--bg-glass-layer);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.logo i { color: var(--accent-primary); }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text-main); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title { font-size: 4rem; letter-spacing: -1.5px; line-height: 1.1; }
.hero-subtitle { color: var(--text-muted); font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 90%; }
.hero-cta { display: flex; gap: 1rem; }

/* Dashboard UI Mockup - Light Mode */
.main-dashboard-mockup {
    width: 100%;
    aspect-ratio: 16/11;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.05);
}

.mockup-header {
    height: 38px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body { flex: 1; display: flex; }
.mockup-sidebar { width: 22%; background: rgba(245, 245, 247, 0.8); border-right: 1px solid rgba(0,0,0,0.05); }
.mockup-content { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mockup-row { background: rgba(255,255,255,0.8); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.header-row { height: 36px; width: 45%; }
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: transparent; box-shadow: none; }
.mockup-card { height: 80px; background: rgba(255,255,255,0.8); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.list-row { flex: 1; background: rgba(255,255,255,0.6); border-radius: 12px; }

/* =========================================================================
   About Section (Grid)
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
}

.file-folder p { color: var(--text-muted); }

/* =========================================================================
   Features Combo Section
   ========================================================================= */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-item {
    padding: 2.5rem;
    border-left: 3px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.feature-item.active {
    opacity: 1;
    border-left-color: var(--accent-primary);
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.03) 0%, transparent 100%);
}

.feature-item h3 { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }
.feature-item h3 i { color: var(--accent-primary); font-size: 1.2rem; }
.feature-item p { color: var(--text-muted); margin-left: 2rem; }

.feature-visualizer {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--gradient-glow);
    border-radius: 24px;
}

.placeholder-icon {
    font-size: 5rem;
    color: rgba(0, 102, 204, 0.4);
}

/* =========================================================================
   CTA Section
   ========================================================================= */
.cta-box {
    text-align: center;
    padding: 6rem 2rem;
}

.cta-box h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.15rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    gap: 0.8rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    padding: 1.1rem 1.8rem;
    border-radius: 980px;
    border: var(--border-glass);
    background: var(--bg-card);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    background: #fff;
}

/* Adjust size specifically for the form string submit button to match input height */
.waitlist-form .btn {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    padding: 5rem 0 2rem;
    background: var(--bg-card);
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand p { color: var(--text-muted); margin-top: 1.5rem; }

.link-group h4 { color: var(--text-main); margin-bottom: 1.5rem; font-size: 1.1rem; }
.link-group ul li { margin-bottom: 0.8rem; }
.link-group ul a { color: var(--text-muted); font-size: 0.95rem; }
.link-group ul a:hover { color: var(--text-main); }

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

/* =========================================================================
   Responsive Media Queries
   ========================================================================= */
@media (max-width: 900px) {
    .hero-container, .feature-showcase, .footer-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .waitlist-form { flex-direction: column; }
    .footer-container { text-align: center; }
}
