/* ========================================
   PREMIUM DESIGN SYSTEM - DOZ v3
   ======================================== */

:root {
    /* Palette */
    --accent: #2D9F8F;
    --accent-glow: rgba(45, 159, 143, 0.5);
    --accent-subtle: rgba(45, 159, 143, 0.1);
    --red: #FF3B30;
    --red-subtle: rgba(255, 59, 48, 0.12);
    --bg-deep: #030303;
    --bg-surface: #0F0F0F;
    --bg-alt: #080808;
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --text-dim: #555555;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --aurora-1: #2D9F8F;
    --aurora-2: #5F4B8B;

    /* Layout */
    --container-max: 1200px;
    --radius-phone: 44px;
    --radius-card: 20px;
    --radius-sm: 12px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   BASE & TYPOGRAPHY
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1 {
    font-size: clamp(44px, 6vw, 76px);
    letter-spacing: -0.05em;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(32px, 4vw, 54px);
    letter-spacing: -0.04em;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 140px 0;
    position: relative;
    overflow: visible;
}

.alt-section { background: var(--bg-alt); }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-reverse { direction: rtl; }
.grid-reverse > * { direction: ltr; }

.hero-text { display: flex; flex-direction: column; gap: 0; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    padding-top: calc(max(32px, env(safe-area-inset-top)));
    margin-top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-width: 100vw;
}

.nav-logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(45, 159, 143, 0.3);
    padding: 8px 18px;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-cta:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    position: relative;
}

/* Badge */
.badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: rgba(45, 159, 143, 0.08);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 28px;
    border: 1px solid rgba(45, 159, 143, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero headline */
.hero-headline {
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 650px;
    text-wrap: balance;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent) 0%, #56c9b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 460px;
    text-wrap: balance;
}

/* Hero bullets */
.hero-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.bullet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.alert-icon { background: var(--red-subtle); }

/* CTA group */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-button {
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 0 20px rgba(255,255,255,0.08);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(255,255,255,0.25);
}

/* ========================================
   PHONE MOCKUP
   ======================================== */
