/* ==========================================================================
   RESET & SYSTEM STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - URGELOCK Red, Black, White theme */
    --bg-base: #000000;
    --bg-surface: rgba(15, 15, 15, 0.75);
    --bg-surface-solid: #101010;
    --bg-card: rgba(20, 20, 20, 0.5);
    
    --primary: hsl(0, 85%, 50%);
    --primary-glow: rgba(242, 26, 26, 0.15);
    --primary-hover: hsl(0, 85%, 58%);
    
    --success: hsl(0, 0%, 100%);
    --success-glow: rgba(255, 255, 255, 0.12);
    
    --danger: hsl(0, 85%, 50%);
    --danger-glow: rgba(242, 26, 26, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(242, 26, 26, 0.4);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Glow Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.bg-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 60vh;
    left: -200px;
    background: radial-gradient(circle, rgba(242, 26, 26, 0.08) 0%, transparent 70%);
}

/* ==========================================================================
   REUSABLE COMPONENTS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(242, 26, 26, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges */
.section-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background-color: var(--primary-glow);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(242, 26, 26, 0.25);
}

/* Section Styling Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: 36px;
    display: block;
    object-fit: cover;
    border-radius: 22%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

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

.badge-new {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Waitlist Form Styling */
.hero-form, .download-form {
    max-width: 480px;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 10px;
    transition: var(--transition);
}

.form-group:focus-within {
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px rgba(242, 26, 26, 0.15);
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

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

.form-feedback {
    display: none;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

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

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

/* Store Badges */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-buttons-center {
    justify-content: center;
    margin-top: 2rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(15, 18, 28, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.store-badge:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.store-main {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ==========================================================================
   APP MOCKUP (CSS DEVICE SIMULATION)
   ========================================================================== */
.hero-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 290px;
    height: 580px;
    background-color: #0d111d;
    border: 10px solid #2d3748;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #07090e;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Inner App UI Elements */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.app-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(242, 26, 26, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-greet {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.app-notification-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Streak Circle Dashboard */
.app-streak-card {
    padding: 1.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.streak-circle-outer {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    background: conic-gradient(var(--primary) 80%, rgba(255, 255, 255, 0.03) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(242, 26, 26, 0.25);
}

.streak-circle-inner {
    width: 126px;
    height: 126px;
    border-radius: var(--radius-full);
    background-color: #07090e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.streak-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.streak-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.streak-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--success-glow);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
}

.streak-status span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--success);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: var(--radius-full);
}

/* Tasks */
.app-tasks {
    flex: 1;
    padding: 1rem 0.8rem;
    overflow-y: auto;
}

.app-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.task-item.completed {
    opacity: 0.7;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.task-checkbox-empty {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-details {
    display: flex;
    flex-direction: column;
}

.task-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.task-time {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Tab Bar Navigation */
.app-navigation {
    height: 55px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background-color: rgba(7, 9, 14, 0.9);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.6rem;
    gap: 0.2rem;
}

.nav-item.active {
    color: var(--primary);
}

.panic-tab {
    position: relative;
    display: flex;
    justify-content: center;
}

.panic-glow-button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger-glow);
    border: 2px solid #fff;
    cursor: pointer;
}

/* ==========================================================================
   THE SCIENCE SECTION
   ========================================================================== */
.science {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.science-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.science-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(242, 26, 26, 0.12);
}

.science-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(242, 26, 26, 0.2);
}

.science-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.science-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

/* Allow last row items to stretch nicely or adjust */
.feature-card:nth-child(4), .feature-card:nth-child(5) {
    grid-column: span 1;
}

.features-grid {
    /* Dynamic grid for 5 items: first 3 on top row, 2 below */
    grid-template-areas: 
      "a b c"
      "d e .";
}

/* Reset to clean grid layout for responsiveness */
@media(min-width: 992px) {
    .feature-card:nth-child(1) { grid-area: a; }
    .feature-card:nth-child(2) { grid-area: b; }
    .feature-card:nth-child(3) { grid-area: c; }
    .feature-card:nth-child(4) { grid-area: d; transform: translateX(50%); }
    .feature-card:nth-child(5) { grid-area: e; transform: translateX(50%); }
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(242, 26, 26, 0.12);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.feature-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.25;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

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



/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.faq-accordion {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem 0.5rem;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* State when active */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* ==========================================================================
   DOWNLOAD / WAITLIST SECTION
   ========================================================================== */
.download {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at center, rgba(242, 26, 26, 0.05) 0%, transparent 60%);
}

.download-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.download-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-form {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: #05060b;
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 320px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: #fff;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   SCROLL REVEAL & RESPONSIVENESS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-form, .download-form {
        width: 100%;
        max-width: 440px;
    }
    
    .store-buttons {
        justify-content: center;
    }

    .science-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none !important;
    }

    .feature-card:nth-child(4), .feature-card:nth-child(5) {
        transform: none !important;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .form-group {
        flex-direction: column;
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    .form-input {
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.8rem 1rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .form-group .btn {
        width: 100%;
        border-radius: 8px;
        padding: 0.8rem;
    }
    
    .nav {
        display: none; /* Hide header nav links on mobile for simplicity */
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
