/*
Theme Name: Onnixx Coming Soon
Theme URI: https://onnixx.com
Author: Eagle IT Solutions
Author URI: https://eagleitsolutions.com
Description: Coming-soon theme for Onnixx. Matches the app's design system — Geist typography, slate palette, split-screen layout, built-in email capture.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onnixx-coming-soon
Tags: coming-soon, landing-page
*/

/* ============================================================
   Design Tokens — mirrors the app's shadcn/ui palette
   ============================================================ */
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --ring: 222.2 84% 4.9%;

    --font-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --radius: 0.375rem;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Layout — split screen (mirrors .form-section/.form-column/.bg-side)
   ============================================================ */
.page {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .page {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100vw;
        max-width: 100vw;
    }
}

/* --- Content panel --- */
.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
    min-height: 100vh;
    width: 100%;
}

.content-panel > * {
    width: 100%;
    max-width: 520px;
}

.content-inner {
    max-width: 520px;
    width: 100%;
    margin: auto 0;
    padding: 4rem 0;
}

/* --- Visual panel --- */
.visual-panel {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(222.2 47.4% 11.2%) 0%, hsl(222.2 84% 4.9%) 100%);
}

@media (min-width: 1024px) {
    .visual-panel {
        display: block;
    }
}

/* Animated gradient orbs in the visual panel */
.visual-panel::before,
.visual-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.visual-panel::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(217 91% 60% / 0.5), transparent 70%);
    top: -15%;
    right: -15%;
    animation: float 18s ease-in-out infinite alternate;
}

.visual-panel::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsl(270 70% 55% / 0.4), transparent 70%);
    bottom: -10%;
    left: -10%;
    animation: float 22s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -40px) scale(1.1); }
}

/* Grid pattern on the visual panel */
.visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Visual panel content (tagline card) */
.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(2rem, 4vw, 4rem);
    max-width: 640px;
    color: hsl(210 40% 98%);
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
    width: fit-content;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.visual-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.visual-headline {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.35s forwards;
}

.visual-headline-accent {
    background: linear-gradient(135deg, #a5b4fc 0%, #93c5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.visual-tagline {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 440px;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.visual-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.visual-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.visual-feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #67e8f9;
}

/* ============================================================
   Logo
   ============================================================ */
.logo {
    display: block;
    height: auto;
    max-width: 180px;
    opacity: 0;
    animation: fadeDown 0.6s ease forwards;
}

.logo img,
.custom-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   Hero content (left panel)
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.2s forwards;
}

.hero-lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.3s forwards;
}

/* ============================================================
   Notify Form — styled like Onnixx login inputs
   ============================================================ */
.notify {
    opacity: 0;
    animation: fadeUp 0.9s ease 0.4s forwards;
}

.notify-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.notify-row {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
}

.notify-input {
    flex: 1;
    height: 2.5rem;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.notify-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.notify-input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.notify-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.5rem;
    padding: 0 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.notify-submit:hover {
    opacity: 0.9;
}

.notify-submit:active {
    transform: translateY(1px);
}

.notify-submit svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.notify-submit:hover svg {
    transform: translateX(2px);
}

.notify-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #059669;
    min-height: 1.25rem;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.notify-message.error { color: hsl(0 84% 60%); }

.notify-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    opacity: 0;
    animation: fadeUp 0.9s ease 0.6s forwards;
}

.footer-contact a {
    color: hsl(var(--foreground));
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.footer-contact a:hover {
    border-bottom-color: hsl(var(--foreground));
}

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   Responsive adjustments
   ============================================================ */
@media (max-width: 640px) {
    .notify-row {
        flex-direction: column;
    }
    .notify-submit {
        width: 100%;
    }
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
