/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
    /* Brand Colors */
    --brand-blue: #2D9CDB;
    --brand-indigo: #4C6EF5;
    --brand-purple: #8E2DE2;
    --brand-gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 45%, var(--brand-purple) 100%);

    /* Neutrals - Light Theme */
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --light-bg: #F8FAFC;

    /* Feedback */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;

    /* Spacing Scale (8pt) */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.no-scroll {
    scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

/* ============================================
   Typography
   ============================================ */
h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: var(--s-6);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: var(--s-6);
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--s-3);
}

p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--s-4);
}

strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   Topbar (Sticky Navigation)
   ============================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--s-4) 0;
}

.topbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--s-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-8);
}

.topbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    width: 36px;
    height: 36px;
    display: block;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.topbar-nav {
    display: flex;
    gap: var(--s-8);
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-indigo);
    outline: none;
}

.topbar-right {
    display: flex;
    gap: var(--s-3);
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .topbar-nav {
        display: none;
    }
    .topbar-container {
        gap: var(--s-4);
    }
}

@media (max-width: 640px) {
    .topbar-right {
        gap: var(--s-2);
    }
}

/* ============================================
   Buttons
   ============================================ */
button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    border-radius: var(--r-md);
    font-weight: 500;
}

button:focus-visible {
    outline: 2px solid var(--brand-indigo);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    button {
        transition: none;
    }
}

.btn-primary {
    background: var(--brand-indigo);
    color: white;
    padding: var(--s-3) var(--s-5);
    font-size: 0.95rem;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary-pill {
    background: var(--brand-indigo);
    color: white;
    padding: var(--s-3) var(--s-6);
    font-size: 0.95rem;
    border-radius: 24px;
}

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

.btn-primary-large {
    background: var(--brand-indigo);
    color: white;
    padding: var(--s-5) var(--s-8);
    font-size: 1.1rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
}

.btn-primary-large:hover {
    background: #3B5BDB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-large:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-indigo);
    padding: var(--s-3) var(--s-5);
    font-size: 0.95rem;
    border: 2px solid var(--brand-indigo);
}

.btn-secondary:hover {
    background: rgba(76, 110, 245, 0.05);
    transform: translateY(-1px);
}

.btn-text {
    color: var(--text);
    padding: var(--s-3) var(--s-4);
    font-size: 0.95rem;
    background: transparent;
}

.btn-text:hover {
    color: var(--brand-indigo);
}

.btn-lg {
    padding: var(--s-4) var(--s-6);
    font-size: 1rem;
}

/* ============================================
   Forms
   ============================================ */
.form-input {
    font-family: var(--font-family);
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: all 0.2s;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: var(--s-4);
}

.form-message {
    text-align: center;
    margin-top: var(--s-4);
    min-height: 1.5rem;
    font-size: 0.95rem;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: var(--s-16) var(--s-4);
    text-align: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-12);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    text-align: center;
    justify-self: end;
}

.hero-icon {
    color: var(--brand-indigo);
    margin-bottom: var(--s-6);
    display: inline-block;
}

.hero-icon svg {
    width: 48px;
    height: 48px;
}

.hero-headline {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--s-6);
    color: var(--text);
}

.headline-accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subheadline {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--s-8);
    max-width: 100%;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}

.cta-microcopy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Phone Mockup */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: var(--s-6) var(--s-4);
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.app-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--s-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.team-member {
    padding: var(--s-3) var(--s-4);
    background: var(--light-bg);
    border-radius: var(--r-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.member-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-sm);
}

.member-status.available {
    background: rgba(45, 156, 219, 0.15);
    color: var(--brand-blue);
}

.member-status.on-leave {
    background: rgba(76, 110, 245, 0.15);
    color: var(--brand-indigo);
}

