/* ============================================
   Phones Down — phonesdown.net
   Cinematic dark theme with teal accent
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0A0F;
    --bg-surface: #12121A;
    --bg-card: #16161F;
    --bg-card-hover: #1C1C28;
    --accent: #14F0C6;
    --accent-dim: rgba(20, 240, 198, 0.12);
    --accent-glow: rgba(20, 240, 198, 0.25);
    --danger: #FF4D6A;
    --text: #EEEEF2;
    --text-secondary: #9999A8;
    --text-muted: #55556A;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Grain Overlay --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger children */
.steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3) { transition-delay: 0.24s; }
.feature-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.30s; }

/* --- Section Layout --- */
.section-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 32px;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 8px;
    font-size: 16px;
    font-style: normal;
}

.nav-logo-text {
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 8px 20px;
    background: var(--accent-dim);
    color: var(--accent) !important;
    border-radius: 999px;
    border: 1px solid rgba(20, 240, 198, 0.2);
    transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
    background: rgba(20, 240, 198, 0.18);
    border-color: rgba(20, 240, 198, 0.35);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(20, 240, 198, 0.15);
    border-radius: 999px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line--accent {
    color: var(--accent);
    position: relative;
}

.hero-sub {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Visual — Phone mockup */
.hero-visual {
    position: absolute;
    bottom: -20px;
    right: 8%;
    z-index: 1;
    opacity: 0.35;
    pointer-events: none;
}

.phone {
    width: 220px;
    height: 440px;
    background: var(--bg-card);
    border-radius: 36px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transform: rotate(-8deg);
}

.phone-screen {
    position: absolute;
    inset: 8px;
    border-radius: 28px;
    background: #0E0E16;
    display: flex;
    flex-direction: column;
    padding: 48px 16px 16px;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: var(--bg-card);
    border-radius: 0 0 16px 16px;
}

.phone-status {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.phone-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.phone-game {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.phone-game-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.phone-game-timer {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.phone-game-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 20px 8px var(--accent-glow); }
}

.phone-game-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.btn--large {
    padding: 18px 36px;
    font-size: 17px;
}

/* --- Marquee --- */
.marquee {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 32px;
    animation: marquee 30s linear infinite;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.marquee-track span {
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- How It Works --- */
.how {
    padding: 120px 0;
    position: relative;
}

.how::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.step {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--bg-card-hover);
    letter-spacing: -0.02em;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s var(--ease-out);
}

.step:hover .step-icon-ring {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 24px var(--accent-glow);
}

.step-icon-ring--danger {
    color: var(--danger);
}

.step:hover .step-icon-ring--danger {
    border-color: var(--danger);
    background: rgba(255, 77, 106, 0.1);
    box-shadow: 0 0 24px rgba(255, 77, 106, 0.2);
}

/* --- Features --- */
.features {
    padding: 120px 0;
    background: var(--bg-surface);
    position: relative;
}

.features::before,
.features::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features::before { top: 0; }
.features::after { bottom: 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-card);
    transition: background 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Quote Section --- */
.quote-section {
    padding: 120px 0;
    position: relative;
}

.big-quote {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.big-quote-mark {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.big-quote p {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* --- CTA Section --- */
.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.25;
    pointer-events: none;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.footer-nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 16px 20px;
    }

    .nav--scrolled {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 64px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .step {
        grid-template-columns: 56px 1fr;
        gap: 20px;
    }

    .step-visual {
        display: none;
    }

    .step-number {
        font-size: 36px;
    }

    .step-content h3 {
        font-size: 20px;
    }

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

    .feature-card {
        padding: 32px 24px;
    }

    .how, .features, .quote-section, .cta {
        padding: 80px 0;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .big-quote-mark {
        font-size: 80px;
        top: -40px;
    }
}

/* ============================================
   Legal Pages (privacy, support)
   ============================================ */
.legal {
    padding: 120px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal .updated {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 14px;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--text);
}

.legal p, .legal li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul {
    margin-left: 24px;
}

.legal a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.legal a:hover {
    opacity: 0.8;
}

.legal strong {
    color: var(--text);
}

/* Legal page header */
.legal header {
    text-align: left;
    padding: 0 0 32px 0;
    margin-bottom: 0;
}

.legal header h1 {
    font-size: 18px;
    color: var(--accent);
}

/* Legal page footer */
.legal footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.legal footer nav {
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.legal footer nav a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.legal footer nav a:hover {
    color: var(--text);
}

.legal footer p {
    color: var(--text-muted);
    font-size: 13px;
}
