:root {
  --bg: #f7f9fb;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --teal: #18b6a8;
  --blue: #2868e8;
  --coral: #ff6f61;
  --dark: #07111d;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(40, 104, 232, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(24, 182, 168, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), var(--content));
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.trust-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #344054;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
  background: rgba(40, 104, 232, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: #eef4ff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.88) 0%, rgba(7, 17, 29, 0.58) 46%, rgba(7, 17, 29, 0.14) 100%),
    linear-gradient(0deg, rgba(7, 17, 29, 0.92) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 160px 0 96px;
}

.eyebrow,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 14px 28px rgba(40, 104, 232, 0.28);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

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

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(calc(100% - 32px), var(--content));
  margin: -34px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.trust-strip span {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #344054;
  background: #f2f6fb;
  font-weight: 800;
}

.section {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 100px 0 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.service-grid,
.work-grid,
.process-list,
.metrics-section {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.service-card,
.project-card,
.process-item,
.metric,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-card,
.project-card,
.process-item {
  padding: 24px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-weight: 900;
}

.service-card h3,
.project-card h3 {
  font-size: 1.35rem;
}

.service-card p,
.project-card p,
.process-item p,
.contact-card p,
.metric span {
  color: var(--muted);
  line-height: 1.7;
}

.service-card p,
.project-card p {
  margin-top: 12px;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.featured-project-section {
  padding-top: 74px;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
  min-height: 420px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(24, 182, 168, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 248, 244, 0.9)),
    radial-gradient(circle at 86% 12%, rgba(24, 182, 168, 0.16), transparent 32%);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.featured-project:hover,
.featured-project:focus-visible {
  border-color: rgba(24, 182, 168, 0.52);
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.16);
  transform: translateY(-3px);
  outline: none;
}

.featured-project-copy h2 {
  margin-top: 12px;
  color: #0f513f;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.92;
}

.featured-project-copy p {
  max-width: 660px;
  margin-top: 18px;
  color: #475467;
  font-size: 1.08rem;
  line-height: 1.8;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #0f766e;
  font-weight: 900;
}

.featured-dashboard {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(15, 81, 63, 0.14);
}

.featured-dashboard .demo-label {
  justify-self: start;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #0f513f;
  background: #dff8ef;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-dashboard div {
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
}

.featured-dashboard strong,
.featured-dashboard span {
  display: block;
}

.featured-dashboard strong {
  color: #0f513f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.featured-dashboard span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.project-card {
  min-height: 280px;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tags span {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #175cd3;
  background: #eaf1ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.process-list {
  margin-top: 34px;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.process-item strong,
.metric strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--blue);
  font-size: 2rem;
}

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

.metric {
  padding: 24px;
}

.metric strong,
.metric span {
  display: block;
}

.metric span {
  margin-top: 12px;
  font-weight: 700;
}

.contact-section {
  padding-bottom: 56px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 17, 29, 0.94), rgba(14, 68, 93, 0.94)),
    url("/assets/ai-portfolio-hero.png") center / cover;
}

.contact-card p {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 240px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .service-grid,
  .work-grid,
  .metrics-section,
  .featured-project,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 17, 29, 0.92), rgba(7, 17, 29, 0.62)),
      linear-gradient(0deg, rgba(7, 17, 29, 0.96), transparent 48%);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.8rem);
  }

  .section {
    width: calc(100% - 28px);
    padding-top: 76px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
  }
}
