/* ============================================
   Web2LAN — Coming Soon
   Static site for S3 hosting
   ============================================ */

:root {
    --color-bg: #0f172a;
    --color-bg-elevated: #1e293b;
    --color-surface: #334155;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-accent: #38bdf8;
    --color-accent-dim: #0ea5e9;
    --color-accent-glow: rgba(56, 189, 248, 0.25);
    --color-success: #34d399;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Gradient orbs (background) */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.gradient-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    bottom: -50px;
    right: 20%;
}

/* Layout */
.header,
.main,
.footer {
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-surface);
    border-radius: 6px;
    color: var(--color-accent);
}

.logo-text {
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-surface);
}

.lang-btn {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.lang-btn:hover {
    color: var(--color-text);
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
    color: var(--color-accent);
    background: var(--color-bg-elevated);
    border-color: var(--color-surface);
}

.lang-btn + .lang-btn {
    margin-left: 0.25rem;
}

/* Main */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.875rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-surface);
    border-radius: 999px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-title-accent {
    display: block;
    color: var(--color-accent);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-cta {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: var(--color-bg);
    box-shadow: 0 4px 14px var(--color-accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn--inline {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* Features */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-surface);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent-glow);
}

.feature-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* CTA / Contact */
.cta {
    padding: 3rem 0 4rem;
}

.cta-card {
    padding: 2.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 520px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.cta-desc {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-form {
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-surface);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}

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

.input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.form-error {
    font-size: 0.875rem;
    color: #f87171;
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-surface);
}

.footer-copy,
.footer-domain {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-domain {
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

/* Success state (form submitted) */
.cta-form.is-submitted .form-row,
.cta-form.is-submitted .form-note {
    display: none;
}

.cta-form .success-message {
    display: none;
    color: var(--color-success);
    font-weight: 500;
    text-align: center;
}

.cta-form.is-submitted .success-message {
    display: block;
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero {
        padding: 2.5rem 0 3.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .btn--inline {
        width: 100%;
    }
}
