:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: #0c1729;
  --surface-soft: #101f35;
  --text: #f4f7fb;
  --muted: #9eacc2;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #80c7ff;
  --accent-strong: #3da5f5;
  --green: #78e7b1;
  --header: rgba(7, 16, 31, 0.78);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #edf2f7;
  --text: #0a1628;
  --muted: #56657a;
  --line: rgba(10, 22, 40, 0.12);
  --accent: #086caf;
  --accent-strong: #075c96;
  --green: #08794e;
  --header: rgba(245, 247, 250, 0.82);
  --shadow: 0 30px 80px rgba(28, 52, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 6%, rgba(61, 165, 245, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

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

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--header);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  padding: 90px 0 72px;
}

.eyebrow,
.card-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(52px, 7vw, 88px);
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h2 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead,
.section-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button.secondary {
  background: var(--surface);
}

.button:hover {
  transform: translateY(-2px);
}

.signal-list {
  display: flex;
  gap: 34px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
}

.signal-list strong {
  font-size: 24px;
}

.signal-list span {
  color: var(--muted);
  font-size: 13px;
}

.portrait-frame {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
  box-shadow: var(--shadow);
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82);
}

.portrait-glow {
  position: absolute;
  inset: 18% -20% auto auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(110px);
  opacity: 0.2;
}

.status-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 14, 25, 0.8);
  color: #fff;
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78e7b1;
  box-shadow: 0 0 0 5px rgba(120, 231, 177, 0.14);
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.expertise-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 0 72px;
}

.expertise-strip span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.section-heading {
  margin-bottom: 58px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.capability-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.capability-grid article,
.achievement-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.capability-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.capability-grid p,
.achievement-grid p,
.contact-section > p {
  color: var(--muted);
}

.achievement-grid {
  grid-template-columns: repeat(3, 1fr);
}

.achievement-grid article {
  min-height: 285px;
}

.worked-with {
  margin-top: 74px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.company-logo {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.company-logo {
  overflow: hidden;
  background: #fff;
}

.company-logo img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  filter: grayscale(1);
}

.additional-companies {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.additional-companies strong {
  color: var(--text);
}

.kloudstack-card {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(128, 199, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(61, 165, 245, 0.18), transparent 25rem),
    var(--surface);
}

.kloudstack-copy > p {
  color: var(--muted);
  font-size: clamp(20px, 2.5vw, 28px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag-row span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-section {
  text-align: center;
}

.contact-section h2,
.contact-section > p {
  max-width: 760px;
  margin-inline: auto;
}

.contact-section .hero-actions {
  justify-content: center;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero,
  .about-grid,
  .kloudstack-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-copy {
    order: 1;
  }

  .portrait-frame {
    order: 0;
    min-height: min(580px, 115vw);
  }

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

  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .achievement-grid article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .brand > span:last-child,
  .theme-label {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .signal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .signal-list strong {
    font-size: 20px;
  }

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

  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
