/* ========================================
   BASE CSS - OneView Landing Page
   Complete Design System
   ======================================== */

/* CSS Variables */
:root {
    /* Brand colors */
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;

    --amber-500: #F59E0B;
    --amber-100: #FEF3C7;
    --green-500: #10B981;
    --green-100: #D1FAE5;
    --purple-500: #8B5CF6;
    --purple-100: #EDE9FE;
    --red-500: #EF4444;
    --red-100: #FEE2E2;

    /* Neutrals */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --slate-950: #020617;
    --white: #FFFFFF;

    /* Semantic */
    --primary: var(--blue-600);
    --primary-hover: var(--blue-700);
    --primary-light: var(--blue-50);
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-400);
    --bg-primary: var(--white);
    --bg-secondary: var(--slate-50);
    --bg-dark: var(--slate-900);
    --bg-darker: var(--slate-950);
    --border-color: var(--slate-200);
    --danger: var(--red-500);
    --success: var(--green-500);
    --warning: var(--amber-500);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 200ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    list-style: none;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: var(--sp-6); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: var(--sp-4); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); margin-bottom: var(--sp-3); }

p {
    margin-bottom: var(--sp-4);
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Section ========== */
section {
    padding: var(--sp-20) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--sp-16);
}

.section-header h2 {
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: var(--sp-3);
    padding: var(--sp-1) var(--sp-3);
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.section-label--light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-400);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg {
    padding: var(--sp-4) var(--sp-8);
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--sp-2) var(--sp-4);
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(37, 99, 235, 0);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    font-size: 1rem;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.nav-link {
    padding: var(--sp-2) var(--sp-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: var(--white);
    margin-left: var(--sp-2);
    padding: var(--sp-2) var(--sp-5);
    border-radius: var(--radius-full);
}

.nav-link.nav-cta:hover {
    background: var(--primary-hover);
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--slate-300);
    border-radius: 1px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
    background: var(--slate-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-link {
    padding: var(--sp-3) var(--sp-4);
    font-size: 1rem;
}

.nav-mobile .nav-cta {
    margin-left: 0;
    margin-top: var(--sp-2);
    text-align: center;
    border-radius: var(--radius-lg);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--slate-300);
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.lang-btn .flag {
    font-size: 1rem;
}

.arrow-icon {
    transition: transform var(--transition-base);
}

.lang-btn.active .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown form {
    padding: var(--sp-1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.lang-option:hover {
    background: var(--slate-100);
}

.lang-option.active {
    background: var(--primary);
    color: var(--white);
}

/* ========== Messages ========== */
.messages-container {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-modal);
    width: 100%;
    max-width: 560px;
    padding: 0 var(--sp-4);
}

.message {
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-3);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.9375rem;
    animation: slideDown 0.4s var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.message-success {
    background: var(--green-500);
    color: var(--white);
}

.message-error {
    background: var(--red-500);
    color: var(--white);
}

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

/* ========== Footer ========== */
.footer {
    background: var(--bg-dark);
    color: var(--slate-400);
    padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.footer-logo {
    margin-bottom: var(--sp-4);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--slate-400);
    margin-bottom: var(--sp-5);
    line-height: 1.6;
}

.footer-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.tech-badge {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--slate-400);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--sp-5);
    letter-spacing: 0;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-col a {
    color: var(--slate-400);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col p {
    margin: 0;
}

.footer-col p a {
    color: var(--blue-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
}

.footer-bottom p {
    margin: 0;
}

