:root {
  --color-primary: #2563eb;
  --color-on-primary: #ffffff;
  --color-secondary: #7c3aed;
  --color-accent: #ec4899;
  --color-background: #ffffff;
  --color-foreground: #0f172a;
  --color-card: #ffffff;
  --color-muted: #f1f5fd;
  --color-muted-foreground: #475569;
  --color-border: #e4ecfc;
  --color-ring: #2563eb;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 44px rgba(37, 99, 235, 0.09);
  --shadow-lg: 0 28px 70px rgba(50, 39, 115, 0.15);
  color-scheme: light;
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-foreground);
  background:
    radial-gradient(circle at 10% -5%, rgba(37, 99, 235, 0.13), transparent 24rem),
    radial-gradient(circle at 96% 6%, rgba(236, 72, 153, 0.1), transparent 24rem),
    #fff;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  background-image: linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 56%);
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.16);
}

button {
  touch-action: manipulation;
}

button {
  font: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--color-foreground);
  border-radius: 0.75rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.page-shell {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.wordmark {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  min-height: 44px;
  font: 600 1.05rem/1 "Outfit", sans-serif;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: white;
  background: var(--color-foreground);
  border-radius: 0.68rem;
  place-items: center;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
}

.site-nav a {
  min-height: 44px;
  padding: 0.72rem 1rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover {
  color: var(--color-foreground);
  background: var(--color-muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
  min-height: min(780px, calc(100vh - 82px));
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.35rem;
  color: var(--color-primary);
  font: 600 0.78rem/1.4 "Outfit", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.58rem 0.8rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  background: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.15rem, 7.2vw, 6.55rem);
  font-weight: 600;
  line-height: 0.99;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(112deg, var(--color-primary) 4%, var(--color-secondary) 52%, var(--color-accent) 96%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 700px;
  margin: 2rem 0 0;
  color: var(--color-muted-foreground);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  align-items: center;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.86rem 1.25rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.button-primary {
  color: white;
  background: var(--color-foreground);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.button-primary:hover {
  background: var(--color-primary);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
  transform: translateY(-2px);
}

.demo-note {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}

.hero-orbit {
  position: relative;
  min-height: 390px;
}

.orbit-ring,
.orbit-core,
.orbit-chip {
  position: absolute;
}

.orbit-ring {
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 50%;
  inset: 8%;
}

.orbit-ring-one::after,
.orbit-ring-two::after {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--color-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.orbit-ring-two {
  inset: 21%;
  border-color: rgba(236, 72, 153, 0.22);
}

.orbit-ring-two::after {
  top: 12%;
  right: 4%;
  left: auto;
  background: var(--color-accent);
}

.orbit-core {
  inset: 35%;
  display: grid;
  color: white;
  background: linear-gradient(145deg, #111827, #253052);
  border: 5px solid white;
  border-radius: 32%;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.25);
  place-content: center;
  text-align: center;
  transform: rotate(-7deg);
}

.orbit-core span {
  font: 700 clamp(2.2rem, 5vw, 4.2rem)/0.9 "Outfit", sans-serif;
}

.orbit-core small {
  margin-top: 0.45rem;
  font: 500 0.63rem/1 "Outfit", sans-serif;
  letter-spacing: 0.18em;
}

.orbit-chip {
  padding: 0.7rem 0.9rem;
  font: 500 0.78rem/1 "Outfit", sans-serif;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.orbit-chip-one {
  top: 12%;
  left: 1%;
}

.orbit-chip-two {
  top: 33%;
  right: -2%;
}

.orbit-chip-three {
  bottom: 12%;
  left: 4%;
}

.work-section {
  padding: 5rem 0 7rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
}

.section-heading > p {
  margin: 0 0 0.35rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.project-card {
  position: relative;
  display: flex;
  grid-column: span 5;
  flex-direction: column;
  min-height: 770px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  background: var(--card-tint, #f5f7ff);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 1.65rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: box-shadow 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.project-card::before {
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 25rem;
  height: 25rem;
  content: "";
  background: var(--card-glow);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.project-wide {
  grid-column: span 7;
  min-height: 690px;
}

.project-violet {
  --card-tint: #f7f3ff;
  --card-glow: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 68%);
  --project-accent: #6d28d9;
}

.project-blue {
  --card-tint: #eff7ff;
  --card-glow: radial-gradient(circle, rgba(37, 99, 235, 0.23), transparent 68%);
  --project-accent: #1d4ed8;
}

.project-card-head,
.project-access {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  color: var(--project-accent);
  font: 600 0.78rem/1 "Outfit", sans-serif;
  letter-spacing: 0.12em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: flex-end;
}

.project-tags span,
.principles span {
  padding: 0.5rem 0.66rem;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.product-preview {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 1.7rem;
  overflow: hidden;
  color: #dce8ff;
  background: #111827;
  border: 6px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.17);
}

.preview-hub {
  height: 260px;
  transform: rotate(-1deg);
}

.preview-topbar {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  height: 35px;
  padding: 0 0.8rem;
  background: #172033;
  border-bottom: 1px solid #263244;
}

.preview-topbar span {
  width: 6px;
  height: 6px;
  background: #4b5871;
  border-radius: 50%;
}

.preview-topbar span:first-child {
  background: #2dd4a7;
}

.preview-topbar b {
  margin-left: auto;
  color: #8b98a8;
  font: 500 0.48rem/1 "Outfit", sans-serif;
  letter-spacing: 0.14em;
}

.hub-layout {
  display: grid;
  grid-template-columns: 45px 1fr;
  height: calc(100% - 35px);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  padding-top: 1.2rem;
  background: #0d1421;
  border-right: 1px solid #263244;
}

.preview-sidebar i {
  width: 13px;
  height: 13px;
  background: #344158;
  border-radius: 4px;
}

.preview-sidebar i.active {
  background: #2dd4a7;
}

.hub-main {
  padding: 1.05rem;
}

.mini-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: #8b98a8;
  font-size: 0.55rem;
}

.mini-heading strong {
  color: #2dd4a7;
}

.account-row {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  margin-bottom: 0.55rem;
  background: #172033;
  border: 1px solid #263244;
  border-radius: 0.6rem;
}

.account-row > i {
  width: 27px;
  height: 27px;
  background: linear-gradient(145deg, #7c3aed, #2563eb);
  border-radius: 50%;
}

.account-row span {
  display: flex;
  flex-direction: column;
}

.account-row b {
  color: #e6edf3;
  font-size: 0.54rem;
}

.account-row small {
  margin-top: 0.2rem;
  color: #8b98a8;
  font-size: 0.43rem;
}

.account-row em {
  padding: 0.28rem 0.38rem;
  color: #2dd4a7;
  font: 500 0.42rem/1 "Rubik", sans-serif;
  background: rgba(45, 212, 167, 0.09);
  border-radius: 999px;
}

.timeline-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.05rem 0.5rem 0;
  border-top: 1px solid #344158;
}

.timeline-line span {
  width: 8px;
  height: 8px;
  margin-top: -5px;
  background: #2dd4a7;
  border: 2px solid #111827;
  border-radius: 50%;
}

.preview-metrics {
  height: 215px;
  padding: 1.25rem;
  background: linear-gradient(145deg, #0d1836, #142a5c);
  transform: rotate(1deg);
}

.metric-header,
.metric-hero,
.metric-footer {
  display: flex;
  align-items: center;
}

.metric-header {
  justify-content: space-between;
  color: #a9bce2;
  font-size: 0.55rem;
}

.metric-header b {
  padding: 0.3rem 0.45rem;
  color: #9be8ce;
  font-size: 0.43rem;
  letter-spacing: 0.1em;
  background: rgba(45, 212, 167, 0.1);
  border-radius: 999px;
}

.metric-hero {
  gap: 0.4rem;
  margin-top: 0.95rem;
}

.metric-hero strong {
  color: white;
  font: 600 2.2rem/1 "Outfit", sans-serif;
}

.metric-hero span {
  color: #a9bce2;
  font-size: 0.56rem;
}

.metric-hero i {
  margin-left: auto;
  color: #7de3bd;
  font-size: 0.55rem;
}

.metric-bars {
  display: flex;
  gap: 0.42rem;
  align-items: end;
  height: 62px;
  margin-top: 0.85rem;
  border-bottom: 1px solid rgba(169, 188, 226, 0.2);
}

.metric-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, #2563eb, #66a7ff);
  border-radius: 0.25rem 0.25rem 0 0;
}

.metric-footer {
  gap: 1rem;
  margin-top: 0.72rem;
  color: #a9bce2;
  font-size: 0.47rem;
}

.metric-footer b {
  color: white;
}

.project-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-short-title {
  margin: 0 0 0.5rem;
  color: var(--project-accent);
  font: 600 0.72rem/1.4 "Outfit", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  max-width: 720px;
  font-size: clamp(1.75rem, 3.1vw, 3.05rem);
  line-height: 1.06;
}

.project-description,
.project-result {
  color: var(--color-muted-foreground);
  line-height: 1.72;
}

.project-description {
  margin: 1rem 0;
}

.project-result {
  padding-top: 0.9rem;
  margin: auto 0 1.3rem;
  font-size: 0.88rem;
  border-top: 1px solid rgba(71, 85, 105, 0.12);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 1rem;
  padding: 0;
  margin: 0.2rem 0 1.25rem;
  list-style: none;
}

.capability-list li {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  color: #334155;
  font-size: 0.78rem;
}

.capability-list svg {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--project-accent);
}

.project-access {
  padding-top: 1rem;
  border-top: 1px solid rgba(71, 85, 105, 0.12);
}

.credential {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(71, 85, 105, 0.12);
  border-radius: 0.75rem;
}

.credential > span {
  color: var(--project-accent);
  font: 600 0.63rem/1 "Outfit", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential code {
  color: #334155;
  font-family: "Rubik", sans-serif;
  font-size: 0.72rem;
}

.copy-credential {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-muted-foreground);
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  cursor: pointer;
  place-items: center;
  transition: color 180ms ease, background-color 180ms ease;
}

.copy-credential:hover {
  color: var(--project-accent);
  background: rgba(37, 99, 235, 0.08);
}

.copy-credential:active {
  background: rgba(37, 99, 235, 0.14);
  transform: scale(0.96);
}

.project-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  background: var(--color-foreground);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.project-access {
  position: static;
}

.project-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
}

.project-link:hover {
  background: var(--project-accent);
  transform: translateY(-2px);
}

.button:active,
.project-link:active {
  transform: translateY(0) scale(0.98);
}

.about-section {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: 6rem clamp(1.5rem, 6vw, 5rem);
  margin-bottom: 5rem;
  color: white;
  background: var(--color-foreground);
  border-radius: 2rem;
}

.about-label span {
  color: #93c5fd;
  font: 600 0.85rem/1 "Outfit", sans-serif;
}

.about-label p {
  margin-top: 0.8rem;
  color: #94a3b8;
  font: 500 0.68rem/1.5 "Outfit", sans-serif;
  letter-spacing: 0.12em;
}

.about-copy h2 {
  max-width: 780px;
}

.about-copy > p {
  max-width: 730px;
  margin: 1.5rem 0 0;
  color: #b6c2d4;
  line-height: 1.8;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.principles span {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(147, 197, 253, 0.16);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 2.7rem;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  padding: 0.85rem 1rem;
  color: white;
  font-size: 0.85rem;
  background: var(--color-foreground);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    display: none;
  }

  .project-card,
  .project-wide {
    grid-column: span 6;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .page-shell {
    width: min(100% - 1.25rem, 1200px);
  }

  .site-header {
    min-height: 70px;
  }

  .site-nav a {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 5.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.5rem);
  }

  .project-card,
  .project-wide {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .project-access,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-link {
    width: 100%;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.4rem;
  }
}

@media (max-width: 430px) {
  .wordmark > span:last-child {
    display: none;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .credential {
    justify-content: space-between;
  }

  .preview-hub {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
