:root {
    /* Color Palette - Cyber Space */
    --brand-blue: #167abd;
    --brand-blue-lite: #43b1ff;
    --brand-violet: #8b5cf6;
    --brand-accent: #00f2ff;
    
    --bg-deep: #050a14;
    --bg-surface: rgba(10, 18, 35, 0.7);
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(67, 177, 255, 0.2);
    
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(67, 177, 255, 0.15);
    
    --radius-xl: 32px;
    --radius-lg: 16px;
    
    --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, #0a1223 0%, #050a14 100%);
}

.aurora-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.blob-1 {
    background: var(--brand-blue);
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: var(--brand-violet);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: var(--brand-accent);
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Layout */
main {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

/* Typography Overhaul */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 strong {
    color: var(--brand-blue-lite);
    -webkit-text-fill-color: var(--brand-blue-lite);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* Scanner Loading Simulation */
.scanner-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.scanner-overlay.loaded {
    opacity: 0;
    visibility: hidden;
}

.scan-line {
    width: 200px;
    height: 2px;
    background: var(--brand-blue-lite);
    box-shadow: 0 0 20px var(--brand-blue-lite);
    position: relative;
    overflow: hidden;
}

.scan-text {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--brand-blue-lite);
    letter-spacing: 2px;
}

/* Nav Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

/* Premium Cards */
.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.os-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.os-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.os-card:hover::before {
    opacity: 1;
}

.os-card:hover {
    transform: translateY(-10px);
    border-color: rgba(67, 177, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.os-card i.os-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

.os-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.os-card p {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* State Management */
.os-card.recommended {
    border-color: var(--brand-blue-lite);
    background: linear-gradient(135deg, rgba(67, 177, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.recommended-label {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--brand-blue-lite);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blur effect for non-detected platform */
.os-card.not-detected {
    filter: blur(4px);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.os-card.not-detected:hover {
    filter: blur(0);
    opacity: 1;
}

/* Form Section Styles */
.support-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 4rem;
    backdrop-filter: blur(20px);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1.2rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-blue-lite);
    background: rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-blue-lite);
    color: white;
    box-shadow: 0 4px 20px rgba(67, 177, 255, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #5dc0ff;
    box-shadow: 0 8px 30px rgba(67, 177, 255, 0.6);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Step Indicators - Connected Workflow */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 6rem;
    position: relative;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
}

/* Connecting lines between steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 1px;
    background: linear-gradient(to right, var(--brand-blue-lite), transparent);
    opacity: 0.3;
}

.step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand-blue-lite);
    background: rgba(255,255,255,0.05);
    z-index: 2;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* macOS Special Guide */
.special-guide {
    margin-bottom: 4rem;
}

.guide-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.guide-card i {
    font-size: 2.5rem;
    color: white;
}

.guide-text h4 {
    color: var(--brand-blue-lite);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.guide-text p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.guide-text b {
    color: white;
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    z-index: 100;
}

.wa-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Dynamic OS Themes */
body.os-windows { --brand-blue-lite: #0078d4; }
body.os-macos { --brand-blue-lite: #ffffff; }
body.os-macos .btn-primary { color: #050a14; }
body.os-macos .step-num { background: #ffffff !important; color: #050a14 !important; }
body.os-macos .recommended-label { color: #050a14; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    h1 { font-size: 3rem; }
}
