/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: oklch(0.14 0.02 250);
  color: oklch(0.93 0.01 250);
  font-family: 'Manrope', sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
a { color: oklch(0.75 0.16 205); text-decoration: none; }
a:hover { color: oklch(0.82 0.14 205); }
::selection { background: oklch(0.75 0.16 205); color: oklch(0.14 0.02 250); }
.accent { color: oklch(0.75 0.16 205); }

/* ===== Decorative background layers ===== */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}
.bg-glow {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(50px);
  animation: drift 16s ease-in-out infinite;
}
.bg-glow--cyan {
  top: -200px; right: -200px; width: 700px; height: 700px;
  background: radial-gradient(circle, oklch(0.5 0.14 205 / 0.22), transparent 70%);
}
.bg-glow--purple {
  bottom: -260px; left: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, oklch(0.5 0.17 280 / 0.22), transparent 70%);
  animation-direction: reverse;
  animation-duration: 20s;
}

@keyframes glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes floatUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 0% { transform: translate(0,0); } 50% { transform: translate(-14px,10px); } 100% { transform: translate(0,0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

main, .nav, .footer { position: relative; z-index: 1; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  background: oklch(0.14 0.02 250 / 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(1 0 0 / 0.07);
}
.nav__brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.nav__logo {
  width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 0 14px oklch(0.6 0.16 205 / 0.5));
}
.nav__brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 6px; }
.nav__item {
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; color: oklch(0.85 0.01 250); transition: background .2s ease;
}
.nav__item:hover { background: oklch(1 0 0 / 0.06); }
.nav__item.is-active { color: oklch(0.14 0.02 250); background: oklch(0.75 0.16 205); }
.nav__item.is-active:hover { background: oklch(0.75 0.16 205); }
.nav__phone {
  padding: 10px 20px; border-radius: 8px; border: 1px solid oklch(0.75 0.16 205 / 0.5);
  color: oklch(0.75 0.16 205); font-weight: 700; font-size: 13.5px; font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid oklch(1 0 0 / 0.12);
  background: transparent; cursor: pointer; padding: 0;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: oklch(0.93 0.01 250); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Pages ===== */
.page { display: none; }
.page.active { display: block; animation: floatUp .4s ease both; }

/* ===== Sections / typography ===== */
.section { padding: 100px 56px 20px; max-width: 1320px; margin: 0 auto; }
.section--narrow { max-width: 1180px; }
.section--head-pad { padding-top: 100px; padding-bottom: 30px; }
.section--cta-wrap { padding-bottom: 130px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace; color: oklch(0.75 0.16 205); margin-bottom: 12px;
}
.h1 { font-size: clamp(30px, 5.4vw, 46px); font-weight: 700; margin: 0 0 18px; line-height: 1.15; }
.h2 { font-size: clamp(24px, 4.2vw, 36px); font-weight: 700; margin: 0; line-height: 1.2; }
.h3 { font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; margin: 0 0 14px; }
.lead { font-size: clamp(15px, 1.8vw, 17.5px); color: oklch(0.72 0.02 250); line-height: 1.65; }

/* ===== Hero ===== */
.hero {
  padding: 110px 56px 90px; max-width: 1400px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  background-image: linear-gradient(oklch(0.14 0.02 250 / 0.82), oklch(0.14 0.02 250 / 0.94)), url('../assets/hero-bg.png');
  background-size: cover; background-position: center; background-color: oklch(0.15 0.02 250);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid oklch(0.75 0.16 205); background: oklch(0.75 0.16 205 / 0.12);
  font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; color: oklch(0.75 0.16 205);
  margin-bottom: 28px; animation: floatUp .6s ease both;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.75 0.16 205); animation: glow 2s ease-in-out infinite; }
.hero__title { font-size: clamp(38px,4.8vw,68px); line-height: 1.06; font-weight: 700; margin: 0 0 26px; animation: floatUp .7s ease .05s both; }
.hero__desc { font-size: 18.5px; line-height: 1.65; color: oklch(0.72 0.02 250); max-width: 560px; margin: 0 0 36px; animation: floatUp .7s ease .1s both; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; animation: floatUp .7s ease .15s both; }

.btn { padding: 16px 30px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-block; }
.btn--primary { background: oklch(0.75 0.16 205); color: oklch(0.14 0.02 250); box-shadow: 0 12px 30px -10px oklch(0.6 0.16 205 / 0.5); }
.btn--ghost { border: 1px solid oklch(1 0 0 / 0.15); color: oklch(0.93 0.01 250); font-weight: 600; background: transparent; }
.btn--lg { padding: 17px 36px; font-size: 16px; }

.hero__panel-wrap { position: relative; animation: floatUp .8s ease .1s both; }
.terminal { border-radius: 16px; border: 1px solid oklch(1 0 0 / 0.1); background: oklch(0.18 0.02 250); box-shadow: 0 30px 80px -30px oklch(0 0 0 / 0.6); overflow: hidden; }
.terminal__bar { padding: 12px 18px; border-bottom: 1px solid oklch(1 0 0 / 0.08); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: oklch(0.65 0.18 25); }
.dot--yellow { background: oklch(0.75 0.14 90); }
.dot--green { background: oklch(0.7 0.16 145); }
.terminal__filename { margin-left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: oklch(0.55 0.02 250); }
.terminal__body { padding: 22px 22px 26px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.9; color: oklch(0.7 0.02 250); }
.terminal__body .ok { color: oklch(0.7 0.16 145); }
.terminal__body .cyan-text { color: oklch(0.75 0.16 205); }
.terminal__cursor-line { opacity: .5; }
.blink { animation: blink 1.2s ease-in-out infinite; }
.uptime-badge {
  position: absolute; bottom: -22px; right: -18px; padding: 16px 22px; border-radius: 14px;
  background: oklch(0.2 0.03 250); border: 1px solid oklch(0.75 0.16 205);
  box-shadow: 0 20px 50px -20px oklch(0 0 0 / 0.6);
}
.uptime-badge__label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: oklch(0.6 0.02 250); margin-bottom: 4px; }
.uptime-badge__value { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: oklch(0.75 0.16 205); }

