﻿:root {
  --theme-color: #f4f7fb;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eaf0f7;
  --text: #102033;
  --text-soft: #607085;
  --border: #d8e1ec;
  --primary: #087ca7;
  --primary-dark: #055f81;
  --secondary: #15a394;
  --shadow: 0 24px 70px rgba(17, 46, 77, 0.12);
  --header: rgba(244, 247, 251, 0.88);
}

html[data-theme="dark"] {
  --theme-color: #07111e;
  --background: #07111e;
  --surface: #0d1b2b;
  --surface-soft: #12243a;
  --text: #eff7ff;
  --text-soft: #9cafc3;
  --border: #213850;
  --primary: #35b8e9;
  --primary-dark: #1598ca;
  --secondary: #31d0bd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --header: rgba(7, 17, 30, 0.88);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: color 0.25s ease, background 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.03em;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 1.25rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.1rem;
}

.brand small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navigation > a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.navigation > a:hover {
  color: var(--primary);
}

.theme-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(21, 163, 148, 0.12), transparent 27%),
    radial-gradient(circle at 90% 20%, rgba(8, 124, 167, 0.14), transparent 32%);
}

.hero-grid {
  padding-block: 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin: 18px 0 24px;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  color: var(--primary);
}

.hero-content > p {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 30px rgba(8, 124, 167, 0.25);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
}

.button.light {
  color: #08202f;
  background: white;
}

.hero-features {
  margin: 48px 0 0;
  padding: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  list-style: none;
}

.hero-features strong,
.hero-features span {
  display: block;
}

.hero-features span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.hero-visual {
  min-height: 530px;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.orbit-one {
  width: 500px;
  height: 500px;
}

.orbit-two {
  width: 360px;
  height: 360px;
}

.code-window {
  width: min(100%, 480px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #07111e;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.window-header {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8da4bb;
  border-bottom: 1px solid #1e3044;
  background: #0c1929;
}

.window-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef6470;
}

.window-header span:nth-child(2) {
  background: #eeb64c;
}

.window-header span:nth-child(3) {
  background: #40c887;
}

.window-header small {
  margin-left: auto;
}

.code {
  min-height: 300px;
  padding: 26px 22px;
  color: #c6d3df;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.88rem);
  line-height: 1.85;
}

.code p {
  margin: 0;
  white-space: nowrap;
}

.code i {
  width: 34px;
  display: inline-block;
  color: #4c6278;
  font-style: normal;
}

.purple {
  color: #c397ff;
}

.green {
  color: #67d9ad;
}

.status {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91a5b8;
  border-top: 1px solid #1e3044;
  font-size: 0.78rem;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 16px #34d399;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 48px;
}

.section-heading h2,
.project-copy h2,
.contact-panel h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p,
.service-card p,
.project-copy p,
.about-copy {
  color: var(--text-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 310px;
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: var(--border);
  font-size: 2rem;
  font-weight: 900;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 52px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.project-section {
  padding: 40px 0 110px;
}

.project-panel {
  min-height: 500px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-soft);
}

.project-tags {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 700;
}

.chart {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--surface);
  background-size: 35px 35px;
}

.axis {
  position: absolute;
  z-index: 2;
  background: var(--text-soft);
}

.axis-x {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.axis-y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.parabola {
  width: 210px;
  height: 240px;
  position: absolute;
  bottom: 37px;
  left: 50%;
  border: 5px solid var(--primary);
  border-top: 0;
  border-radius: 0 0 110px 110px;
  transform: translateX(-50%);
}

.point {
  width: 12px;
  height: 12px;
  position: absolute;
  z-index: 3;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--secondary);
}

.point-one {
  top: 30%;
  left: 26%;
}

.point-two {
  bottom: 35px;
  left: calc(50% - 6px);
}

.point-three {
  top: 30%;
  right: 26%;
}

.about-section {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
}

.about-copy {
  font-size: 1.08rem;
}

.contact-section {
  padding: 20px 0 90px;
}

.contact-panel {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: white;
  border-radius: 28px;
  background: linear-gradient(135deg, #087ca7, #0c4f70 60%, #087a70);
}

.contact-panel .eyebrow {
  color: #adfff3;
}

footer {
  border-top: 1px solid var(--border);
}

.footer-content {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
}

.footer-content p {
  margin: 0;
}

.footer-content div {
  display: flex;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 22px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }

  .navigation.is-open {
    display: flex;
  }

  .theme-button {
    justify-content: center;
  }

  .hero-grid,
  .project-panel,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-panel {
    padding: 38px 26px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero-grid {
    padding-block: 60px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 250px;
    height: 250px;
  }

  .code-window {
    transform: none;
  }

  .section {
    padding: 80px 0;
  }

  .service-card {
    min-height: auto;
  }

  .project-panel,
  .contact-panel {
    padding: 34px 22px;
  }

  .chart {
    min-height: 270px;
  }

  .footer-content {
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}