html { background: #020617; }
:root {
  --bg: #020617;
  --surface: #0f172a;
  --surface-hover: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --text-inverse: #0f172a;
  --muted: #94a3b8;
  --blue-glow: #38bdf8;
  --teal: #2dd4bf;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  
  /* Orb Colors (Dark Theme AquaCloud Associations) */
  --orb-1-color: #0284c7;
  --orb-2-color: #0d9488;
  --orb-3-color: #4f46e5;
  --grid-color: rgba(255, 255, 255, 0.03);
  --header-bg: rgba(2, 6, 23, 0.6);
  --header-bg-scrolled: rgba(2, 6, 23, 0.9);
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  --text: #0f172a;
  --text-inverse: #ffffff;
  --muted: #64748b;
  --blue-glow: #0284c7;
  --teal: #0d9488;
  
  /* Orb Colors (Light Theme AquaCloud Associations) */
  --orb-1-color: #0ea5e9; /* Light Blue / Water */
  --orb-2-color: #14b8a6; /* Teal / Ocean */
  --orb-3-color: #38bdf8; /* Sky Blue / Cloud */
  --grid-color: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(255, 255, 255, 0.6);
  --header-bg-scrolled: rgba(255, 255, 255, 0.9);
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { transition: opacity 0.15s ease-in, visibility 0.15s ease-in;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Background & Grid */
.bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.12; animation: drift 30s ease-in-out infinite alternate; }
.orb-1 { width: 600px; height: 600px; background: var(--orb-1-color); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--orb-2-color); bottom: -100px; right: -100px; animation-direction: alternate-reverse; animation-duration: 25s; }
.orb-3 { width: 400px; height: 400px; background: var(--orb-3-color); top: 40%; left: 40%; animation-duration: 35s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px, 30px) scale(1.05); } }

.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page { display: none; position: relative; z-index: 1; min-height: 100vh; flex-direction: column; padding-top: var(--safe-area-top); padding-bottom: var(--safe-area-bottom); }
.page.active { display: flex; }

.text-gradient {
  background: linear-gradient(135deg, var(--blue-glow), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  font-weight: 800;
}

/* Header & Nav */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(1rem + var(--safe-area-top)) max(2rem, var(--safe-area-left)) calc(1rem + var(--safe-area-bottom)) max(2rem, var(--safe-area-right));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  transition: all 0.3s ease;
}
header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; font-family: 'Onest', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--text); display: grid; place-items: center; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.logo-mark svg path, .logo-mark svg circle { fill: var(--bg); opacity: 1; }

nav { display: flex; align-items: center; gap: 0.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; margin-left: 1.8rem; transition: color 0.2s; }
nav a:hover { color: var(--text); }

.btn-nav, .lang-btn, .theme-btn {
  margin-left: 1.8rem; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text) !important; font-size: 0.85rem !important; transition: all 0.2s; cursor: pointer;
}
.btn-nav:hover, .lang-btn:hover, .theme-btn:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text) !important; }

