/* ============================================================
   RetZero.io — Company/Studio Portfolio
   Dark theme, minimal, mobile-first
   ============================================================ */

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #e8e8e8;
    --text-muted: #8a8a8a;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --border: rgba(255, 255, 255, 0.08);

    /* Legacy aliases (used by privacy.html, terms.html) */
    --bg-color: var(--bg);
    --card-bg: var(--bg-card);
    --text-main: var(--text);
    --font-family: var(--font);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1100px;
    --transition: 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- Utility ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.accent { color: var(--accent); }

/* Scroll-reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

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

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
    font-weight: 500;
}

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

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    padding: 0.25rem;
    line-height: 1;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 5rem 0; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3rem;
}

/* ============================================================
   PRODUCTS — FEATURED (Unravl)
   ============================================================ */
.product-featured {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition);
}

.product-featured:hover {
    border-color: var(--border-hover);
}

.product-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.badge-live {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge-soon {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-waitlist {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.product-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 640px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
}

/* ============================================================
   PRODUCTS — COMING SOON GRID
   ============================================================ */
.coming-soon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.coming-soon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}

.coming-soon-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.coming-soon-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-glow);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.coming-soon-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.coming-soon-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.coming-soon-card-logo {
    width: auto;
    height: 40px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    display: block;
}

.card-features { margin-top: 1rem; }

.coming-soon-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.coming-soon-card-subheadline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin: -0.25rem 0 0.5rem;
}

.coming-soon-card-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.coming-soon-card-waitlist-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---- Waitlist drawer ---- */

.waitlist-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.waitlist-drawer.open {
    max-height: 320px;
    opacity: 1;
}

.waitlist-form {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.waitlist-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.waitlist-input-row {
    display: flex;
    gap: 0.5rem;
}

.waitlist-input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}

.waitlist-input:focus {
    border-color: var(--accent);
}

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

.waitlist-submit {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.waitlist-submit:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.waitlist-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cf-turnstile {
    margin-top: 0.25rem;
}

.waitlist-feedback {
    font-size: 0.82rem;
    min-height: 1.2em;
}

.waitlist-feedback--success { color: #4ade80; }
.waitlist-feedback--error   { color: #f87171; }

.coming-soon-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
}

/* ============================================================
   IDEA SUBMISSION
   ============================================================ */
.idea-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.idea-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.idea-box-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.idea-content { flex: 1; }

.idea-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 580px;
}

.idea-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.idea-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.idea-fine-print {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
    max-width: 520px;
    line-height: 1.5;
}

.idea-fine-print a {
    color: var(--accent);
    text-decoration: underline;
}

.idea-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.idea-icon {
    font-size: 5rem;
    opacity: 0.15;
}

@media (max-width: 768px) {
    .idea-box { padding: 2rem 1.5rem; }
    .idea-box-inner { flex-direction: column; gap: 1rem; }
    .idea-icon-area { display: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
    max-width: 640px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 3rem;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    max-width: 500px;
    line-height: 1.5;
    text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .hero { padding: 8rem 1.5rem 4rem; }
    .hero h1 { letter-spacing: -1px; }

    section { padding: 3.5rem 0; }

    .product-featured { padding: 2rem 1.5rem; }
    .product-features { grid-template-columns: 1fr 1fr; }


    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links-group { gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-disclaimer { text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero { padding: 7rem 1rem 3rem; }
    .hero-tagline { font-size: 1rem; }

    .product-featured { padding: 1.5rem; }
    .product-name { font-size: 1.4rem; }
    .product-features { grid-template-columns: 1fr; }

    .footer-links-group { flex-direction: column; gap: 1.5rem; }
}
