:root {
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --text: #1b2735;
  --text-soft: #4a5c70;
  --brand: #0f62fe;
  --brand-2: #08a88a;
  --accent: #ff6b35;
  --line: #d9e2ec;
  --shadow: 0 24px 52px rgba(16, 38, 62, 0.14);
  --radius: 18px;
  --bg-grad-1: #e3f1ff;
  --bg-grad-2: #e6fff9;
  --header-bg: rgba(245, 247, 250, 0.78);
  --control-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, var(--bg-grad-1) 0%, transparent 40%),
    radial-gradient(circle at 90% 5%, var(--bg-grad-2) 0%, transparent 35%), var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body[data-theme='dark'] {
  --bg: #0c121a;
  --bg-alt: #121c28;
  --text: #edf4ff;
  --text-soft: #a2b6cd;
  --brand: #4c8dff;
  --brand-2: #18c2a0;
  --accent: #ff8d5d;
  --line: #24374d;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --bg-grad-1: #18345c;
  --bg-grad-2: #0f3b35;
  --header-bg: rgba(12, 18, 26, 0.8);
  --control-bg: #101a26;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-one {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -110px;
  background: #32c9a8;
}

.bg-orb-two {
  width: 280px;
  height: 280px;
  bottom: 12%;
  left: -90px;
  background: #4b8dff;
}

.container {
  width: min(1180px, calc(100% - 3.6rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(217, 226, 236, 0.45);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  min-height: 84px;
  padding: 0.7rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 98, 246, 0.25);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  display: grid;
  line-height: 1.08;
}

.logo-text strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.logo-text small {
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.4rem;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: transform 0.28s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch,
.theme-toggle {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text);
  padding: 0 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
}

.lang-switch {
  min-width: 70px;
}

.theme-toggle {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.is-hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), #3e7dff);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.92rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 98, 254, 0.28);
  filter: saturate(1.08);
}

.btn-small {
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--bg-alt);
  color: var(--text);
}

.btn-ghost:hover {
  box-shadow: 0 10px 20px rgba(16, 38, 62, 0.1);
}

.hero {
  padding: 6.8rem 0 3.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(10, 28, 48, 0.95), rgba(11, 57, 50, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

body[data-theme='light'] .hero-visual {
  background: linear-gradient(160deg, #112842, #0f4a43);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  animation: drift 18s linear infinite;
}

.visual-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2.2rem;
}

.visual-svg .trace-line {
  fill: none;
  stroke: #72f5e0;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: drawLine 2.8s ease forwards 0.2s;
}

.visual-svg circle {
  fill: #83fbe8;
  stroke: #dffff8;
  stroke-width: 2;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.visual-svg circle:nth-of-type(2) {
  animation-delay: 0.2s;
}

.visual-svg circle:nth-of-type(3) {
  animation-delay: 0.45s;
}

.visual-svg circle:nth-of-type(4) {
  animation-delay: 0.65s;
}

.visual-svg circle:nth-of-type(5) {
  animation-delay: 0.9s;
}

.floating-chip {
  position: absolute;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9fbff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(3px);
  background: rgba(15, 32, 57, 0.5);
  animation: float 5s ease-in-out infinite;
}

.chip-one {
  top: 22px;
  right: 20px;
}

.chip-two {
  top: 98px;
  left: 20px;
  animation-delay: 0.6s;
}

.chip-three {
  bottom: 26px;
  right: 26px;
  animation-delay: 1.1s;
}

.kicker {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.76rem;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  font-family: 'Outfit', sans-serif;
  margin-top: 0;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.95rem);
  max-width: 16ch;
  margin-bottom: 1.35rem;
}

.hero-text {
  color: var(--text-soft);
  max-width: 66ch;
  margin-bottom: 2.2rem;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-bottom: 2.8rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.metrics article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.metric-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section {
  padding: 5rem 0;
}

.section-title-wrap {
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  max-width: 20ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.reference-card {
  position: relative;
  overflow: hidden;
}

.ref-watermark {
  position: absolute;
  right: -8px;
  bottom: -2px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 39, 53, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

body[data-theme='dark'] .ref-watermark {
  color: rgba(237, 244, 255, 0.08);
}

.reference-card > *:not(.ref-watermark) {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.card p {
  color: var(--text-soft);
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  color: var(--brand);
  background: rgba(76, 141, 255, 0.08);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-highlight {
  background: linear-gradient(145deg, #f7fbff 0%, #ecfff8 100%);
  border-color: #bdd5f3;
}

body[data-theme='dark'] .card-highlight {
  background: linear-gradient(145deg, #182436 0%, #14332d 100%);
  border-color: #335076;
}

.expertise-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
}

.expertise-copy p {
  color: var(--text-soft);
  max-width: 60ch;
}

.expertise-list {
  margin: 0;
  list-style: none;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body[data-theme='dark'] .expertise-list {
  background: linear-gradient(160deg, #101a26 0%, #15253b 100%);
}

.expertise-list li {
  padding: 1rem;
  border-bottom: 1px dashed #bfcfe0;
  font-weight: 500;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.timeline article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.timeline span {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.6rem;
  background: linear-gradient(130deg, #fefefe 0%, #f2f7ff 55%, #ebfff7 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

body[data-theme='dark'] .contact-box {
  background: linear-gradient(130deg, #101a26 0%, #15253b 55%, #133028 100%);
  border-color: #2c4462;
}

.contact-box p {
  color: var(--text-soft);
}

.contact-actions {
  display: grid;
  gap: 0.85rem;
  min-width: 280px;
}

.site-footer {
  padding: 3.2rem 0 3.6rem;
  color: #64748b;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

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

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(1180px, calc(100% - 2.2rem));
  }

  .section {
    padding: 4.2rem 0;
  }

  nav ul {
    display: none;
  }

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

  .hero-visual {
    min-height: 280px;
  }

  .contact-actions {
    min-width: 0;
  }

  .metrics,
  .split-grid,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .expertise-wrap,
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 4.8rem;
    padding-bottom: 2.8rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .container {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .btn,
  .btn-small {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .theme-toggle,
  .lang-switch {
    flex: 1;
  }

  .card {
    padding: 1.3rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  .logo-text small {
    display: none;
  }
}