/* ===== Section head with link ===== */
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.link-arrow { font-weight: 600; color: oklch(0.75 0.16 205); cursor: pointer; font-size: 15px; white-space: nowrap; }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.grid--team { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.grid--principles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

.sc-card {
  background: oklch(0.19 0.02 250); border: 1px solid oklch(1 0 0 / 0.07); border-radius: 16px; padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, oklch(0.75 0.16 205 / 0.45));
  box-shadow: 0 20px 50px -20px var(--accent-bg, oklch(0.5 0.16 205 / 0.4));
}
.sc-card__icon { width: 46px; height: 46px; border-radius: 11px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 20px; }
.sc-card__title { font-size: 18.5px; font-weight: 600; margin: 0 0 10px; }
.sc-card__desc { font-size: 14.5px; line-height: 1.65; color: oklch(0.66 0.02 250); margin: 0; }

/* process steps */
.step { padding-left: 24px; border-left: 2px solid oklch(0.75 0.16 205 / 0.25); position: relative; }
.step::before { content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: oklch(0.14 0.02 250); border: 2px solid oklch(0.75 0.16 205); }
.step__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: oklch(0.75 0.16 205); margin-bottom: 10px; }
.step__title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.step__desc { font-size: 14px; color: oklch(0.66 0.02 250); line-height: 1.6; margin: 0; }

