/* ==========================================================================
   VORTEX CLOUD RENDER & VFX LAB — DESIGN SYSTEM
   Modern Minimalist Glassmorphism • Cyber-Space Theme
   ========================================================================== */

:root {
  /* Futuristic Color Palette */
  --bg-core: #04060c;
  --bg-surface: rgba(13, 18, 30, 0.6);
  --bg-surface-elevated: rgba(20, 27, 45, 0.7);
  --bg-glass-nav: rgba(4, 7, 14, 0.75);

  --accent-cyan: #00f5ff;
  --accent-cyan-subtle: rgba(0, 245, 255, 0.12);
  --accent-violet: #8a2be2;
  --accent-violet-subtle: rgba(138, 43, 226, 0.15);
  --accent-mint: #00ffa3;
  --accent-mint-subtle: rgba(0, 255, 163, 0.12);
  --accent-orchid: #c084fc;

  /* Translucent Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-cyan-glow: rgba(0, 245, 255, 0.35);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Rounded Geometry */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Blurs & Shadows */
  --blur-glass: blur(20px) saturate(190%);
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(0, 245, 255, 0.16);

  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* Offset for fixed header */
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 65% 45% at 15% 0%, rgba(138, 43, 226, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 45%, rgba(0, 245, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 50% 90%, rgba(0, 255, 163, 0.06) 0%, transparent 50%),
    var(--bg-core);
}

body.menu-locked {
  overflow: hidden;
}

::selection {
  background: var(--accent-cyan);
  color: #03060f;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Target Anchor scroll margin */
section[id], article[id], div[id] {
  scroll-margin-top: 96px;
}

/* Typography */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }

.mono { font-family: var(--font-mono); }

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

/* Shared UI Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.8rem;
}
.section-head h2 {
  margin: 1.1rem 0 0.8rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
  animation: pulse-kf 2s infinite ease-in-out;
}

@keyframes pulse-kf {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.4; }
}

/* Rounded Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00f5ff 0%, #0099ff 100%);
  color: #020712;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 245, 255, 0.45);
  background: #ffffff;
  color: #000000;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 2.2rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}
.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* ==========================================================================
   NAVIGATION BAR — 100% UNIFIED & NON-JUMPING
   ========================================================================== */

.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  background: var(--bg-glass-nav);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Fixed Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  flex-shrink: 0;
}
.brand-logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}
.brand-logo .logo-hl {
  color: var(--accent-cyan);
}

/* Unified Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0.2rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Animated Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: var(--radius-pill);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO & DIAGRAMS
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 2rem;
}

.hero-text p {
  font-size: 1.15rem;
  margin: 1.4rem 0 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  backdrop-filter: var(--blur-glass);
  transition: var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.4rem;
  color: var(--accent-cyan);
}

/* Hardware Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  backdrop-filter: var(--blur-glass);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spec-table tr:hover td {
  background: rgba(0, 245, 255, 0.02);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}
.status-pill.active {
  background: var(--accent-mint-subtle);
  color: var(--accent-mint);
  border-color: rgba(0, 255, 163, 0.3);
}
.status-pill.priority {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border-color: rgba(0, 245, 255, 0.3);
}

/* ==========================================================================
   CALCULATOR COMPONENT
   ========================================================================== */

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.btn-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-preset:hover,
.btn-preset.active {
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.55rem;
}
.form-group label span.val {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}
select:focus, input:focus, textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}

.calc-result-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  margin: 1.5rem 0;
}
.calc-result-box .price-tag {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.88rem;
}
.metric-row span:last-child {
  font-family: var(--font-mono);
  color: #ffffff;
}

/* Enterprise Request Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.col-full { grid-column: span 2; }

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
}

.notice-box {
  margin-top: 1.8rem;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.4);
  display: none;
}
.notice-box.visible {
  display: block;
  animation: slideFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notice-head {
  color: var(--accent-mint);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   DOCUMENTATION & CODE SNIPPETS
   ========================================================================== */

.docs-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  padding-block: 4rem;
}
.docs-nav {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.docs-nav-list a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
}
.docs-nav-list a:hover,
.docs-nav-list a.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
}

/* Mobile Quick Bar for Docs */
.docs-mobile-bar {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.6rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.docs-mobile-bar a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.docs-mobile-bar a.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
}

.code-wrapper {
  position: relative;
  margin-block: 1.2rem;
}
.code-container {
  background: #020409;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.55;
}
.btn-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-mono);
}
.btn-copy:hover {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER — SYNCHRONIZED
   ========================================================================== */

.corp-footer {
  background: #020306;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .calc-wrapper { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { display: none; }
  .docs-mobile-bar { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 12, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .col-full { grid-column: span 1; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}