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

:root {
  --bg: #0a0a0c;
  --bg-alt: #0e0e12;
  --bg-card: #111115;
  --text: #e8e8ec;
  --text-secondary: #88889a;
  --text-dim: #555566;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.08);
  --cyan-glow: rgba(34, 211, 238, 0.25);
  --magenta: #e879f9;
  --yellow: #fbbf24;
  --border: #1a1a24;
  --radius: 0;
  --radius-sm: 0;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --glow-cyan: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 40px rgba(34, 211, 238, 0.15);
  --glow-magenta: 0 0 10px rgba(232, 121, 249, 0.5), 0 0 40px rgba(232, 121, 249, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scan line overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 9999;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: var(--glow-cyan);
}

.nav__logo span {
  color: var(--cyan);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 0;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  transition: all 0.3s;
}

.lang-btn:first-child {
  border-right: none;
}

.lang-btn:last-child {
  border-left: none;
}

.lang-btn--active {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

.lang-btn:not(.lang-btn--active):hover {
  color: var(--text-secondary);
}

/* === Hero === */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero__overline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  text-shadow: var(--glow-cyan);
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__title-accent {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  text-stroke: 1px var(--cyan);
  font-weight: 300;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s;
  position: relative;
}

.btn--primary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.btn--primary:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

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

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

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Horizontal line decoration === */
.hr-line {
  width: 60px;
  height: 1px;
  background: var(--cyan);
  margin: 0 auto 24px;
  opacity: 0.6;
}

/* === Sections === */
.section {
  padding: 120px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  max-width: 640px;
  margin-bottom: 72px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.section__label--cyan {
  color: var(--cyan);
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section__header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

/* === Services Grid (full-width cards) === */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-card {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 40px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.4s, background 0.4s;
  cursor: default;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.service-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  background: #14141a;
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  max-width: 480px;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.service-card__cta {
  justify-self: end;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.4s;
  padding-top: 4px;
}

.service-card:hover .service-card__cta {
  opacity: 1;
}

/* === Capabilities Grid === */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.capability {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.3s;
}

.capability:hover {
  background: var(--bg-card);
}

.capability__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.capability h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capability p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* === Process Steps === */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.process-step {
  background: var(--bg);
  padding: 48px 36px;
  position: relative;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(34, 211, 238, 0.15);
  line-height: 1;
  margin-bottom: 20px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* === Stats Bar === */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.stat {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat__value {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.stat__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* === Contact Form === */
.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: formReveal 0.8s ease-out forwards;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  position: relative;
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.form-field:focus-within .form-label {
  color: var(--cyan);
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  padding: 12px 0 8px;
  resize: none;
  transition: color 0.3s;
}

.form-input::placeholder {
  color: rgba(136, 136, 154, 0.3);
  font-weight: 200;
}

.form-textarea {
  min-height: 100px;
  line-height: 1.7;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transition: all 0.4s;
}

.form-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-field:focus-within .form-line::after {
  width: 100%;
}

.form-submit {
  margin-top: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
}

.form-submit__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(34, 211, 238, 0.3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit.loading .form-submit__text {
  opacity: 0.5;
}

.form-submit.loading .form-submit__loader {
  display: inline-block;
}

.form-submit.success {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.05);
}

.form-success,
.form-error {
  display: none;
  text-align: center;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  border: 1px solid transparent;
  animation: fadeIn 0.5s ease-out;
}

.form-success {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.04);
}

.form-error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.04);
}

.form-success.visible,
.form-error.visible {
  display: block;
}

.form-field.error .form-input {
  color: #f87171;
}

.form-field.error .form-line::after {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
  width: 100%;
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-6px); }
  30%, 70% { transform: translateX(6px); }
}

/* Form glow border */
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid transparent;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(34, 211, 238, 0.1),
    transparent 30%,
    transparent 60%,
    rgba(34, 211, 238, 0.05),
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: glowRotate 6s linear infinite;
}

@keyframes glowRotate {
  to {
    filter: hue-rotate(360deg);
  }
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text {
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__email a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

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

/* === Separator === */
.separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* === Responsive === */
@media (max-width: 900px) {
  .service-card {
    grid-template-columns: 50px 1fr;
    gap: 20px;
  }

  .service-card__cta {
    display: none;
  }

  .capabilities,
  .process,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 24px;
  }

  .contact-card {
    padding: 40px 24px;
  }
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__content {
  animation: fadeIn 0.8s ease-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero__overline {
  animation: glowPulse 3s ease-in-out infinite;
}
