:root {
  --ink: #07121c;
  --ink-soft: #132233;
  --teal: #12b8b6;
  --teal-dark: #087b7b;
  --lime: #d6f35f;
  --coral: #ff6848;
  --paper: #f7f8f1;
  --white: #ffffff;
  --muted: #5d6874;
  --line: #dce3e2;
  --shadow: 0 22px 70px rgba(7, 18, 28, 0.16);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(7, 18, 28, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(7, 18, 28, 0.24);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-legal {
  font-size: 0.78rem;
  color: currentColor;
  opacity: 0.78;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(18, 184, 182, 0.14);
  color: var(--teal);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: url("assets/codesharks-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 18, 28, 0.92) 0%, rgba(7, 18, 28, 0.76) 36%, rgba(7, 18, 28, 0.26) 76%, rgba(7, 18, 28, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 18, 28, 0.42), rgba(7, 18, 28, 0.04));
}

.hero-content {
  padding-block: 136px 88px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 4.2rem;
  line-height: 1.02;
  font-weight: 850;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.65rem;
  line-height: 1.08;
  font-weight: 830;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button-primary {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(7, 18, 28, 0.26);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.capability-strip {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.strip-grid div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 116px;
  padding: 24px;
  background: var(--ink);
}

.strip-grid strong {
  color: var(--lime);
  font-size: 1rem;
}

.strip-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  padding-block: 96px;
}

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

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

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

.section-accent {
  background: #ecfaf9;
}

.section-contact {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 18, 28, 0.98), rgba(8, 123, 123, 0.95)),
    var(--ink);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading-left {
  margin: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.industry-layout p,
.contact-copy p,
.footer-brand p {
  color: var(--muted);
}

.section-heading .eyebrow {
  color: var(--teal);
}

.section-ink .section-heading p:not(.eyebrow),
.section-contact .contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.section-ink .section-heading .eyebrow,
.section-contact .contact-copy .eyebrow {
  color: var(--lime);
}

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

.service-card,
.model-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  min-height: 360px;
  padding: 28px;
  box-shadow: 0 14px 44px rgba(7, 18, 28, 0.06);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
}

.service-icon svg,
.contact-details svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.solutions-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 56px;
}

.solution-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.solution-tile {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.solution-tile:nth-child(2) {
  background: rgba(18, 184, 182, 0.18);
}

.solution-tile:nth-child(3) {
  background: rgba(255, 104, 72, 0.16);
}

.tile-large {
  min-height: 460px;
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(214, 243, 95, 0.18), rgba(18, 184, 182, 0.1)),
    rgba(255, 255, 255, 0.08);
}

.solution-tile span,
.process-step span {
  color: var(--lime);
  font-weight: 900;
}

.solution-tile strong {
  display: block;
  max-width: 360px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.solution-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 52px;
  align-items: start;
}

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

.model-card {
  min-height: 220px;
  padding: 26px;
  background: var(--paper);
}

.model-card p {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-step {
  position: relative;
  min-height: 240px;
  padding: 24px;
  overflow: hidden;
}

.process-step::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border: 18px solid rgba(18, 184, 182, 0.16);
  border-radius: 50%;
}

.process-step span {
  color: var(--teal-dark);
}

.process-step p {
  color: var(--muted);
}

.industry-layout,
.stack-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.industry-list,
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-list span,
.stack-tags span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 760;
}

.stack-tags span {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(8, 123, 123, 0.2);
}

.contact-copy h2 {
  color: var(--white);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.contact-details svg {
  color: var(--lime);
  flex: 0 0 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 740;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 18, 28, 0.42);
  padding: 12px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(214, 243, 95, 0.2);
}

.form-submit {
  width: fit-content;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--lime);
  font-weight: 760;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #050b12;
  padding-block: 56px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 42px;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1rem;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.footer-bottom a {
  color: var(--white);
  font-weight: 780;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

  .solutions-layout,
  .split-layout,
  .industry-layout,
  .stack-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-legal {
    max-width: 180px;
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .site-nav a {
    min-height: 48px;
    justify-content: flex-start;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-bg {
    background-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 18, 28, 0.94), rgba(7, 18, 28, 0.7)),
      linear-gradient(0deg, rgba(7, 18, 28, 0.44), rgba(7, 18, 28, 0.08));
  }

  .hero-content {
    padding-block: 112px 58px;
  }

  h1 {
    font-size: 2.7rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .button,
  .form-submit {
    width: 100%;
  }

  .hero-signals span {
    flex: 1 1 180px;
  }

  .strip-grid,
  .service-grid,
  .model-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .service-card,
  .model-card,
  .process-step {
    min-height: auto;
  }

  .solution-board {
    grid-template-columns: 1fr;
  }

  .tile-large {
    min-height: 300px;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.3rem;
  }

  .brand-legal {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

  .industry-list span,
  .stack-tags span {
    width: 100%;
  }
}

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