@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
--bg: #09090B;
--bg-surface: #111113;
--bg-surface-2: #1A1A1D;
--bg-surface-3: #2A2A2E;
--bg-hover: rgba(212, 162, 127, 0.04);
--bg-glass: rgba(9, 9, 11, 0.88);

--border: rgba(255, 255, 255, 0.06);
--border-strong: rgba(255, 255, 255, 0.12);
--border-glow: rgba(212, 162, 127, 0.35);

--text: #FDFDF7;
--text-secondary: #9E9E9E;
--text-muted: #5E5E5E;

--primary: #D4A27F;
--primary-hover: #C08E6A;
--primary-glow: rgba(212, 162, 127, 0.25);
--primary-container: rgba(212, 162, 127, 0.08);
--primary-container-strong: rgba(212, 162, 127, 0.14);
--on-primary: #09090B;

--accent-warm: #E8A87C;
--accent-warm-glow: rgba(232, 168, 124, 0.2);
--accent-warm-bg: rgba(232, 168, 124, 0.06);

--accent-rose: #C9897D;
--accent-rose-glow: rgba(201, 137, 125, 0.15);

--accent-green: #8BBF7A;
--accent-green-glow: rgba(139, 191, 122, 0.2);
--accent-green-bg: rgba(139, 191, 122, 0.07);

--accent-amber: #D4A27F;
--accent-amber-bg: rgba(212, 162, 127, 0.08);

--error: #E85D5D;
--success: #8BBF7A;
--warning: #D4A27F;

--radius-sm: 6px;
--radius: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;

--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", "Fira Code", monospace;

--transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
--transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
--shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
--shadow-1: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
--shadow-2: 0 8px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
--shadow-3: 0 16px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
--shadow-glow: 0 0 40px rgba(212, 162, 127, 0.08);
--nav-h: 64px;
}

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

html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}

body {
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
line-height: 1.6;
font-size: 14px;
overflow-x: hidden;
}

.page-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
}

::selection {
background: rgba(212, 162, 127, 0.35);
color: var(--text);
}

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

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-fluid { width: 100%; padding: 0 32px; max-width: 100%; }
.container--narrow { max-width: 800px; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 22px;
border-radius: var(--radius);
font-size: 13px;
font-weight: 600;
font-family: var(--font);
border: none;
cursor: pointer;
transition: var(--transition);
text-decoration: none;
position: relative;
overflow: hidden;
}
.btn:hover { text-decoration: none; }

.btn-primary {
background: var(--primary);
color: var(--on-primary);
box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
background: var(--primary-hover);
box-shadow: 0 4px 20px var(--primary-glow);
transform: translateY(-1px);
text-decoration: none;
}

.btn-tonal {
background: var(--primary-container-strong);
color: var(--primary);
border: 1px solid rgba(212, 162, 127, 0.18);
}
.btn-tonal:hover { background: var(--primary-container); border-color: var(--primary); text-decoration: none; }

.btn-outline {
background: transparent;
color: var(--primary);
border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-container); text-decoration: none; }

.btn-outline-white {
background: transparent;
color: var(--text);
border: 1px solid var(--border-strong);
}
.btn-outline-white:hover { border-color: var(--text-secondary); color: var(--text); background: var(--bg-hover); text-decoration: none; }

.btn-text { background: transparent; color: var(--primary); padding: 8px 14px; }
.btn-text:hover { background: var(--primary-container); text-decoration: none; }

.btn-black {
background: var(--bg-surface-2);
color: var(--text);
border: 1px solid var(--border-strong);
}
.btn-black:hover { background: var(--bg-surface-3); border-color: var(--border-glow); text-decoration: none; }

.announce-bar {
background: linear-gradient(90deg, var(--primary) 0%, var(--accent-warm) 100%);
color: var(--on-primary);
text-align: center;
padding: 8px 16px;
font-size: 13px;
font-weight: 600;
position: relative;
z-index: 1001;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
height: 36px;
flex-shrink: 0;
}
.announce-bar__link {
color: var(--on-primary);
font-weight: 700;
text-decoration: underline;
display: inline-flex;
align-items: center;
gap: 4px;
}
.announce-bar__link:hover { text-decoration: none; opacity: 0.9; }

