@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Color Palette (Obsidian & Cybernetic) */
  --bg-primary: hsl(222, 24%, 4%);
  --bg-secondary: hsl(222, 20%, 8%);
  --bg-tertiary: hsl(222, 16%, 12%);
  
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 50%);
  
  --accent-purple: hsl(263, 90%, 62%);
  --accent-purple-rgb: 139, 92, 246;
  --accent-blue: hsl(210, 100%, 54%);
  --accent-blue-rgb: 14, 165, 233;
  --accent-teal: hsl(174, 90%, 41%);
  --accent-teal-rgb: 13, 148, 136;
  --accent-emerald: hsl(142, 76%, 45%);
  --accent-emerald-rgb: 16, 185, 129;
  
  --accent-gradient: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-teal) 100%);
  --accent-gradient-hover: linear-gradient(135deg, hsl(263, 95%, 68%) 0%, hsl(210, 100%, 60%) 50%, hsl(174, 95%, 47%) 100%);
  
  /* Glassmorphism */
  --bg-glass: hsla(222, 20%, 8%, 0.65);
  --border-glass: hsla(215, 20%, 100%, 0.08);
  --border-glass-active: hsla(210, 100%, 54%, 0.25);
  --shadow-glow: 0 0 30px hsla(263, 90%, 62%, 0.15);
  --shadow-card: 0 10px 40px -10px hsla(0, 0%, 0%, 0.5);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --section-padding: clamp(4rem, 8dvw, 8rem);
  --container-width: 1280px;
  
  scrollbar-gutter: stable;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Base Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(222, 16%, 20%);
}

/* Global Glowing Background Blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: min(500px, 80dvw);
  height: min(500px, 80dvw);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.22;
}

body::before {
  top: 10dvh;
  right: -10dvw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
}

body::after {
  top: 70dvh;
  left: -15dvw;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 80%);
}

/* --- TYPOGRAPHY & LINKS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5.5dvw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4dvw, 3rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5dvw, 1.75rem);
}

p {
  color: var(--text-secondary);
}

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

/* Highlight / Gradient text helper */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-heading helper */
.subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
  font-size: clamp(1rem, 2dvw, 1.15rem);
  color: var(--text-secondary);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* --- GLASSMORPHISM CARD UTILITY --- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-5px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 20px hsla(263, 90%, 62%, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 25px hsla(210, 100%, 54%, 0.45);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(222, 24%, 4%, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(10, 15, 24, 0.85);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 400;
  font-size: 1.15rem;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1.1rem, 2.5dvw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Visual demonstration in Hero (Dynamic Orb/Graphic) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-orb-container {
  width: min(400px, 80dvw);
  height: min(400px, 80dvw);
  position: relative;
}

.ai-orb {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
  animation: thinking-pulse 6s infinite ease-in-out;
  border: 1px solid hsla(210, 100%, 54%, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-orb-core {
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-blue) 0%, var(--accent-purple) 60%, transparent 100%);
  filter: blur(10px);
  opacity: 0.85;
  animation: pulse-glow 3s infinite ease-in-out;
}

.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(13, 148, 136, 0.35);
  animation: rotate-ring 25s linear infinite;
}

.ai-ring-1 {
  width: 80%;
  height: 80%;
}

.ai-ring-2 {
  width: 60%;
  height: 60%;
  border-color: rgba(139, 92, 246, 0.3);
  animation-duration: 15s;
  animation-direction: reverse;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.service-card:hover .service-link {
  color: white;
}

/* --- INTERACTIVE ASSESSMENT WIDGET --- */
.assessment-container {
  max-width: 850px;
  margin: 0 auto;
}

.assessment-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.assessment-progress::before {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--bg-tertiary);
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
}

.progress-bar-fill {
  position: absolute;
  height: 2px;
  background: var(--accent-gradient);
  top: 50%;
  left: 0;
  width: 0%;
  transform: translateY(-50%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 3;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.progress-step.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 0 15px hsla(210, 100%, 54%, 0.4);
}

.progress-step.completed {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: white;
}

/* Step Layout */
.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.step-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--accent-teal);
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

/* Radio Cards Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.option-card {
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-card.selected {
  border-color: var(--accent-blue);
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.option-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.option-card p {
  font-size: 0.85rem;
}

.assessment-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

/* Results Display */
.results-pane {
  text-align: center;
}

.result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  margin-top: 2rem;
}

