:root {
  --ink: #07111f;
  --ink-2: #0e1a2c;
  --paper: #f6f8fb;
  --white: #ffffff;
  --muted: #687586;
  --muted-2: #a8b4c4;
  --line: rgba(7, 17, 31, 0.13);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #2ea8ff;
  --accent-2: #8de8ff;
  --success: #37d99e;
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.14);
  --header-height: 76px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line-dark);
  background: rgba(7, 17, 31, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--accent-2);
  background: rgba(46, 168, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink) !important;
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(0.92) contrast(1.06);
  transform: scale(1.02);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.78) 38%, rgba(7, 17, 31, 0.22) 72%, rgba(7, 17, 31, 0.42) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.82) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 92svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 24px) 0 72px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.9rem, 6.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--accent-2);
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
}

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

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-primary {
  color: var(--ink);
  background: var(--accent-2);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section-intro {
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.answer-section,
.audit-section,
.service-band,
.systems-section,
.process-section,
.build-stories-section,
.projects-section,
.pricing-section,
.about-section,
.faq-section,
.contact-section {
  padding: clamp(76px, 10vw, 132px) max(20px, calc((100% - 1180px) / 2));
}

.answer-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  background: var(--white);
}

.audit-section {
  background: var(--paper);
}

.audit-section .section-intro {
  margin-bottom: 48px;
}

.audit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audit-item {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.audit-item:last-child {
  border-right: 0;
}

.audit-item span,
.cred-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audit-item h3 {
  margin-top: 18px;
}

.audit-item p {
  margin-top: 14px;
  color: var(--muted);
}

.answer-copy p,
.section-intro > p,
.sticky-copy > p,
.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--accent);
  font-weight: 900;
}

.text-link:hover {
  color: var(--ink);
}

.service-band,
.projects-section,
.contact-section {
  color: var(--white);
  background: var(--ink);
}

.service-band .section-intro,
.projects-section .section-intro {
  margin-bottom: 48px;
}

.service-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  padding: 32px 0;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.service-row span,
.system-item span,
.process-list span,
.price-item span,
.project-item span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-row p,
.project-item p,
.contact-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.service-row a,
.price-item a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.systems-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(42px, 7vw, 98px);
  background: var(--paper);
}

.sticky-copy {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
}

.sticky-copy p {
  margin-top: 24px;
}

.system-list,
.project-list,
.pricing-list,
.process-list,
.faq-list {
  display: grid;
  gap: 0;
}

.system-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.system-item:last-child {
  border-bottom: 1px solid var(--line);
}

.system-item h3 {
  margin-top: 10px;
}

.system-item p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
}

.process-section {
  background: var(--white);
}

.process-section .section-intro,
.pricing-section .section-intro,
.faq-section .section-intro {
  margin-bottom: 48px;
}

.process-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.process-list strong {
  display: block;
  margin-top: 16px;
  font-size: 1.1rem;
}

.process-list p {
  margin-top: 8px;
  color: var(--muted);
}

.build-stories-section {
  background: #fbfcf7;
}

.build-stories-section .section-intro {
  max-width: 900px;
  margin-bottom: 48px;
}

.build-stories-section .section-intro p {
  margin-top: 18px;
}

.story-board {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.build-story {
  display: grid;
  grid-template-columns: 0.36fr 1fr 0.52fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 42px) 0;
}

.story-index {
  align-self: start;
}

.story-index span,
.story-steps span {
  color: #0b8f6d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-index strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.story-body p {
  margin-top: 14px;
  color: var(--muted);
}

