/* ================================================
   Finalect Landing Page — Styles
   ================================================ */
:root {
    --bg-body: #0a0a0a;
    --bg-surface: #111111;
    --text-primary: #ffffff;
    --text-muted: #999999;
    --text-dim: #666666;
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-muted: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(60, 60, 80, 0.35);
    --transition-fast: all 0.25s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(177.44deg, rgba(0, 0, 0, 0) 6.1%, #000000 60.8%), var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ================================================
   Navbar
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-muted);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 28px;
    height: 28px;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Request Demo Button */
.btn-demo {
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: clamp(100px, 15vh, 160px);
    overflow: hidden;
}

/* Center glow */
.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 1.5rem;
}

/* Pill Badge */
.pill-badge {
    display: inline-block;
    padding: 0.45rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2rem;
    background: transparent;
    letter-spacing: 0.2px;
}

/* Hero Title */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    max-width: 90%;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Phone Mockup */
.phone-mockup-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.phone-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    /* Fade edges into the black background */
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 10%,
        black 75%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 10%,
        black 75%,
        transparent 100%
    );
}

/* Email Form */
.email-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
    width: 100%;
    max-width: 460px;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.email-form:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.email-input {
    flex: 1;
    padding: 0.85rem 1.15rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

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

.btn-notify {
    padding: 0.7rem 1.5rem;
    margin: 0.3rem;
    border-radius: 6px;
    border: none;
    background: var(--text-primary);
    color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.btn-notify:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-notify:active {
    transform: translateY(0);
}

/* No Spam Text */
.no-spam-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pill-badge,
.hero-title,
.hero-subtitle,
.phone-mockup-wrapper,
.email-form,
.no-spam-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.pill-badge       { animation-delay: 0.1s; }
.hero-title       { animation-delay: 0.25s; }
.hero-subtitle    { animation-delay: 0.4s; }
.phone-mockup-wrapper { animation-delay: 0.55s; }
.email-form       { animation-delay: 0.7s; }
.no-spam-text     { animation-delay: 0.85s; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .btn-demo {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .phone-mockup-wrapper {
        max-width: 380px;
        margin-bottom: 2rem;
    }

    .email-form {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
        max-width: 100%;
    }

    .email-form:focus-within {
        box-shadow: none;
    }

    .email-input {
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        width: 100%;
        padding: 1rem 1.25rem;
    }

    .btn-notify {
        width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .brand img {
        height: 20px;
        width: auto;
    }

    .btn-demo {
        display: inline-flex !important;
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 4px !important;
        background: var(--text-primary) !important;
        color: var(--bg-body) !important;
        border: none !important;
        font-weight: 600 !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #brandLink {
        display: flex;
        align-items: center;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 9vw, 2rem);
        letter-spacing: -0.5px;
        max-width: 100%;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .pill-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 1.25rem;
    }

    .phone-mockup-wrapper {
        max-width: 100%;
        width: 260px;
        margin-bottom: 1.5rem;
    }

    .email-form {
        gap: 8px;
    }

    .email-input {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .btn-notify {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .no-spam-text {
        font-size: 0.7rem;
        margin-bottom: 2rem;
    }
}

/* Landscape and Height checks */
@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        padding-top: 80px;
        min-height: auto;
    }
    .phone-mockup-wrapper {
        max-width: 200px;
    }
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }
}

/* ================================================
   Privacy Policy Page
   ================================================ */
.privacy-policy-section {
    padding: 120px 2rem 4rem;
    min-height: 100vh;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-last-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.privacy-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.privacy-section li strong {
    color: var(--text-primary);
}

/* Privacy Policy Mobile Responsiveness */
@media (max-width: 768px) {
    .privacy-policy-section {
        padding: 100px 1.5rem 3rem;
    }

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

    .privacy-section h2 {
        font-size: 1.3rem;
    }

    .privacy-section h3 {
        font-size: 1rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 0.9rem;
    }
}
