/* ==========================================================================
   AI & Things - Single Page Showcase Design (No Scroll / Apple-Style)
   ========================================================================== */

:root {
    --bg: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-muted: #424245;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.16);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, sans-serif;
    
    --transition-apple: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Lock Scroll */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100vh;
    width: 100vw;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden; /* Lock scroll strictly */
    display: flex;
    flex-direction: column;
}

/* Ambient Radial Glow Animations */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, rgba(6, 182, 212, 0.02) 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 10s ease-in-out infinite alternate;
}

.ambient-glow-secondary {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: drift-glow 15s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes drift-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Apple-style Frosted Navbar */
.header {
    height: 48px;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    opacity: 0.85;
    text-decoration: none;
    transition: var(--transition-apple);
}
.logo:hover {
    opacity: 1;
}
.logo svg {
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-apple);
}
.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav-action {
    font-size: 0.7rem;
    font-weight: 400;
    background-color: var(--text-primary);
    color: var(--bg);
    padding: 4px 10px;
    border-radius: 98px;
    text-decoration: none;
    transition: var(--transition-apple);
}
.btn-nav-action:hover {
    background-color: #ffffff;
    transform: scale(1.02);
}

/* Main Showcase (Centered & Flexed to Fit Screen) */
.showcase-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

/* Left Side Content */
.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.25rem, 5vh, 3.75rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff;
}

.gradient-accent {
    background: linear-gradient(135deg, #ffffff 40%, #c2c2c7 70%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vh, 1.05rem);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-secondary);
    text-wrap: balance;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Right Side Product Visual */
.product-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-frame-wrapper {
    width: 100%;
    max-width: 380px;
    display: flex;
    justify-content: center;
}

.art-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 28px;
    border: 1px solid var(--border);
    background-color: #0b0b0b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(255, 255, 255, 0.01);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-apple);
    animation: float-hardware 6s ease-in-out infinite;
}
.art-frame:hover {
    border-color: var(--border-light);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 
                0 0 50px rgba(255, 255, 255, 0.03);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reflection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* Float Animation for Product Frame */
@keyframes float-hardware {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Form Styling */
.waitlist-form {
    width: 100%;
    max-width: 420px;
}

.input-wrapper {
    display: flex;
    background-color: #1d1d1f;
    border: 1px solid transparent;
    border-radius: 99px;
    padding: 5px;
    transition: var(--transition-apple);
}
.input-wrapper:focus-within {
    background-color: #000000;
    border-color: var(--border-light);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.6rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
}
.input-wrapper input::placeholder {
    color: #86868b;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--text-primary);
    color: var(--bg);
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 99px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-apple);
}
.btn-submit:hover {
    background-color: #ffffff;
}
.btn-submit svg {
    transition: transform 0.3s ease;
}
.btn-submit:hover svg {
    transform: translateX(2px);
}

.form-feedback {
    font-size: 0.75rem;
    margin-top: 10px;
    min-height: 1.2em;
    padding-left: 1.25rem;
}
.form-feedback.success { color: #30d158; }
.form-feedback.error { color: #ff453a; }

/* Minimalist Footer */
.footer {
    height: 48px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    background-color: #0c0c0d;
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

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

/* Staggered Entry Transitions */
.fade-in-stagger {
    opacity: 0;
    transform: translateY(15px);
    animation: slide-up-entry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    animation: scale-up-entry 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes slide-up-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-up-entry {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto; /* Allow scrolling only on small screens where container height exceeds viewport */
    }
    .showcase-container {
        padding: 40px 24px;
        height: auto;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .content-panel {
        align-items: center;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .nav-links {
        display: none;
    }
    .art-frame-wrapper {
        max-width: 280px;
    }
}