.notification-badge {
    margin-top: var(--s-4);
    padding: var(--s-3) var(--s-4);
    background: rgba(76, 110, 245, 0.1);
    border-left: 3px solid var(--brand-indigo);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-text {
    font-size: 0.85rem;
    color: var(--brand-indigo);
    font-weight: 500;
}

/* ============================================
   Problem Section
   ============================================ */
.problem {
    padding: var(--s-12) var(--s-4);
    background: var(--light-bg);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-6);
}

.problem-item {
    text-align: center;
    padding: var(--s-6);
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.problem-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: var(--s-3);
    display: block;
}

.problem-item p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--s-12) var(--s-4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-6);
}

.feature-card {
    padding: var(--s-6);
    background: var(--light-bg);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-indigo);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card:hover {
        transform: none;
    }
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--s-4);
}

.feature-card h3 {
    margin-bottom: var(--s-3);
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--s-12) var(--s-4);
    background: var(--light-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-8);
}

.step {
    padding: var(--s-6);
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}

.step:hover {
    border-color: var(--brand-indigo);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--s-4);
}

.step h3 {
    margin: 0 0 var(--s-3) 0;
}

.step p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Who It's For Section
   ============================================ */
.who-for {
    padding: var(--s-12) var(--s-4);
}

.who-subtitle {
    text-align: center;
    margin-bottom: var(--s-10);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-6);
}

.who-card {
    padding: var(--s-6);
    background: var(--light-bg);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-align: center;
}

.who-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.who-icon {
    font-size: 2.5rem;
    margin-bottom: var(--s-4);
    display: block;
}

.who-card h3 {
    margin-bottom: var(--s-3);
}

.who-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: var(--s-12) var(--s-4);
    background: var(--light-bg);
    text-align: center;
}

.pricing h2 {
    margin-bottom: var(--s-4);
}

.pricing p {
    font-size: 1.125rem;
    margin-bottom: var(--s-3);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: var(--s-12) var(--s-4);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--s-4);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--s-4) var(--s-5);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--text);
    background: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-item summary:hover {
    background: rgba(76, 110, 245, 0.05);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--brand-indigo);
    outline-offset: -2px;
}

.faq-item summary::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.2s;
    margin-left: var(--s-4);
    color: var(--brand-indigo);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 var(--s-5) var(--s-4) var(--s-5);
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    background: var(--surface);
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
    padding: var(--s-12) var(--s-4);
    background: var(--light-bg);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: var(--s-3);
}

.final-cta > .container > p {
    font-size: 1.1rem;
    margin-bottom: var(--s-8);
    color: var(--text-muted);
}

.cta-form {
    max-width: 400px;
    margin: 0 auto;
}

.cta-form .form-group {
    margin-bottom: var(--s-4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--s-8) var(--s-4);
    background: var(--text);
    color: var(--surface);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--s-6);
    margin-bottom: var(--s-4);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--s-8);
    }

    .hero-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--s-12) var(--s-4);
    }

    h1 {
        font-size: clamp(1.75rem, 5vw, 3rem);
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
        border-radius: 35px;
        padding: 10px;
    }

    .phone-notch {
        width: 100px;
        height: 24px;
        border-radius: 0 0 16px 16px;
    }

    .phone-screen {
        border-radius: 30px;
    }
}

@media (max-width: 640px) {
    .problems-grid,
    .features-grid,
    .steps-grid,
    .who-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: var(--s-4);
    }

    .topbar-right {
        gap: var(--s-2);
    }

    .btn-primary,
    .btn-secondary,
    .btn-text {
        padding: var(--s-3) var(--s-4);
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: var(--s-3) var(--s-5);
    }

    .faq-item summary {
        padding: var(--s-3) var(--s-4);
    }

    .faq-item p {
        padding: 0 var(--s-4) var(--s-3) var(--s-4);
    }

    .btn-primary-large {
        padding: var(--s-4) var(--s-5);
        font-size: 1rem;
    }

    .hero-icon svg {
        width: 40px;
        height: 40px;
    }

    .hero-phone {
        display: none;
    }
}