.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Home Hero */
.home-main { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 4rem max(5%, var(--safe-area-left)) 4rem max(5%, var(--safe-area-right)); gap: 4rem; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero { flex: 1; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; color: var(--muted); background: var(--surface); margin-bottom: 1.5rem; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.hero h1 { font-family: 'Onest', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; color: var(--text); margin-bottom: 1.2rem; }
.hero h1 .acc { color: var(--text); }
.hero p { font-size: 1.1rem; line-height: 1.6; color: var(--muted); margin-bottom: 2.5rem; font-weight: 400; max-width: 500px; }

.hero-stats { display: flex; gap: 2.5rem; margin-bottom: 3rem; }
.stat-num { font-family: 'Onest', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-num span { color: var(--muted); font-weight: 400; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.partners { border-top: 1px solid var(--border); padding-top: 2rem; }
.partners-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.partner-logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.partner-logo { display: flex; align-items: center; gap: 6px; opacity: 0.5; transition: opacity 0.3s; filter: grayscale(1); cursor: pointer; text-decoration: none; }
.partner-logo:hover { opacity: 1; filter: grayscale(0); }
.partner-logo .pname { font-size: 0.85rem; font-weight: 700; color: var(--text); }

/* Form Side (Linear/Vercel style card) */
.form-side { flex: 0 0 400px; max-width: 100%; }
.glass-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem 2rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.glass-card h2 { font-family: 'Onest', sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.glass-card .subtitle { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }

.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.5rem; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0.7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.social-btn:hover { background: var(--surface-hover); border-color: var(--border-hover); }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.75rem; color: var(--muted); }

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; }
.field-wrap { position: relative; }
.field-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; z-index: 2; }
.field input, .field select, .field textarea, .bare-input { width: 100%; padding: 0.75rem 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.field-wrap input { padding-left: 38px; }
.field-wrap input[type="password"], .field-wrap input.password-shown { padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus, .bare-input:focus { outline: none; border-color: var(--text); background: var(--surface-hover); }
.field input::placeholder, .field textarea::placeholder, .bare-input::placeholder { color: #555; }

.form-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.remember input[type=checkbox] { accent-color: var(--text); width: 14px; height: 14px; }
.forgot { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.forgot:hover { color: var(--text); }

.btn-submit, .btn-primary { width: 100%; padding: 0.85rem; border-radius: 8px; border: none; background: var(--text); color: var(--bg); font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 0 0 1px var(--border), 0 4px 14px var(--border); }
.btn-submit:hover, .btn-primary:hover { opacity: 0.9; box-shadow: 0 0 0 1px var(--border-hover), 0 6px 20px var(--border-hover); transform: translateY(-1px); }
.btn-submit:active, .btn-primary:active { transform: scale(0.98) translateY(1px); }

.btn-secondary { width: 100%; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); }

.signup-link { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.signup-link span:last-child { color: var(--text); cursor: pointer; font-weight: 500; }

.trust-badges { display: flex; justify-content: center; gap: 16px; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--muted); }
.trust-badge svg { color: var(--text); }
.theme-btn svg { color: var(--text); pointer-events: none; }
.theme-btn svg { color: var(--text); pointer-events: none; }

/* Password Toggle */
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; z-index: 5; pointer-events: auto; }
.password-toggle svg { position: static; transform: none; pointer-events: none; width: 16px; height: 16px; }
.password-toggle:hover { color: var(--text); }
.password-toggle.visible { color: var(--text); }

/* ========== CYRILLIC TYPOGRAPHY ========== */
:lang(ru) {
    font-family: 'Golos Text', 'Inter', -apple-system, sans-serif;
}
:lang(ru) h1, :lang(ru) h2, :lang(ru) h3, :lang(ru) .stat-num, :lang(ru) .price-amount {
    font-family: 'Onest', sans-serif;
}
:lang(ru) .logo {
    font-family: 'Onest', sans-serif;
}

/* Pages Content (Features, Pricing, etc) */
.page-content { max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; width: 100%; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .current { color: var(--text); }
.page-header { margin-bottom: 3rem; text-align: left; }
.page-header[style*="text-align:center"] p, .page-header[style*="text-align: center"] p { margin-left: auto; margin-right: auto; }
.page-header h1 { font-family: 'Onest', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 600px; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feat-card { border-radius: 12px; padding: 2rem; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s; }
.feat-card:hover { border-color: var(--border-hover); }
.feat-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 1.2rem; font-size: 1.1rem; }
.feat-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.feat-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.price-card { display: flex; flex-direction: column; border-radius: 12px; padding: 2rem; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s; position: relative; }
.price-card:hover { border-color: var(--border-hover); }
.price-card.popular { border-color: var(--text); }
.popular-badge { position: absolute; top: 1.5rem; right: 1.5rem; padding: 0.3rem 0.8rem; border-radius: 100px; background: var(--text); color: var(--bg); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.price-plan { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-amount { font-family: 'Onest', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.04em; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.5; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.price-features li:last-child { border-bottom: none; }
.feat-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; flex-shrink: 0; }
.feat-check svg { color: var(--text); width: 10px; height: 10px; }
.price-btn { width: 100%; padding: 0.8rem; border-radius: 8px; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: auto; }
.price-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.price-btn-outline:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text); }
.price-btn-fill { background: var(--text); border: none; color: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 4px 14px var(--border); }
.price-btn-fill:hover { opacity: 0.9; box-shadow: 0 0 0 1px var(--border-hover), 0 6px 20px var(--border-hover); transform: translateY(-1px); }
.price-btn:active { transform: scale(0.98); }

/* Support Grid */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.support-card { border-radius: 12px; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.3s; display: flex; gap: 1.2rem; }
.support-card:hover { border-color: var(--border-hover); }
.support-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; }
.support-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.support-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.badge { display: inline-block; margin-top: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 500; border: 1px solid var(--border); }

/* FAQ */
.faq { margin-top: 4rem; max-width: 800px; }
.faq h2 { font-family: 'Onest', sans-serif; font-size: 1.8rem; font-weight: 600; margin-bottom: 2rem; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 500; color: var(--text); }
.faq-q svg { transition: transform 0.3s; width: 20px; height: 20px; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-top: 1rem; display: none; padding-right: 2rem; }
.faq-item.open .faq-a { display: block; }

/* Enterprise Hero */
.enterprise-hero { border-radius: 16px; padding: 3rem; margin-bottom: 3rem; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.ent-pills { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ent-pill { padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 500; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }

/* Dashboard overrides for cleaner look */
.dashboard { display: flex; height: calc(100vh - 70px - var(--safe-area-top) - var(--safe-area-bottom)); }
.sidebar { width: 240px; background: var(--bg); border-right: 1px solid var(--border); padding: 1.5rem 1rem; }
.sidebar-item { padding: 0.6rem 0.8rem; border-radius: 6px; color: var(--muted); margin-bottom: 0.2rem; }
.sidebar-item:hover { background: var(--surface); color: var(--text); }
.sidebar-item.active { background: var(--surface); color: var(--text); font-weight: 500; }
.sidebar-label { font-size: 0.7rem; color: #555; margin: 1.5rem 0 0.5rem 0.8rem; }
.sidebar-divider { display: none; }
.dash-main { background: var(--bg); }
.storage-bar-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.storage-fill { background: var(--text); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.files-table th { border-bottom: 1px solid var(--border); color: #666; }
.files-table td { border-bottom: 1px solid var(--border); color: var(--muted); }
.file-icon { background: var(--bg); border: 1px solid var(--border); color: var(--muted); }

/* Modals */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { position: relative; border-radius: 12px; padding: 2.5rem; max-width: 440px; width: 100%; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0,0,0,0.8); animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; padding: 0.5rem; }
.modal-close:hover { color: var(--text); }
.modal h3 { font-family: 'Onest', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.modal>p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 1.5rem; }

/* Toast */
.toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 600; padding: 1rem 1.2rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text); opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.3s; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); }
.toast-icon.success { color: var(--success); }
.toast-icon.error { color: var(--danger); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Responsive */
@media(max-width: 1024px) {
  .home-main { flex-direction: column; padding: 2rem max(5%, var(--safe-area-left)); text-align: center; }
  .hero { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .partner-logos { justify-content: center; }
  .form-side { flex: none; width: 100%; max-width: 440px; }
  nav .hide-mob { display: none; }
  .dashboard { flex-direction: column; height: auto; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 1rem; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-label { display: none; }
  .sidebar-item { min-width: max-content; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
}

@media(max-width: 768px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .page-header h1 { font-size: 2rem; }
  .enterprise-hero { padding: 2rem; flex-direction: column; text-align: center; justify-content: center; }
  .ent-pills { justify-content: center; }
  .menu-toggle { display: block; }
  nav { position: fixed; top: calc(70px + var(--safe-area-top)); right: 0; background: var(--surface); flex-direction: column; padding: 2rem; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: translateX(100%); transition: transform 0.3s ease; z-index: 99; width: 100%; max-width: 300px; box-shadow: -8px 0 24px rgba(0,0,0,0.5); }
  nav.open { transform: translateX(0); }
  nav a { margin: 0; padding: 1rem; width: 100%; border-bottom: 1px solid var(--border); text-align: left; }
  .btn-nav, .lang-btn { margin: 1rem 0 0 0; width: 100%; }
}

/* --- Typography Optimization --- */
body {
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Onest', -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

h1 { letter-spacing: -0.04em; }

button, .btn-primary, .btn-secondary, .btn-submit, .btn-nav, .price-btn {
  font-family: 'Onest', sans-serif;
  letter-spacing: -0.01em;
}