.mockup-stage {
    position: relative;
    perspective: 1200px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-3d {
    width: 100%;
    border-radius: var(--radius-phone);
    background: #000;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25),
        0 0 0 8px #3a3a3a,
        0 40px 100px -20px rgba(0, 0, 0, 0.9);
}

.mockup-stage:hover .phone-3d {
    transform: rotateY(-5deg) rotateX(2deg);
}

.phone-3d img {
    border-radius: calc(var(--radius-phone) - 8px);
    width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* ========================================
   FLOATING CARDS
   ======================================== */
.float-card {
    position: absolute;
    background: rgba(20, 20, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-strong);
    z-index: 5;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
    min-width: 170px;
}

.card-pos-1 { top: 14%; right: -40px; animation-delay: 0s; }
.card-pos-2 { bottom: 18%; left: -50px; animation-delay: 2s; }
.card-pos-3 { top: 38%; right: -55px; animation-delay: 1.5s; }

/* Notification pill in hero */
.notif-pill {
    background: rgba(255, 59, 48, 0.12);
    border-color: rgba(255, 59, 48, 0.25);
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 99px;
    min-width: auto;
}

.notif-critical { font-size: 18px; }
.notif-label { font-size: 13px; font-weight: 700; color: #FF4D4D; }
.notif-sub { font-size: 11px; color: var(--text-muted); }

.alert-glow-card {
    position: static;
    animation: none;
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
    margin-top: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    min-width: auto;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-fire { background: rgba(255, 69, 58, 0.25); }
.icon-chart { background: rgba(10, 132, 255, 0.2); }

.widget-data h4 {
    font-size: 11px;
    opacity: 0.55;
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.widget-data span {
    font-size: 22px;
    font-weight: 700;
}

/* ========================================
   FEATURE BULLETS (in sections)
   ======================================== */
.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-bullets li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-bullets li strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.feature-bullets li span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   FEATURE TAG
   ======================================== */
.feature-tag {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(45, 159, 143, 0.08);
    border-radius: 99px;
    border: 1px solid rgba(45, 159, 143, 0.12);
}

.tag-red {
    color: #FF6161;
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.15);
}

/* ========================================
   CSS NOTIFICATION CARDS (Section 3)
   ======================================== */
.notif-demo-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 340px;
    margin: 0 auto;
    padding: 20px 0;
}

.notif-card {
    background: rgba(28, 28, 30, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 16px 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.critical-card {
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.15), 0 16px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.critical-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.notif-app-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.notif-app-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.notif-app-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.notif-time {
    font-size: 11px;
    color: var(--text-dim);
}

.notif-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notif-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.critical-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FF6B6B;
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.25);
    padding: 3px 10px;
    border-radius: 99px;
}

.normal-card { opacity: 0.65; }

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    background: #000;
}

.trust-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.trust-sub {
    font-size: 18px;
    max-width: 540px;
    margin: 0 auto 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.trust-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(45, 159, 143, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.trust-card strong {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.trust-card span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   FEATURE GRID (iOS section)
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    margin-top: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s var(--ease-out-expo);
}

.fg-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.fg-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-card strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.fg-card span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   WAITLIST SECTION
   ======================================== */
.waitlist-section {
    background: var(--bg-alt);
    text-align: center;
    overflow: hidden;
}

.waitlist-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.waitlist-sub {
    margin: 16px auto 40px;
    max-width: 420px;
}

.waitlist-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pulse-button {
    position: relative;
    z-index: 1;
}

.pulse-button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 99px;
    background: white;
    z-index: -1;
    animation: cta-pulse 2.5s infinite;
}

@keyframes cta-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

.waitlist-form input {
    flex: 1;
    padding: 16px 22px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    font-size: 15px;
    min-width: 0;
    transition: border-color 0.3s;
    font-family: inherit;
}

.waitlist-form input:focus {
    border-color: var(--accent);
}

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

.waitlist-disclaimer {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    font-size: 14px;
    color: var(--text-dim);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-top a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-top a:hover { color: var(--text-main); }

.footer-contact-link {
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-dim);
}

.footer-bottom .dot { opacity: 0.3; }

.footer-bottom a {
    color: inherit;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--text-main); }

@media (max-width: 600px) {
    .footer { padding: 40px 0; }
    .footer-top { flex-direction: column; gap: 8px; }
    .footer-bottom { gap: 12px; }
}

/* ========================================
   AURORA BACKGROUND
   ======================================== */
.aurora-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(45, 159, 143, 0.14), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: aurora-drift 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.aurora-secondary {
    animation-delay: -5s;
    background: radial-gradient(circle at 70% 30%, rgba(45, 159, 143, 0.08), transparent 60%);
}

@keyframes aurora-drift {
    0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.5; }
    50%  { transform: translate(-45%, -55%) scale(1.1) rotate(5deg); opacity: 0.8; }
    100% { transform: translate(-55%, -45%) scale(1) rotate(-5deg); opacity: 0.5; }
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .section { padding: 80px 0; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-text { 
        align-items: center; 
        text-align: center;
        padding-top: 80px; 
    }
    
    .nav { 
        padding: 24px;
        padding-top: calc(max(36px, env(safe-area-inset-top)));
    }
    
    .badge, .feature-tag {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 auto 32px !important;
        align-self: center !important;
    }

    .hero-sub { margin-left: auto; margin-right: auto; max-width: 100%; }
    
    .hero-bullets, .feature-bullets {
        align-items: flex-start;
        text-align: left;
        max-width: 320px;
        margin: 32px auto 0;
        width: fit-content;
    }
    .hero-actions { justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
    .mockup-stage { 
        order: 2; 
        margin: 40px auto 30px; 
        max-width: 320px; 
    }
    
    .float-card {
        position: absolute !important;
        transform: scale(0.65) !important;
        transform-origin: center center;
        z-index: 10;
        animation: float 6s ease-in-out infinite;
        min-width: 140px;
        padding: 10px 14px;
        left: auto !important;
    }
    
    /* Elegant glow cards in smart alerts - keep them static */
    .alert-glow-card {
        position: static !important;
        transform: scale(1) !important;
        margin: 16px auto 0 !important;
        display: flex !important;
    }

    .card-pos-1 { top: 12% !important; right: -10px !important; bottom: auto !important; }
    .card-pos-2 { display: none !important; } 
    .card-pos-3 { bottom: 12% !important; right: -15px !important; top: auto !important; animation-delay: 2s; }

    .trust-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .container { padding: 0 24px; }
}

@media (max-width: 500px) {
    .section { padding: 48px 0; }
    .hero-headline { font-size: 36px; line-height: 1.1; }
    h2 { font-size: 26px; }
    .hero-bullets, .feature-bullets { max-width: 100%; width: 100%; padding: 0 16px; margin-top: 24px; }
    .feature-grid { grid-template-columns: 1fr; gap: 8px; }
    .fg-card { padding: 20px 18px; }
    .nav { 
        padding: 16px;
        padding-top: calc(max(36px, env(safe-area-inset-top)));
    }
    .container { padding: 0 20px; }
    .brand-title { font-size: 32px; }
    .waitlist-form { width: 100%; max-width: 100%; flex-direction: column; gap: 10px; }
    .hero-actions { margin-top: 48px; }
    .hero-actions a { width: 100%; text-align: center; }
}

/* line break – desktop only */
.br-desktop { display: block; }
@media (max-width: 900px) { .br-desktop { display: none; } }