.result-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-glass);
}

.result-gauge-svg {
  width: 180px;
  height: 180px;
  margin-bottom: 1.5rem;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 471.2; /* 2 * PI * 75 */
  stroke-dashoffset: 471.2;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-badge {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-score-text {
  font-size: 1rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.result-info h3 {
  margin-bottom: 1rem;
}

.result-info p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.recommendations-list {
  list-style: none;
  margin-bottom: 2rem;
}

.recommendations-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.recommendations-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: 700;
}

/* --- INTERACTIVE AI WORKFLOW SIMULATOR --- */
.simulator-container {
  max-width: 950px;
  margin: 0 auto;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.sim-selectors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-btn {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sim-btn.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.sim-btn h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.sim-btn p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Console Window */
.console-window {
  border-radius: 16px;
  background: hsl(222, 25%, 3%);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  box-shadow: var(--shadow-card);
}

.console-header {
  height: 44px;
  background: hsl(222, 20%, 5%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-dots {
  display: flex;
  gap: 0.5rem;
}

.console-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.console-dot:nth-child(1) { background: #ff5f56; }
.console-dot:nth-child(2) { background: #ffbd2e; }
.console-dot:nth-child(3) { background: #27c93f; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.console-status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.console-status.active::before {
  background: var(--accent-teal);
  animation: pulse-glow 1.5s infinite;
}

.console-body {
  flex-grow: 1;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-y: auto;
  color: #c9d1d9;
}

.console-line {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.console-prompt {
  color: var(--accent-blue);
  margin-right: 0.5rem;
}

.console-comment {
  color: var(--text-muted);
  font-style: italic;
}

.console-scanning {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.console-scanning::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: scan 2s linear infinite;
}

.console-thinking-card {
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thinking-header {
  display: flex;
  justify-content: space-between;
  color: var(--accent-purple);
  font-weight: 500;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding-bottom: 0.5rem;
}

.thinking-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.thinking-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thinking-step svg {
  width: 14px;
  height: 14px;
  color: var(--accent-teal);
}

.console-result-card {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.result-header {
  color: var(--accent-emerald);
  font-weight: 500;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding-bottom: 0.5rem;
}

.console-action-bar {
  padding: 1.25rem;
  background: hsl(222, 20%, 5%);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-action-bar p {
  font-size: 0.8rem;
}

/* Typing cursor animation */
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--text-primary);
  margin-left: 4px;
  animation: pulse-glow 1s infinite;
}

/* --- CLIENTS / TESTIMONIALS --- */
.clients-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.clients-wrapper::before,
.clients-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.clients-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.clients-track {
  display: flex;
  width: calc(240px * 16);
  animation: scroll-carousel 30s linear infinite;
  gap: 3rem;
}

.client-logo {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) contrast(0.5);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.client-logo:hover {
  filter: none;
  opacity: 0.9;
}

.client-logo svg {
  max-width: 100%;
  max-height: 100%;
}

/* --- CONTACT SECTION & FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-text h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-method-text p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Input Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Success State Overlay */
.contact-form-container {
  position: relative;
}

.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  z-index: 10;
  animation: fadeIn 0.4s ease-out forwards;
}

.success-overlay.active {
  display: flex;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: thinking-pulse 3s infinite;
}

/* --- FOOTER --- */
.footer {
  background: hsl(222, 25%, 3%);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-info .logo {
  margin-bottom: 1rem;
}

.footer-info p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links-col a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-240px * 8)); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 6dvw, 5rem);
  }
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: hsl(222, 24%, 4%);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 100px 2rem 2rem 2rem;
    align-items: flex-start;
    gap: 1.75rem;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  .nav-links.active {
    right: 0;
  }
  .result-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- LEGAL PAGES STYLE --- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 4.5dvw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.legal-content .meta-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: block;
}

.legal-content h2 {
  font-size: clamp(1.4rem, 2.8dvw, 1.9rem);
  text-align: left;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: clamp(1.1rem, 2.2dvw, 1.4rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.legal-content strong {
  color: var(--text-primary);
}