/* stats */
.stats-panel {
  border-radius: 22px; border: 1px solid oklch(1 0 0 / 0.08);
  background: linear-gradient(135deg, oklch(0.21 0.03 250), oklch(0.18 0.02 260));
  padding: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  position: relative; overflow: hidden;
}
.stats-panel__grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, black, transparent);
}
.stat { position: relative; }
.stat__num { font-size: 38px; font-weight: 700; color: oklch(0.75 0.16 205); margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.stat__label { font-size: 14px; color: oklch(0.68 0.02 250); }

/* tech chips */
.tech-list { display: flex; flex-wrap: wrap; gap: 14px; }
.tech-chip { padding: 12px 20px; border-radius: 10px; border: 1px solid oklch(1 0 0 / 0.09); background: oklch(0.18 0.02 250); font-family: 'JetBrains Mono', monospace; font-size: 14px; color: oklch(0.82 0.02 250); }

/* CTA box */
.cta-box {
  border-radius: 24px; border: 1px solid oklch(0.75 0.16 205 / 0.3);
  background: linear-gradient(135deg, oklch(0.75 0.16 205 / 0.1), oklch(0.65 0.18 280 / 0.08));
  padding: 70px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-box__desc { font-size: 16.5px; color: oklch(0.72 0.02 250); margin: 0 0 34px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* panel box (services CTA) */
.panel-box { border-radius: 20px; border: 1px solid oklch(1 0 0 / 0.08); background: oklch(0.19 0.02 250); padding: 52px; }
.panel-box__desc { font-size: 15.5px; color: oklch(0.7 0.02 250); margin: 0 0 28px; }

/* services detailed */
.service-row {
  border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 64px 1fr; gap: 30px; align-items: start;
}
.service-row__icon { width: 58px; height: 58px; border-radius: 13px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 27px; }
.service-row__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.service-row__title { font-size: 23px; font-weight: 600; margin: 0; }
.service-row__tagline { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent); }
.service-row__desc { font-size: 15.5px; line-height: 1.7; color: oklch(0.7 0.02 250); margin: 0 0 18px; max-width: 720px; }
.service-row__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.service-row__feature { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: oklch(0.78 0.02 250); }
.service-row__feature span { color: var(--accent); flex-shrink: 0; }
.service-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: oklch(1 0 0 / 0.06); color: oklch(0.8 0.02 250); }

/* team */
.team-card { border-radius: 20px; overflow: hidden; }
.team-card__photo {
  width: 100%; aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, oklch(0.24 0.02 250), oklch(0.24 0.02 250) 10px, oklch(0.22 0.02 250) 10px, oklch(0.22 0.02 250) 20px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: oklch(0.55 0.02 250);
  overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team-card__body { padding: 30px; }
.team-card__name { font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.team-card__role { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.team-card__bio { font-size: 14px; line-height: 1.6; color: oklch(0.68 0.02 250); margin: 0 0 16px; }
.team-card__skills { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.team-card__skills li { font-size: 14px; color: oklch(0.72 0.02 250); line-height: 1.5; }

/* timeline */
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid oklch(1 0 0 / 0.07); }
.timeline-item__year { font-size: 22px; font-weight: 700; color: oklch(0.75 0.16 205); font-family: 'Space Grotesk', sans-serif; }
.timeline-item__title { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; }
.timeline-item__desc { font-size: 14.5px; color: oklch(0.68 0.02 250); line-height: 1.6; margin: 0; }

/* principles */
.principle__num { font-size: 30px; font-weight: 700; color: oklch(0.75 0.16 205 / 0.4); margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; }
.principle__title { font-size: 16.5px; font-weight: 600; margin: 0 0 8px; }
.principle__desc { font-size: 14.5px; color: oklch(0.68 0.02 250); line-height: 1.6; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 40px; padding-bottom: 60px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 44px; }
.contact-item { display: flex; align-items: center; gap: 16px; color: oklch(0.93 0.01 250); }
.contact-item__icon { width: 48px; height: 48px; border-radius: 12px; background: oklch(0.75 0.16 205 / 0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item__label { font-size: 13px; color: oklch(0.6 0.02 250); margin-bottom: 2px; }
.contact-item__value { font-size: 16px; font-weight: 600; }
.hours-box { border-radius: 16px; border: 1px solid oklch(1 0 0 / 0.07); background: oklch(0.19 0.02 250); padding: 28px; }
.hours-row { display: flex; justify-content: space-between; font-size: 14.5px; color: oklch(0.75 0.02 250); padding: 5px 0; }
.hours-row span:last-child { color: oklch(0.93 0.01 250); font-weight: 600; }

.contact-form {
  background: oklch(0.19 0.02 250); border: 1px solid oklch(1 0 0 / 0.07); border-radius: 20px; padding: 38px;
  display: flex; flex-direction: column; gap: 18px; height: fit-content;
}
.contact-form__title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; }
.contact-form__note { font-size: 14px; color: oklch(0.66 0.02 250); margin: -8px 0 4px; }
.contact-form input, .contact-form textarea {
  background: oklch(0.14 0.02 250); border: 1px solid oklch(1 0 0 / 0.1); border-radius: 10px;
  padding: 14px 16px; color: oklch(0.93 0.01 250); font-size: 14.5px; font-family: inherit; width: 100%;
}
.contact-form textarea { resize: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: oklch(0.5 0.02 250); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: oklch(0.75 0.16 205 / 0.6); }

/* footer */
.footer {
  border-top: 1px solid oklch(1 0 0 / 0.07); padding: 36px 56px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; color: oklch(0.55 0.02 250); font-size: 13.5px; font-family: 'JetBrains Mono', monospace;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 90px 32px 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; }
  .nav { padding: 0 24px; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: oklch(0.14 0.02 250 / 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid oklch(1 0 0 / 0.07);
    padding: 10px 24px 18px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .nav__links.is-open { max-height: 320px; opacity: 1; }
  .nav__phone { font-size: 12px; padding: 8px 14px; }
  .section, .section--narrow { padding-left: 24px; padding-right: 24px; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--team, .grid--steps, .grid--principles { grid-template-columns: 1fr; }
  .hero { padding: 70px 24px 44px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .uptime-badge { position: static; margin-top: 16px; display: inline-block; }
  .stats-panel { padding: 36px 26px; gap: 28px; }
  .cta-box { padding: 48px 28px; }
  .panel-box { padding: 34px 24px; }
  .service-row { padding: 28px 22px; }
  .contact-form { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .nav__phone { display: none; }
  .nav__brand-text { font-size: 15px; }
  .nav__logo { width: 36px; height: 36px; }
  .section, .section--narrow { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 60px 18px 36px; }
  .hero__actions .btn { width: 100%; text-align: center; }
}
