/* ============================================
   KRONOS TEMPORIS — Industrial Mythic Theme
   ============================================ */

:root {
  --void:           #020208;
  --surface:        #04050f;
  --surface-raised: #070d1e;
  --blue:           #3b82f6;
  --blue-dim:       rgba(59, 130, 246, 0.15);
  --blue-glow:      rgba(59, 130, 246, 0.35);
  --cyan:           #06b6d4;
  --cyan-glow:      rgba(6, 182, 212, 0.25);
  --text:           #f0f9ff;
  --text-dim:       rgba(224, 242, 254, 0.55);
  --border:         rgba(59, 130, 246, 0.18);
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;

  /* Liquid glass */
  --glass-bg:       rgba(4, 5, 15, 0.45);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.05) inset;

  /* Legacy aliases (old palette references) */
  --gold:           var(--blue);
  --gold-dim:       rgba(59,130,246,0.4);
  --gold-glow:      var(--blue-glow);
  --bone:           var(--text);
  --bone-dim:       var(--text-dim);
  --obsidian:       var(--void);
  --obsidian-light: var(--surface-raised);
  --steel:          var(--surface);
  --steel-light:    rgba(59,130,246,0.2);
  --ember:          var(--cyan);
  --ember-glow:     var(--cyan-glow);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ---------- TECH GRID OVERLAY ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- TECH MANDALA (scroll-rotated bg) ---------- */
.tech-mandala {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 120vmax;
  height: 120vmax;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.tech-mandala svg {
  width: 100%;
  height: 100%;
}

/* ---------- SECTION Z-INDEX LAYER ---------- */
.nav,
.hero,
.forge,
.services,
.process,
.faq,
.contact,
.footer,
.mobile-menu {
  position: relative;
  z-index: 1;
}

.nav {
  z-index: 1000;
}

.mobile-menu {
  z-index: 999;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

::selection {
  background: var(--blue);
  color: var(--void);
}

/* ---------- SECTION TAG ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 20px;
  margin-bottom: 2rem;
  border-radius: 2px;
  background: rgba(59,130,246,0.06);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 600;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  box-shadow: 0 0 24px var(--blue-glow);
}

.btn--primary:hover {
  box-shadow: 0 0 40px var(--blue-glow), 0 4px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* ---------- LANG TOGGLE ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: rgba(59, 130, 246, 0.13);
  border-color: var(--blue);
}

.lang-toggle__option {
  transition: color 0.25s;
  color: var(--text-dim);
}

.lang-toggle__option.active {
  color: var(--cyan);
  font-weight: 600;
}

.lang-toggle__divider {
  opacity: 0.3;
  font-weight: 300;
}

.lang-toggle--mobile {
  margin-top: 8px;
  font-size: 0.75rem;
  padding: 10px 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  transition: all 0.4s;
}

.nav--scrolled {
  background: rgba(2, 2, 8, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  padding: 14px 5%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 24px rgba(0,0,0,0.3);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__emblem {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 9px 22px !important;
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 0 16px var(--blue-glow) !important;
  letter-spacing: 0.05em !important;
  transition: box-shadow 0.3s, transform 0.2s !important;
}

.nav__cta:hover {
  box-shadow: 0 0 28px var(--blue-glow) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 2, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--blue);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8% 80px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__nebula--1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
}

.hero__nebula--2 {
  width: 350px;
  height: 350px;
  bottom: -60px;
  left: -60px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__pre {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__pre-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s forwards;
}

.hero__line--1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--text-dim);
  animation-delay: 0.5s;
}

.hero__line--2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text);
  margin-bottom: 0.1em;
  animation-delay: 0.7s;
}

.hero__line--3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--text-dim);
  animation-delay: 0.9s;
}

.hero__line--4 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text);
  animation-delay: 1.1s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.4s forwards;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.6s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 2s forwards;
  color: var(--cyan);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero__scroll-chevron {
  animation: scrollPulse 2.2s ease-in-out infinite 0.4s;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: translateY(-4px); }
  50% { opacity: 0.9; transform: translateY(4px); }
}

/* ============================================
   FORGE (ABOUT)
   ============================================ */
.forge {
  padding: 140px 8%;
  position: relative;
  overflow: hidden;
}

.forge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.forge__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.forge__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.forge__desc {
  color: var(--bone-dim);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  max-width: 480px;
}

/* Concentric rings visual */
.forge__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forge__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.forge__ring--outer {
  width: 90%;
  height: 90%;
  border-color: rgba(59, 130, 246, 0.12);
  animation: gearSpin 40s linear infinite;
  border-style: dashed;
}

.forge__ring--middle {
  width: 60%;
  height: 60%;
  border-color: rgba(6, 182, 212, 0.2);
  animation: gearSpin 25s linear infinite reverse;
}

.forge__ring--inner {
  width: 30%;
  height: 30%;
  border-color: rgba(59, 130, 246, 0.35);
  animation: gearSpin 15s linear infinite;
}

.forge__core {
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0%, var(--cyan) 60%, transparent 100%);
  box-shadow: 0 0 60px var(--blue-glow), 0 0 120px var(--cyan-glow);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.forge__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.forge__particle--1 { top: 10%; left: 45%; animation: particleFloat 6s ease-in-out infinite; }
.forge__particle--2 { top: 30%; right: 10%; animation: particleFloat 5s 1s ease-in-out infinite; }
.forge__particle--3 { bottom: 20%; left: 15%; animation: particleFloat 7s 0.5s ease-in-out infinite; }
.forge__particle--4 { top: 50%; left: 8%; animation: particleFloat 4s 2s ease-in-out infinite; }
.forge__particle--5 { bottom: 10%; right: 30%; animation: particleFloat 5.5s 1.5s ease-in-out infinite; }
.forge__particle--6 { top: 15%; right: 25%; animation: particleFloat 6.5s 0.8s ease-in-out infinite; }

@keyframes particleFloat {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-20px); }
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 140px 8%;
  position: relative;
  background: var(--obsidian-light);
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--steel-light), transparent);
}