.navbar {
position: sticky;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: rgba(9, 9, 11, 0.6);
backdrop-filter: blur(24px) saturate(1.4);
-webkit-backdrop-filter: blur(24px) saturate(1.4);
border-bottom: 1px solid transparent;
transition: var(--transition);
}
.navbar.scrolled {
border-bottom-color: var(--border);
background: rgba(9, 9, 11, 0.92);
box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
max-width: 1280px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
height: var(--nav-h);
padding: 0 32px;
gap: 24px;
}

.navbar__brand {
display: flex;
align-items: center;
gap: 10px;
font-size: 16px;
font-weight: 700;
color: var(--text);
text-decoration: none;
letter-spacing: -0.3px;
flex-shrink: 0;
}
.navbar__brand:hover { text-decoration: none; color: var(--text); }

.navbar__brand-icon {
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, var(--primary-container-strong), var(--primary-container));
border: 1px solid rgba(212, 162, 127, 0.2);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: var(--primary);
}

.navbar__logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; }

.navbar__nav {
display: flex;
gap: 2px;
align-items: center;
}

.navbar__link {
padding: 6px 14px;
border-radius: var(--radius);
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
transition: var(--transition);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 4px;
font-family: var(--font);
background: none;
border: none;
cursor: pointer;
}
.navbar__link:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.navbar__link--active { color: var(--primary); background: var(--primary-container); }

.navbar__caret { font-size: 10px; transition: transform 0.2s ease; }
.navbar__dropdown:hover .navbar__caret { transform: rotate(180deg); }

.navbar__dropdown { position: relative; }

.navbar__mega {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(8px);
min-width: 320px;
background: var(--bg-surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-3);
padding: 12px;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
z-index: 200;
}
.navbar__dropdown:hover > .navbar__mega,
.navbar__dropdown:focus-within > .navbar__mega {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}

.navbar__mega-grid { display: flex; flex-direction: column; gap: 4px; }

.navbar__mega-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: var(--radius);
color: var(--text-secondary);
text-decoration: none;
transition: var(--transition);
}
.navbar__mega-item:hover {
background: var(--primary-container);
color: var(--text);
text-decoration: none;
}
.navbar__mega-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background: var(--primary-container-strong);
border: 1px solid rgba(212, 162, 127, 0.12);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: var(--primary);
flex-shrink: 0;
}
.navbar__mega-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.navbar__mega-item span { display: block; font-size: 11px; color: var(--text-muted); }

.navbar__actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}

.navbar__btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 18px;
border-radius: var(--radius);
font-size: 13px;
font-weight: 600;
font-family: var(--font);
text-decoration: none;
transition: var(--transition);
cursor: pointer;
border: none;
}
.navbar__btn--primary {
background: var(--primary);
color: var(--on-primary);
box-shadow: 0 2px 12px var(--primary-glow);
}
.navbar__btn--primary:hover {
background: var(--primary-hover);
box-shadow: 0 4px 20px var(--primary-glow);
transform: translateY(-1px);
text-decoration: none;
}
.navbar__btn--ghost {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-strong);
box-shadow: none;
}
.navbar__btn--ghost:hover {
border-color: var(--text-secondary);
color: var(--text);
background: var(--bg-hover);
text-decoration: none;
}

.navbar__burger {
display: none;
width: 40px;
height: 40px;
border-radius: var(--radius);
background: transparent;
border: 1px solid var(--border-strong);
cursor: pointer;
transition: var(--transition);
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5px;
padding: 0;
}
.navbar__burger span {
display: block;
width: 18px;
height: 2px;
background: var(--text-secondary);
border-radius: 1px;
transition: var(--transition);
}
.navbar__burger:hover { background: var(--bg-hover); border-color: var(--text-secondary); }
.navbar__burger:hover span { background: var(--text); }

