:root {
  --ink: #071a2f;
  --ink-2: #12304d;
  --muted: #5a6b7c;
  --line: #dbe9ef;
  --paper: #f6fbfc;
  --white: #ffffff;
  --blue: #064a92;
  --cyan: #07c9d8;
  --green: #039873;
  --gold: #f4b942;
  --rose: #e95675;
  --shadow: 0 24px 70px rgba(7, 26, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 26, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 47, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 62px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 233, 239, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  width: min(245px, 54vw);
}

.brand img,
.footer img {
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  place-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 540px);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 72px);
  background:
    radial-gradient(circle at 12% 18%, rgba(7, 201, 216, 0.18), transparent 27%),
    radial-gradient(circle at 85% 28%, rgba(3, 152, 115, 0.18), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #edf9f8 48%, #f8fcfd 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
button,
span {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.22;
}

.hero-copy > p:not(.eyebrow),
.section-head > p,
.process-copy > p,
.cta p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 16px 34px rgba(6, 74, 146, 0.24);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-2);
  font-weight: 900;
}

.showcase-top img {
  width: 235px;
  border-radius: 6px;
}

.orbit-visual {
  position: relative;
  height: 355px;
  margin: 34px 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(7, 201, 216, 0.18) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(6, 74, 146, 0.08), rgba(3, 152, 115, 0.08));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.planet {
  position: relative;
  z-index: 2;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 34% 28%, #5af1ed, transparent 28%),
    linear-gradient(145deg, #063e8d, #03a474);
  border-radius: 999px;
  box-shadow: 0 30px 60px rgba(6, 74, 146, 0.28);
}

.planet span {
  font-size: 5.4rem;
  font-weight: 900;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(6, 74, 146, 0.34);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  width: 330px;
  height: 118px;
}

.orbit-two {
  width: 260px;
  height: 260px;
  border-color: rgba(3, 152, 115, 0.24);
  transform: rotate(24deg);
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.spark-one {
  top: 68px;
  right: 108px;
}

.spark-two {
  left: 82px;
  bottom: 88px;
  background: var(--cyan);
}

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

.showcase-grid article {
  min-height: 116px;
  padding: 16px;
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.showcase-grid strong {
  display: block;
  color: var(--blue);
  font-size: 1.45rem;
}

.showcase-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px clamp(18px, 5vw, 72px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip span {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  background: var(--white);
  color: var(--ink-2);
  font-weight: 900;
}

.section {
  padding: clamp(68px, 10vw, 118px) clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 850px;
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter,
.tab,
.chat-actions button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.filter.active,
.tab.active,
.chat-actions button:hover,
.chat-actions button:focus-visible {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.service-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.industry-grid article,
.tool-panel,
.tab-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.06);
}

.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
}

.service-card.is-hidden {
  display: none;
}

.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 900;
}

.service-card p,
.industry-grid p,
.tab-panel p,
.tab-panel li {
  color: var(--muted);
}

.tools {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.tool-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(3, 152, 115, 0.1);
  border: 1px solid rgba(3, 152, 115, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

.api-playground select {
  margin-bottom: 12px;
}

.code-output {
  min-height: 230px;
  margin: 14px 0 0;
  padding: 16px;
  overflow: auto;
  color: #d9fbff;
  background: #061525;
  border-radius: 8px;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  align-items: center;
}

.range-row strong {
  min-width: 34px;
  text-align: right;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list input {
  width: 18px;
  min-height: 18px;
}

.estimate-result {
  padding: 18px;
  background: linear-gradient(135deg, rgba(6, 74, 146, 0.08), rgba(3, 152, 115, 0.12));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.estimate-result span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.estimate-result strong {
  display: block;
  color: var(--blue);
  font-size: 1.8rem;
}

.chat-window {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.message.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
}

.message.user {
  align-self: flex-end;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.chat-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.industry-grid article {
  min-height: 230px;
  padding: 26px;
}

.industry-grid span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--rose);
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.95), rgba(6, 74, 146, 0.9)),
    var(--ink);
  color: var(--white);
}

.process-copy p,
.process .eyebrow {
  color: #a8ebe3;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-panel {
  padding: 28px;
  color: var(--ink);
}

.tab-panel ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stack-grid span {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  margin: 0 clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
  padding: clamp(34px, 6vw, 58px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(7, 201, 216, 0.24), transparent 24%),
    linear-gradient(135deg, #071a2f, #0b3c69);
  border-radius: 8px;
}

.cta h2 {
  max-width: 760px;
}

.cta .eyebrow,
.cta p {
  color: #a8ebe3;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.contact-form label {
  color: var(--white);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: #a8ebe3;
  font-size: 0.94rem;
}

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 185px;
}

.footer strong {
  display: block;
  color: var(--ink);
}

.footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero,
  .tools-grid,
  .process,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: auto;
  }

  .service-grid,
  .industry-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-block: 10px;
  }

  .brand {
    width: min(210px, 66vw);
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .showcase-top,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-grid,
  .service-grid,
  .industry-grid,
  .stack-grid,
  .trust-strip,
  .chat-actions,
  .range-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .orbit-one {
    width: 260px;
    height: 98px;
  }

  .orbit-two {
    width: 220px;
    height: 220px;
  }

  .planet {
    width: 132px;
    height: 132px;
  }
}