.story-checks,
.story-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.story-checks span {
  border: 1px solid rgba(11, 143, 109, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  color: #135c4d;
  background: rgba(217, 246, 235, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.story-steps span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--white);
}

.story-art {
  position: relative;
  display: grid;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(7, 17, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 18px 54px rgba(7, 17, 31, 0.08);
}

.story-art > span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  color: #0b8f6d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-art-figma i,
.story-art-code i {
  display: block;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.16);
}

.story-art-figma {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  padding: 54px 16px 16px;
}

.story-art-figma i {
  min-height: 116px;
}

.story-art-figma i:nth-of-type(2) {
  min-height: 150px;
  background: #123c35;
}

.story-art-figma i:nth-of-type(3) {
  min-height: 92px;
  background: #195b4d;
}

.story-art-code {
  align-content: end;
  gap: 12px;
  padding: 58px 18px 18px;
}

.story-art-code i {
  height: 14px;
  background: #0b8f6d;
}

.story-art-code i:nth-of-type(1) {
  width: 74%;
}

.story-art-code i:nth-of-type(2) {
  width: 92%;
  background: var(--ink);
}

.story-art-code i:nth-of-type(3) {
  width: 58%;
}

.story-art-code i:nth-of-type(4) {
  width: 82%;
  background: #195b4d;
}

.story-art-feedback {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-content: end;
  padding: 58px 16px 16px;
  background:
    linear-gradient(135deg, rgba(141, 232, 255, 0.2), transparent 48%),
    linear-gradient(rgba(7, 17, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.story-art-feedback strong {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(7, 17, 31, 0.14);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  font-size: 0.82rem;
}

.story-art-feedback strong:nth-of-type(even) {
  transform: translateY(-18px);
  color: var(--ink);
  background: var(--accent-2);
}

.projects-section .section-intro p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.project-item {
  display: grid;
  grid-template-columns: 0.52fr 0.8fr 0.52fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line-dark);
  padding: 32px 0;
}

.project-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.project-item span {
  color: rgba(141, 232, 255, 0.86);
  line-height: 1.55;
}

.pricing-section {
  background: var(--paper);
}

.pricing-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-item {
  min-height: 320px;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.price-item:last-child {
  border-right: 0;
}

.price-item:hover,
.price-item.is-featured {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.price-item h3 {
  margin-top: 18px;
}

.price-item p {
  margin-top: 16px;
  color: var(--muted);
}

.price-item a {
  margin-top: 28px;
  color: var(--white);
  background: var(--ink);
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  background: var(--white);
}

.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cred-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
}

.faq-section {
  background: var(--paper);
}

details {
  border-top: 1px solid var(--line);
  background: transparent;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 900;
}

details p {
  max-width: 780px;
  padding: 0 0 24px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.contact-copy p {
  margin-top: 22px;
}

.contact-email {
  display: inline-flex;
  margin-top: 26px;
  color: var(--accent-2);
  font-weight: 900;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.07);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--white);
  background: rgba(7, 17, 31, 0.72);
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.18);
}

.lead-form input.is-invalid,
.lead-form select.is-invalid,
.lead-form textarea.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16);
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.full-field {
  grid-column: 1 / -1;
}

.form-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.field-error {
  min-height: 18px;
  color: #ffb4b4;
  font-size: 0.8rem;
  line-height: 1.35;
}

.form-status {
  min-height: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: #9ff3c8;
}

.form-status.is-error {
  color: #ffb4b4;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 44px max(20px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.68);
  background: #050b14;
}

.footer .brand {
  color: var(--white);
}

.footer p {
  max-width: 440px;
  margin-top: 12px;
}

.copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.44);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.5%, 0.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    max-height: calc(100svh - var(--header-height) - 28px);
    padding: 18px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    text-align: center;
  }

  .answer-section,
  .audit-list,
  .systems-section,
  .build-story,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .sticky-copy,
  .contact-copy {
    position: static;
  }

  .service-row,
  .project-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-row a {
    justify-self: start;
  }

  .process-list,
  .audit-list,
  .pricing-list {
    grid-template-columns: 1fr 1fr;
  }

  .price-item {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .nav,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.76) 66%, rgba(7, 17, 31, 0.5) 100%),
      linear-gradient(0deg, rgba(7, 17, 31, 0.84) 0%, transparent 46%);
  }

  .hero-inner {
    min-height: 94svh;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .answer-section,
  .audit-section,
  .service-band,
  .systems-section,
  .process-section,
  .build-stories-section,
  .projects-section,
  .pricing-section,
  .about-section,
  .faq-section,
  .contact-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .process-list,
  .audit-list,
  .pricing-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .price-item {
    border-right: 0;
  }

  .audit-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audit-item:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