.mobile-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 1100;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
position: fixed;
top: 0;
right: -320px;
width: 300px;
height: 100vh;
background: var(--bg-surface);
border-left: 1px solid var(--border);
box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
z-index: 1200;
transition: right 0.3s cubic-bezier(0.2, 0, 0, 1);
padding: 16px;
overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer__head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding: 8px;
}
.mobile-drawer__brand { font-size: 15px; font-weight: 700; color: var(--text); }
.mobile-drawer__close {
width: 36px;
height: 36px;
border-radius: var(--radius);
background: transparent;
border: 1px solid var(--border);
color: var(--text-secondary);
font-size: 16px;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
}
.mobile-drawer__close:hover { background: var(--bg-hover); color: var(--text); }

.mobile-drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__link {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: var(--radius);
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
transition: var(--transition);
text-decoration: none;
}
.mobile-drawer__link:hover { background: var(--primary-container); color: var(--primary); text-decoration: none; }
.mobile-drawer__link i { width: 20px; text-align: center; font-size: 16px; color: var(--text-muted); }
.mobile-drawer__link--accent { color: var(--primary); }
.mobile-drawer__divider { height: 1px; background: var(--border); margin: 8px 0; }

.footer-brand__logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 12px; }

.main-content { flex: 1; }

@media (max-width: 1024px) {
.navbar__nav { display: none; }
.navbar__burger { display: flex; }
.container { padding: 0 20px; }
}

@media (max-width: 768px) {
.container { padding: 0 16px; }
.navbar__inner { padding: 0 16px; }
}

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

html.theme-light {
--bg: #FDFDF7;
--bg-surface: #FFFFFF;
--bg-surface-2: #F3F3F3;
--bg-surface-3: #EEEEEE;
--bg-hover: rgba(212, 162, 127, 0.04);
--border: rgba(0, 0, 0, 0.08);
--border-strong: rgba(0, 0, 0, 0.14);
--text: #171717;
--text-secondary: #505050;
--text-muted: #707070;
--primary: #D4A27F;
--primary-hover: #C08E6A;
--primary-glow: rgba(212, 162, 127, 0.15);
--primary-container: rgba(212, 162, 127, 0.08);
--primary-container-strong: rgba(212, 162, 127, 0.12);
--on-primary: #09090B;
--accent-warm: #C08E6A;
--accent-warm-glow: rgba(192, 142, 106, 0.15);
--accent-warm-bg: rgba(192, 142, 106, 0.06);
--accent-rose: #B87A6E;
--accent-rose-glow: rgba(184, 122, 110, 0.1);
--accent-green: #5A9A4A;
--accent-green-glow: rgba(90, 154, 74, 0.15);
--accent-green-bg: rgba(90, 154, 74, 0.06);
--error: #CC4444;
--success: #5A9A4A;
--warning: #C08E6A;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow-1: 0 2px 8px rgba(0,0,0,0.04);
--shadow-2: 0 4px 12px rgba(0,0,0,0.06);
--shadow-3: 0 8px 24px rgba(0,0,0,0.08);
--shadow-glow: none;
--bg-glass: rgba(253, 253, 247, 0.88);
}
html.theme-light ::selection { background: rgba(212, 162, 127, 0.25); color: var(--text); }
html.theme-light .navbar { background: rgba(253, 253, 247, 0.8); }
html.theme-light .navbar.scrolled { box-shadow: var(--shadow-2); }
html.theme-light .surface-card { background: var(--bg-surface); border-color: var(--border); }
html.theme-light .plan-card--featured { background: var(--bg-surface); box-shadow: var(--shadow-2); }
html.theme-light .stat-item__icon { background: var(--primary-container); border: 1px solid rgba(212, 162, 127, 0.15); box-shadow: none; }
html.theme-light .navbar__brand-icon { background: var(--primary-container); border: 1px solid rgba(212, 162, 127, 0.15); box-shadow: none; }
html.theme-light .hero__terminal { background: #ffffff; border-color: var(--border-strong); box-shadow: var(--shadow-3); }
html.theme-light .hero__float { background: rgba(255, 255, 255, 0.95); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
html.theme-light .navbar__btn--primary { box-shadow: none; }
