/* ========================================
   DearDates Landing Page — Styles
   ======================================== */

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

:root {
    --c-bg: #07060e;
    --c-surface: #100e1a;
    --c-surface-2: #16142480;
    --c-border: rgba(255, 255, 255, 0.06);
    --c-text: #eeeef2;
    --c-text-sub: #9a9ab0;
    --c-accent: #C62828;
    --c-accent-2: #E8A028;
    --c-accent-3: #D45530;
    --c-gradient: linear-gradient(135deg, #C62828, #E8A028);
    --c-glow-red: rgba(198, 40, 40, 0.35);
    --c-glow-org: rgba(232, 160, 40, 0.28);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --r-card: 20px;
    --r-pill: 100px;
    --max-w: 1200px;
    --nav-h: 72px;
}

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

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Selection ---------- */
::selection {
    background: var(--c-accent);
    color: #fff;
}

/* ---------- NAVBAR ---------- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 6, 14, 0.75);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--c-border);
    transition: background .3s, box-shadow .3s;
}

#main-nav.scrolled {
    background: rgba(7, 6, 14, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--nav-h);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-sub);
    transition: color .25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-gradient);
    transition: width .3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: var(--c-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform .25s, box-shadow .25s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--c-glow-red);
}

/* ---------- HERO ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    overflow: hidden;
}

/* Animated orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, var(--c-glow-red), transparent 70%);
    animation: orb-float 14s ease-in-out infinite alternate;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--c-glow-org), transparent 70%);
    animation: orb-float 18s ease-in-out infinite alternate-reverse;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.12), transparent 70%);
    animation: orb-float 10s ease-in-out infinite alternate;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -40px) scale(1.15);
    }
}

/* Grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    width: 100%;
}

/* Hero text */
.hero-text {
    flex: 1 1 50%;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: var(--r-pill);
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-accent);
    margin-bottom: 28px;
}

.pill-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(198, 40, 40, 0);
    }
}

#hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

#hero-heading .line {
    display: block;
}

#hero-heading .accent-line {
    background: var(--c-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin-top: 24px;
    font-size: 1.12rem;
    color: var(--c-text-sub);
    max-width: 520px;
    line-height: 1.7;
}

/* CTA button */
.hero-cta-row {
    margin-top: 36px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 16px;
    background: var(--c-gradient);
    color: #fff;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--c-glow-red);
}

.cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cta-small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: .85;
}

.cta-large {
    font-size: 1.05rem;
    font-weight: 700;
}

.cta-btn--lg {
    padding: 18px 36px;
    border-radius: 20px;
}

.cta-btn--lg .cta-large {
    font-size: 1.15rem;
}

/* Hero chips */
.hero-chips {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-text-sub);
}

.chip-icon {
    font-size: 1rem;
}

/* Hero phones */
.hero-phones {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-phone {
    border-radius: 28px;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.hero-phone img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-phone--center {
    width: 260px;
    z-index: 3;
    position: relative;
}

.hero-phone--left {
    width: 210px;
    z-index: 2;
    transform: translateX(55px) scale(0.9) rotate(-6deg);
    opacity: 0.8;
}

.hero-phone--right {
    width: 210px;
    z-index: 2;
    transform: translateX(-55px) scale(0.9) rotate(6deg);
    opacity: 0.8;
}

.hero-phone--center:hover {
    transform: scale(1.04);
}

.hero-phone--left:hover {
    transform: translateX(55px) scale(0.93) rotate(-4deg);
    opacity: 1;
}

.hero-phone--right:hover {
    transform: translateX(-55px) scale(0.93) rotate(4deg);
    opacity: 1;
}

/* ---------- SECTION SHARED ---------- */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.grad-text {
    background: var(--c-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-sub {
    margin-top: 14px;
    color: var(--c-text-sub);
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- FEATURES ---------- */
#features {
    padding: 120px 0;
    position: relative;
}

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

.f-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 36px 28px;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1),
        box-shadow .35s, border-color .35s;
    position: relative;
    overflow: hidden;
}

.f-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--c-gradient);
    opacity: 0;
    transition: opacity .35s;
}

.f-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(198, 40, 40, 0.08);
    border-color: rgba(198, 40, 40, 0.2);
}

.f-card:hover::before {
    opacity: 1;
}

.f-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    color: var(--icon-color);
    margin-bottom: 20px;
}

.f-card h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.f-card p {
    font-size: 0.92rem;
    color: var(--c-text-sub);
    line-height: 1.65;
}

/* ---------- SHOWCASE ---------- */
#showcase {
    padding: 120px 0;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.showcase-row:last-child {
    margin-bottom: 0;
}

.showcase-row--reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1 1 50%;
}

