/* ============================================================
   Pactiva Landing Page - Minimalist Dark Theme
   Inspired by Bond's clean, high-contrast dark aesthetic
   ============================================================ */

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

:root {
    --bg-primary: #06070a;
    --bg-secondary: #0a0b0f;
    --bg-card: #0d0f14;
    --border-subtle: #161a22;
    --border-focus: #4fc3f7;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #8fa0b5;
    --text-muted: #555c6d;
    
    /* Accent Colors */
    --accent-cyan: #4fc3f7;
    --accent-cyan-hover: #7dd3fc;
    
    /* Layout Constants */
    --max-width: 1100px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    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-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

/* --- Background Dots --- */
.bg-dots {
    position: absolute;
    top: 240px;
    z-index: 0;
    pointer-events: none;
}

.bg-dots-left {
    left: 5%;
}

.bg-dots-right {
    right: 5%;
}

/* --- Header --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 36px;
    width: auto;
    display: block;
}

.logo-name {
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    padding-top: calc(var(--header-height) + 110px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.hero-title {
    font-weight: 500;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-muted-gray {
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 36px;
}

.og-badge {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Waitlist Form --- */
.waitlist-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 12px;
}

.waitlist-form input {
    background-color: #0b0d12;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 290px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.15);
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.btn-cta {
    background: linear-gradient(135deg, #a855f7 0%, #2563eb 50%, #06b6d4 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-cta:hover {
    filter: brightness(1.1);
}

.btn-cta svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover svg {
    transform: scale(1.15) rotate(45deg);
}

.waitlist-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 64px;
    min-height: 20px;
    transition: color 0.3s;
}

.waitlist-note.success {
    color: #34d399;
}

.waitlist-note.error {
    color: #f87171;
}

/* --- Feature Cards --- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 96px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #242f41;
    transform: translateY(-2px);
}

.feature-icon-box {
    width: 38px;
    height: 38px;
    background-color: #12151d;
    border: 1px solid #1e2433;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 40px;
    background-color: var(--bg-secondary);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 500;
}

.footer-copy {
    color: var(--text-muted);
}

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

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

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .bg-dots {
        display: none;
    }
    
    .hero {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .header-inner {
        padding: 0 24px;
    }
}

@media (max-width: 860px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 580px) {
    .waitlist-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 320px;
    }
    
    .waitlist-form input {
        width: 100%;
    }
    
    .btn-cta {
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
