/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #1C1C1D;
    --text-white: #FFFFFF;
    --text-grey: #8F9094;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-main: 'Inter', sans-serif;
    
    /* Layout Constants */
    --nav-height: 80px;
    --container-width: 1200px;
    --section-padding: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* Layered Background: Dark Color + Texture Image + Subtle Gradient Overlay */
    background-image: 
        radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 60%),
        url('IMG_1147.png');
    background-repeat: repeat;
    background-size: cover, auto;
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-main);
    overflow: hidden; /* Main scroll handled by .scroll-container */
}

/* =========================================
   2. SCROLL SNAP ARCHITECTURE
   ========================================= */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
}

.snap-section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--nav-height) 20px 40px; 
}

/* =========================================
   3. UTILITIES & SHARED STYLES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column-layout {
    align-items: center;
    text-align: center;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Typography Defaults */
h3 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

p.sub-text {
    color: var(--text-grey);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(28, 28, 29, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.btn-primary {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

.mobile-menu-icon { display: none; }

/* =========================================
   5. SECTIONS
   ========================================= */

/* --- HERO --- */
.hero-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 600px;
}

.hero-text {
    flex: 1;
    z-index: 10;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive scaling */
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #E0E0E0;
}

.hero-subtitle {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    color: #555;
    letter-spacing: -0.03em;
}

.hero-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: absolute;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
}

/* Phone Positioning */
.p1 {
    z-index: 2;
    right: 0;
    width: 300px;
    top: 50px;
}

.p2 {
    z-index: 1;
    right: 180px;
    top: -20px;
    width: 280px;
    opacity: 0.6;
    filter: blur(1px);
}

/* --- FEATURES GRID --- */
.grid-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.glass-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.glass-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 160px);
    gap: 20px;
    width: 100%;
}

.bento-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ddd;
}

/* --- SPLIT SHOWCASE --- */
.split-layout {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
}

.split-left {
    flex: 1;
    position: relative;
}

.phones-group {
    position: relative;
    height: 400px;
    margin-top: 40px;
}

.phone-small {
    position: absolute;
    width: 220px;
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
}

.p3 { left: 0; top: 0; z-index: 1; opacity: 0.8; }
.p4 { left: 100px; top: 50px; z-index: 2; }

.split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list-item {
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.feature-list-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.feature-list-item p {
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* --- INSIGHTS --- */
.start-align {
    align-items: flex-start;
    text-align: left;
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.tall-cards {
    height: 450px;
}

.insight-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.insight-card h4 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 500;
    text-transform: none;
}

/* --- FOOTER --- */
.center-layout {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-block h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cta-block p {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-white);
    padding: 14px 36px;
    border-radius: 100px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

.main-footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    font-size: 0.8rem;
    color: #444;
}

/* =========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* --- LAPTOP (1024px - 1439px) --- */
@media (max-width: 1439px) {
    :root { --container-width: 960px; }
    
    h3 { font-size: 2rem; }
    
    .hero-text h1, .hero-subtitle { font-size: 3rem; }
    
    .phone-mockup.p1 { width: 260px; }
    .phone-mockup.p2 { width: 240px; right: 140px; }
    
    .grid-row-3 { gap: 16px; }
    .glass-card { padding: 24px; }
}

/* --- TABLET (768px - 1023px) --- */
@media (max-width: 1023px) {
    :root { --section-padding: 40px; }
    
    .nav-links { display: none; } /* Hide standard nav */
    .mobile-menu-icon { display: block; width: 24px; height: 18px; position: relative; cursor: pointer;}
    .mobile-menu-icon span { display: block; width: 100%; height: 2px; background: #fff; margin-bottom: 5px; }

    /* Hero */
    .hero-layout { flex-direction: column; justify-content: center; text-align: center; }
    .hero-visuals { width: 100%; height: 400px; margin-top: 40px; }
    .p1 { right: 50%; transform: translateX(50%); width: 240px; top: 40px; }
    .p2 { right: 50%; transform: translateX(20%); width: 220px; top: 0; }

    /* Features */
    .grid-row-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-row-3 .glass-card:last-child { grid-column: span 2; } /* Center last one */
    
    /* Bento */
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 140px); }
    
    /* Split */
    .split-layout { flex-direction: column; }
    .phones-group { width: 100%; display: flex; justify-content: center; margin-bottom: 40px; }
    .p4 { left: 50%; }
    
    /* Insights */
    .tall-cards { height: auto; }
}

/* --- MOBILE (Max 767px) --- */
@media (max-width: 767px) {
    
    /* Disable strict scroll snap on mobile if content overflows */
    .scroll-container { scroll-snap-type: none; } 
    .snap-section { height: auto; min-height: auto; padding: 100px 20px 60px; }

    h3 { font-size: 1.75rem; text-align: left; }
    p.sub-text { text-align: left; font-size: 1rem; margin-bottom: 2rem;}

    /* Hero */
    .hero-text h1, .hero-subtitle { 
        font-size: 2.2rem; 
        text-align: left; 
        word-break: keep-all; 
    }
    .hero-layout { align-items: flex-start; }
    .hero-visuals { height: 350px; margin-top: 20px; }
    .p1 { width: 180px; right: auto; left: 20px; transform: none; top: 40px; }
    .p2 { width: 160px; right: 20px; transform: none; top: 0px; }

    /* Stacking Grids */
    .grid-row-3 { grid-template-columns: 1fr; }
    .grid-row-3 .glass-card:last-child { grid-column: span 1; }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-card { height: 100px; }
    
    /* Split Section */
    .phones-group { height: 300px; }
    .phone-small { width: 160px; }
    .p3 { left: 10px; }
    .p4 { left: auto; right: 10px; top: 40px; }
    
    /* Footer */
    .main-footer { position: relative; flex-direction: column; gap: 20px; bottom: 0; padding: 0; margin-top: 60px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn-outline { width: 100%; }
}