.showcase-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.showcase-text>p {
    font-size: 1rem;
    color: var(--c-text-sub);
    line-height: 1.7;
    margin-bottom: 24px;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--c-text-sub);
}

.showcase-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.12);
    border: 2px solid var(--c-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C62828' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.showcase-visual {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.showcase-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.showcase-glow--red {
    background: var(--c-glow-red);
}

.showcase-glow--orange {
    background: var(--c-glow-org);
}

.showcase-mockup {
    position: relative;
    z-index: 1;
    width: 280px;
    border-radius: 32px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.showcase-mockup:hover {
    transform: scale(1.04) rotate(1deg);
}


/* ---------- GALLERY / CAROUSEL ---------- */
#gallery {
    padding: 100px 0;
    overflow: hidden;
}

.carousel-wrap {
    position: relative;
    margin-top: -20px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel {
    overflow: hidden;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 28px;
    animation: scroll-gallery 45s linear infinite;
    width: max-content;
}

.carousel-img {
    width: 240px;
    flex-shrink: 0;
    border-radius: 28px;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.carousel-img:hover {
    transform: scale(1.06) translateY(-8px);
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- DOWNLOAD CTA ---------- */
#download {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.dl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.dl-orb--1 {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -100px;
    background: var(--c-glow-red);
    animation: orb-float 16s ease-in-out infinite alternate;
}

.dl-orb--2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -80px;
    background: var(--c-glow-org);
    animation: orb-float 20s ease-in-out infinite alternate-reverse;
}

.dl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dl-icon {
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(198, 40, 40, 0.3);
    margin-bottom: 32px;
    animation: icon-glow 3s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    0% {
        box-shadow: 0 12px 40px rgba(198, 40, 40, 0.3);
    }

    100% {
        box-shadow: 0 16px 60px rgba(198, 40, 40, 0.5);
    }
}

#dl-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.dl-sub {
    color: var(--c-text-sub);
    font-size: 1.08rem;
    margin-bottom: 36px;
}

/* ---------- FOOTER ---------- */
#footer {
    border-top: 1px solid var(--c-border);
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-brand p {
    margin-top: 8px;
    color: var(--c-text-sub);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-links a {
    color: var(--c-text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .25s;
}

.footer-links a:hover {
    color: var(--c-accent);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--c-text-sub);
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--c-accent);
    font-weight: 600;
    transition: opacity .25s;
}

.footer-bottom a:hover {
    opacity: .8;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
        transform .8s cubic-bezier(.16, 1, .3, 1);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    /* Hero stays side-by-side on tablet, just tighter */
    #hero {
        min-height: auto;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero-phone--center {
        width: 200px;
    }

    .hero-phone--left,
    .hero-phone--right {
        width: 160px;
    }

    .hero-phone--left {
        transform: translateX(40px) scale(0.88) rotate(-6deg);
    }

    .hero-phone--right {
        transform: translateX(-40px) scale(0.88) rotate(6deg);
    }

    #hero-heading {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

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

    /* Showcase stays side-by-side on tablet, just tighter */
    .showcase-row {
        gap: 40px;
    }

    .showcase-mockup {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hero stacks vertically only on mobile */
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

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

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-phones {
        width: 100%;
        justify-content: center;
    }

    .hero-phone--center {
        width: 200px;
    }

    .hero-phone--left,
    .hero-phone--right {
        width: 155px;
    }

    .hero-phone--left {
        transform: translateX(45px) scale(0.9) rotate(-6deg);
    }

    .hero-phone--right {
        transform: translateX(-45px) scale(0.9) rotate(6deg);
    }

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

    .showcase-mockup {
        width: 220px;
    }

    /* Showcase stacks vertically only on mobile */
    .showcase-row,
    .showcase-row--reverse {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .showcase-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .showcase-list {
        align-items: flex-start;
        display: inline-flex;
        text-align: left;
    }

    .carousel-img {
        width: 190px;
    }

    #features,
    #showcase,
    #gallery,
    #download {
        padding: 80px 0;
    }

    .showcase-row {
        margin-bottom: 80px;
    }

    /* Footer centered on mobile */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-phones {
        gap: 0;
    }

    .hero-phone--center {
        width: 170px;
    }

    .hero-phone--left,
    .hero-phone--right {
        width: 130px;
    }

    .hero-phone--left {
        transform: translateX(35px) scale(0.85) rotate(-5deg);
    }

    .hero-phone--right {
        transform: translateX(-35px) scale(0.85) rotate(5deg);
    }

    .hero-chips {
        justify-content: center;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .nav-cta svg {
        display: none;
    }

    .showcase-mockup {
        width: 200px;
    }

    .carousel-img {
        width: 160px;
    }
}