@import url('https://api.fontshare.com/v2/css?f[]=fk-grotesk-neue@300,400,500,600,700&display=swap');

:root {
  --radius: 0.875rem;
  --background: oklch(0.11 0.008 240);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.16 0.01 240);
  --card-foreground: oklch(0.98 0 0);
  --primary: oklch(0.82 0.13 200);
  --primary-foreground: oklch(0.11 0.008 240);
  --muted-foreground: oklch(0.65 0.015 240);
  --border: oklch(1 0 0 / 6%);
  --input: oklch(1 0 0 / 8%);

  /* Premium accent palette exactly matching the TSX */
  --gradient-cinematic:
    radial-gradient(ellipse 55% 45% at 30% 0%, oklch(0.55 0.16 200 / 0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 75% 10%, oklch(0.55 0.18 295 / 0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, oklch(0.25 0.08 240 / 0.4), transparent 70%);
  --gradient-spectrum: linear-gradient(110deg, oklch(0.82 0.13 200), oklch(0.7 0.18 295) 55%, oklch(0.82 0.14 75));
  --shadow-glow: 0 0 80px -10px oklch(0.82 0.13 200 / 0.45);
  --shadow-card: 0 1px 0 0 oklch(1 0 0 / 0.05) inset, 0 30px 60px -30px oklch(0 0 0 / 0.7);
  
  --font-sans: "FK Grotesk Neue", "FK Grotesk", "Inter", -apple-system, sans-serif;
  
  /* Provided Accent for your logo */
  --accent: #FF4F00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: "ss01", "cv11";
}

/* Cinematic Background Gradient */
.cinematic-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: var(--gradient-cinematic);
    pointer-events: none;
}

/* Grain Effect */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Utilities */
.text-spectrum {
    background: var(--gradient-spectrum);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navbar - Completely Transparent */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: transparent;
    border-bottom: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.nav-logo-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo-mark {
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
    object-fit: contain;
}

.nav-contact {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-contact:hover {
    color: var(--foreground);
}

/* Main Hero */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 1.5rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1152px;
    width: 100%;
}

/* Provided Logo Layout */
.logo-container {
    display: flex;
    align-items: center; 
    gap: 28px; 
    margin-bottom: 3rem;
    animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-wrapper {
    width: 100px; 
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-mark {
    width: 250px; 
    height: 250px;
    max-width: none; 
    pointer-events: none; 
}

.main-brand {   
    font-size: 120px;
    font-weight: 700;
    letter-spacing: -0.05em; 
    line-height: 1;
    margin: 0;
    text-transform: lowercase;
    color: var(--foreground); 
    position: relative; 
    z-index: 2;
}

.dot-accent {
    color: var(--accent); 
    margin: 0 0.06em;
}

/* Matching the TSX hero heading */
.hero-heading {
    max-width: 64rem;
    font-size: clamp(2.75rem, 7vw, 5.75rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--foreground);
    margin-bottom: 2rem;
    animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 36rem;
    line-height: 1.6;
    animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    margin-bottom: 4rem;
}

/* Waitlist Form */
.waitlist-form-container {
    width: 100%;
    max-width: 28rem;
    animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.waitlist-prompt {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    text-align: center;
}

.waitlist-prompt strong {
    color: var(--foreground);
    font-weight: 600;
}

.lang-flipper {
    display: inline-flex;
    min-width: 120px; /* Prevent jitter when word width changes */
    justify-content: flex-start;
}

#langWord {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

#langWord.fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

#langWord.fade-in {
    opacity: 0;
    transform: translateY(5px);
}

.waitlist-form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #222225;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.waitlist-form:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
}

.waitlist-form input {
    flex: 1;
    height: 2.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    font-family: inherit;
}

.waitlist-form input::placeholder {
    color: #888888;
}

/* Fix browser autofill styling overriding dark background */
.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover, 
.waitlist-form input:-webkit-autofill:focus, 
.waitlist-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #222225 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.submit-btn {
    display: inline-flex;
    height: 2.5rem;
    padding: 0 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #111111;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #ffffff;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0c0c0c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fade-in 0.5s ease-out;
    margin: 0 auto;
    text-align: left;
}

.success-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    flex-shrink: 0;
}

.success-text {
    flex: 1;
    margin: 0 1rem;
}

.success-text h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
}

.success-text p {
    color: #888888;
    font-size: 0.95rem;
    margin: 0;
}

.success-okay-btn {
    padding: 0 1.25rem;
    height: 2.25rem;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #111111;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.success-okay-btn:hover {
    background-color: #ffffff;
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 2rem 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: fade-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);
}

.footer-content {
    width: 100%;
    max-width: 1152px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer .logo-container {
    margin-bottom: 2rem;
    gap: 8px;
}

.footer .logo-wrapper {
    width: 40px;
    height: 40px;
}

.footer .logo-mark {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer .main-brand {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.footer .dot-accent {
    text-shadow: none;
}

.footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-divider {
    height: 1px;
    width: 100%;
    background-color: var(--border);
    margin-bottom: 1.5rem;
}

.footer-copy-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-copy-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.footer-dot {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.footer-copy-row a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copy-row a:hover {
    color: #ffffff;
}

.footer-copy-row .highlight {
    color: #ffffff;
    font-weight: 500;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .navbar {
        padding: 1.5rem;
    }
    
    .logo-container {
        gap: 16px; 
    }
    
    .logo-wrapper {
        width: 48px; 
        height: 48px;
    }

    .logo-mark {
        width: 100%; 
        height: 100%;
    }

    .main-brand {
        font-size: 72px;
    }
    
    .hero-heading {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-copy-row {
        justify-content: center;
    }

    .footer-copy-text {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .footer-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .success-message {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .success-text {
        margin: 0;
    }
    
    .success-okay-btn {
        width: 100%;
    }
}
