/* ============================================
   DealShare Landing Page
   ============================================ */

:root {
    --bg-primary: #18181b;
    --bg-secondary: #1f1f23;
    --bg-card: #27272a;
    --border: #3f3f46;
    --border-light: #52525b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --accent: #ff6b35;
    --accent-hover: #ff7f50;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --accent-glow-strong: rgba(255, 107, 53, 0.25);
}

/* ---- Reset ---- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navbar ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    height: 64px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.navbar.scrolled {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 54px;
    width: auto;
}

.nav-cta {
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    background: var(--accent);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-logo-wrapper {
    margin-bottom: 40px;
}

.hero-logo {
    height: 120px;
    width: auto;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--accent);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

.apple-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-subtle);
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ---- Features ---- */

.features {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.feature-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- How It Works ---- */

.how-it-works {
    padding: 100px 24px;
    background: var(--bg-primary);
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-divider {
    width: 1px;
    min-height: 100px;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 24px;
}

/* ---- Final CTA ---- */

.final-cta {
    padding: 100px 24px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    height: 80px;
    width: auto;
    margin-bottom: 32px;
}

.cta-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    line-height: 1.2;
}

.cta-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-subtle);
}

/* ---- Footer ---- */

.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-subtle);
}

/* ---- Legal Pages ---- */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
    transition: opacity 0.2s;
}

.legal-back:hover {
    opacity: 0.8;
}

.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 14px;
    color: var(--text-subtle);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--text);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content strong {
    color: var(--text);
    font-weight: 700;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* ---- Contact Page ---- */

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    max-width: 500px;
}

.contact-card h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--accent);
    transition: background 0.2s, transform 0.2s;
}

.contact-email:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-divider {
        width: 40px;
        min-height: 1px;
        height: 1px;
        margin-top: 0;
    }

    .step {
        padding: 0;
    }

    .hero {
        min-height: auto;
        height: 100svh;
        padding: 24px 20px 40px;
    }

    .hero-logo {
        height: 90px;
    }

    .hero-logo-wrapper {
        margin-bottom: 32px;
    }

    .features {
        padding: 70px 20px;
    }

    .how-it-works {
        padding: 70px 20px;
    }

    .final-cta {
        padding: 70px 20px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }

    .nav-logo-img {
        height: 30px;
    }
}
