/* ============================================
   DeepTone Landing Page
   Premium. Continuous. Conversion-focused.
   Black + Blue glow + White
   ============================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.12);
    --blue-glow-strong: rgba(59, 130, 246, 0.2);
    --gray: #8b8b8b;
    --gray-dim: #555555;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.cta-button.sticky {
    width: 100%;
    padding: 14px 24px;
}

.apple-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-subtext {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
    background: var(--black);
    overflow: hidden;
}

/* Top ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    height: 60%;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.hero-content {
    max-width: 520px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Phone with glow effect */
.hero-phone {
    position: relative;
    max-width: 260px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0.15) 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.hero-phone img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 32px;
    box-shadow:
        0 0 80px rgba(59, 130, 246, 0.3),
        0 0 120px rgba(59, 130, 246, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 10px 20px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-phone:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
        0 0 100px rgba(59, 130, 246, 0.4),
        0 0 150px rgba(59, 130, 246, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3);
}

.phone-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0.5) 30%, transparent 70%);
    z-index: 0;
    filter: blur(20px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-strip {
    position: relative;
    padding: 80px 0;
    background: var(--black);
    overflow: hidden;
}

/* Localized glow behind features */
.features-strip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse 50% 40% at 50% 50%, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--blue);
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   APP PREVIEW
   ============================================ */
.app-preview {
    position: relative;
    padding: 80px 0;
    background: var(--black);
    overflow: hidden;
}

.preview-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 0 24px;
}

.preview-scroll::-webkit-scrollbar {
    display: none;
}

.preview-track {
    display: flex;
    gap: 20px;
}

.preview-card {
    position: relative;
    flex: 0 0 auto;
    width: 160px;
}

/* Glow behind each preview card */
.preview-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 30%, transparent 60%);
    pointer-events: none;
    filter: blur(30px);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.preview-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.preview-card img {
    position: relative;
    width: 100%;
    border-radius: 24px;
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.2),
        0 0 80px rgba(59, 130, 246, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateY(0deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.preview-card:nth-child(1) img {
    transform: perspective(800px) rotateY(4deg);
}

.preview-card:nth-child(2) img {
    transform: perspective(800px) rotateY(2deg);
}

.preview-card:nth-child(3) img {
    transform: perspective(800px) rotateY(-2deg);
}

.preview-card:nth-child(4) img {
    transform: perspective(800px) rotateY(-4deg);
}

.preview-card:hover img {
    transform: perspective(800px) rotateY(0deg) translateY(-8px) scale(1.03);
    box-shadow:
        0 0 70px rgba(59, 130, 246, 0.35),
        0 0 100px rgba(59, 130, 246, 0.15),
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HOOK SECTION
   ============================================ */
.hook-section {
    position: relative;
    padding: 100px 0;
    background: var(--black);
    text-align: center;
    overflow: hidden;
}

/* Ambient glow */
.hook-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 100vw;
    height: 80%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hook-section .container {
    position: relative;
}

.hook-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hook-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    position: relative;
    padding: 100px 0 140px;
    text-align: center;
    background: var(--black);
    overflow: hidden;
}

/* Strong bottom glow */
.final-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    height: 80%;
    background: radial-gradient(ellipse 60% 60% at 50% 100%, var(--blue-glow-strong) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
}

.final-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 32px 0;
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--gray-dim);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-dim);
}

/* ============================================
   STICKY CTA (Mobile)
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }

    .hero .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 64px;
    }

    .hero-content {
        flex: 1;
        max-width: 480px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-phone {
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .preview-scroll {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .preview-track {
        justify-content: center;
        gap: 28px;
    }

    .preview-card {
        width: 180px;
    }

    .hook-title {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .sticky-cta {
        display: none;
    }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .hero {
        padding: 100px 0 120px;
    }

    .hero::before {
        height: 70%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-phone {
        max-width: 340px;
    }

    .phone-glow {
        width: 160%;
        height: 160%;
    }

    .features-strip {
        padding: 100px 0;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .feature h3 {
        font-size: 1.1rem;
    }

    .app-preview {
        padding: 100px 0;
    }

    .preview-card {
        width: 200px;
    }

    .hook-section {
        padding: 120px 0;
    }

    .hook-title {
        font-size: 2.25rem;
    }

    .final-cta {
        padding: 120px 0 160px;
    }

    .final-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-phone {
        max-width: 380px;
    }

    .preview-card {
        width: 220px;
    }
}