.services__header {
  text-align: center;
  margin-bottom: 80px;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
}

.services__orbit {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.services__center-text {
  display: none;
}

.services__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.service-card {
  background: rgba(7, 13, 30, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(59,130,246,0.12);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05) inset;
  padding: 48px 36px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  border-radius: 2px;
}

.service-card::before {
  content: attr(data-num);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(59,130,246,0.4);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  background: rgba(10, 18, 40, 0.65);
  border-color: rgba(59,130,246,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.08), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card p {
  color: var(--bone-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 140px 8%;
  position: relative;
}

.process__header {
  text-align: center;
  margin-bottom: 100px;
}

.process__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.process__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(6,182,212,0.4), rgba(6,182,212,0.05));
}

.process__step {
  display: flex;
  gap: 48px;
  padding: 0 0 60px 0;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process__step.visible {
  opacity: 1;
  transform: translateX(0);
}

.process__step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.process__dot {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.process__content {
  padding-left: 60px;
}

.process__content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.process__content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 500px;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 140px 8%;
  position: relative;
  background: var(--obsidian-light);
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--steel-light), transparent);
}

.faq__header {
  text-align: center;
  margin-bottom: 80px;
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq__item {
  background: rgba(4, 5, 15, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59,130,246,0.08);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq__item[open] {
  border-color: rgba(59,130,246,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.faq__question {
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.3s;
  min-height: 48px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__question:hover {
  color: var(--cyan);
}

.faq__answer {
  padding: 0 32px 28px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 600px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 140px 8%;
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.contact__desc {
  color: var(--bone-dim);
  font-size: 1.05rem;
  max-width: 420px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: rgba(4, 5, 15, 0.5);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(59,130,246,0.1);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(59,130,246,0.2);
  padding: 16px 0 12px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.form-group__select-label {
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

.form-group label:not(.form-group__select-label) {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.3s;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group select:focus ~ .form-line {
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 8% 40px;
  background: var(--surface-raised);
  border-top: 1px solid rgba(59,130,246,0.12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.footer__tagline {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer__links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__bottom {
  border-top: 1px solid rgba(59,130,246,0.08);
  padding-top: 30px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer__cnpj {
  margin-top: 8px;
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .forge__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .forge__visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    padding: 140px 6% 100px;
  }

  /* Decorative rings only — dropping them removes a tall empty gap under
     the Forge text on phones. */
  .forge__visual {
    display: none;
  }

  .forge__grid {
    gap: 0;
  }

  .services__cards {
    grid-template-columns: 1fr;
  }

  .faq__question {
    padding: 20px 24px;
    font-size: 0.88rem;
  }

  .faq__answer {
    padding: 0 24px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process__step {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   FOCUS-VISIBLE (Keyboard Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.nav__links a:focus-visible,
.mobile-menu a:focus-visible,
.footer__links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
}

.service-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* ============================================
   ACTIVE / PRESSED STATES
   ============================================ */
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn--primary:active {
  background: var(--blue-dim);
}

.btn--ghost:active {
  background: rgba(59, 130, 246, 0.1);
}

.service-card:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.nav__links a:active,
.mobile-menu a:active,
.footer__links a:active {
  opacity: 0.7;
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__pre,
  .hero__line,
  .hero__sub,
  .hero__actions,
  .hero__scroll {
    opacity: 1;
    transform: none;
  }

  .hero__gear,
  .forge__ring,
  .forge__particle,
  .forge__core {
    animation: none;
  }

  #techMandala {
    transform: translate(-50%, -50%) !important;
    transition: none !important;
  }

  .hero__scroll-line {
    animation: none;
    opacity: 0.6;
    transform: none;
  }

  .process__step {
    opacity: 1;
    transform: none;
  }
}
