:root {
  --bg-dark: #050509;
  --accent: #2f7dff;
  --text-main: #f5f5f7;
  --text-muted: #a3a3b5;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.7);
  --max-width: 1120px;
  --transition-fast: 0.25s ease-out;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111522 0, #050509 45%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

/* HEADER */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(3, 3, 10, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo span {
  opacity: 0.8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #6ea3ff, #2f7dff);
  transition: width var(--transition-fast);
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--text-main);
}

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

.nav-links a.active {
  color: var(--accent);
}

/* LANGUAGE SWITCH */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  font-size: 0.78rem;
}

.lang-btn {
  padding: 0.3rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: rgba(47, 125, 255, 0.9);
  color: #fff;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at 20% 0%, #6ea3ff, #2f7dff 60%, #1442a1);
  border-color: rgba(111, 164, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
}

/* MOBILE NAV */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-right {
    gap: 0.8rem;
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 100%;
    margin-top: 0.5rem;
    background: rgba(6, 6, 20, 0.98);
    border-radius: 18px;
    padding: 0.8rem 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: flex-start;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 15% -50%;
  background: radial-gradient(circle at 10% 0, rgba(111, 164, 255, 0.2), transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0.7;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr);
  gap: 3.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 20, 50, 0.7);
  border: 1px solid rgba(111, 164, 255, 0.4);
  margin-bottom: 1.2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4cd964;
  box-shadow: 0 0 12px #4cd964;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 .accent {
  background: linear-gradient(90deg, #6ea3ff, #2f7dff, #88ffe5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-meta span strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(12, 220, 147, 0.12);
  border: 1px solid rgba(12, 220, 147, 0.5);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0cdc93;
  box-shadow: 0 0 10px rgba(12, 220, 147, 0.9);
}

/* WORKSPACE HERO */
.hero-visual {
  position: relative;
}

.workspace-card {
  position: relative;
  border-radius: 26px;
  background: radial-gradient(circle at 0% 0%, rgba(111, 164, 255, 0.4), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(135deg, #050511, #050509);
  padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(111, 164, 255, 0.25);
  max-width: 720px;
  margin-left: auto;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.window-dot:nth-child(1) {
  background: #ff5f57;
}

.window-dot:nth-child(2) {
  background: #febc2e;
}

.window-dot:nth-child(3) {
  background: #28c840;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: .2rem;
  align-items: stretch;
}

.code-block {
  position: relative;
  border-radius: 18px;
  padding: 0.95rem 0.9rem 1rem;
  background: #050715;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.7rem;
  color: #e4e4ff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.code-status {
  position: absolute;
  right: 0.9rem;
  top: 0.7rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.code-lines {
  margin-top: 1.1rem;
  white-space: pre;
  overflow-x: auto;
}

.code-lines .keyword {
  color: #7fe2ff;
}

.code-lines .tag {
  color: #ffb86c;
}

.code-lines .string {
  color: #f48fb1;
}

.code-footer {
  margin-top: 0.4rem;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.75);
}

.stat-card {
  border-radius: 18px;
  padding: 0.9rem;
  background: #050713;
  border: 1px solid rgba(111, 164, 255, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.8rem;
  overflow: hidden;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 164, 255, 0.7);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(10, 25, 70, 0.7);
  white-space: nowrap;
  max-width: 100%;
}

.stat-metric {
  font-size: 1.9rem;
  font-weight: 600;
}

.stat-subtext {
  color: var(--text-muted);
}

.stat-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stat-bar-fill {
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, #34c759, #2f7dff);
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.workspace-footer {
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(15, 255, 150, 0.6);
  background: rgba(15, 255, 150, 0.08);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

/* SECTION TITLES */
.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.section-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

/* CLIENT LOGOS */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem;
}

.client-logo-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-logo-card img {
  max-height: 200px;
  object-fit: contain;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
}

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

.service-card {
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(5, 8, 25, 0.9));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(111, 164, 255, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 0.9;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.18);
  border: 1px solid rgba(111, 164, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.service-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.service-pill {
  font-size: 0.75rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* AI SECTION */
#ai {
  position: relative;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.ai-card {
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at 0 0, rgba(143, 227, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(5, 10, 35, 0.98), rgba(2, 3, 10, 0.98));
  border: 1px solid rgba(111, 164, 255, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.ai-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.25);
  border: 1px solid rgba(179, 232, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.ai-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.ai-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.ai-pill {
  font-size: 0.75rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 232, 255, 0.6);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.5rem;
  background: radial-gradient(circle at 0 0, rgba(111, 164, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(5, 7, 20, 0.98), rgba(1, 1, 5, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.testimonial-quote {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quote-mark {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.05);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 2rem;
}

.contact-card {
  border-radius: 22px;
  padding: 1.6rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(5, 7, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.8);
  max-width: 540px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-label {
  width: 90px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-value a {
  color: var(--accent);
}

.contact-legal {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-legal strong {
  color: var(--text-main);
  font-weight: 500;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-inner {
    padding-top: 3.5rem;
  }

  .workspace-card {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.1rem;
  }

  section {
    padding: 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .workspace-body {
    grid-template-columns: 1fr;
  }
}