:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #12182b;
  --surface-2: #171f37;
  --text: #f4f7fb;
  --muted: #b6bfd2;
  --line: rgba(255, 255, 255, 0.1);
  --accent-50: #f0fdfa;
  --accent-100: #ccfbf1;
  --accent-300: #5eead4;
  --accent-500: #14b8a6;
  --accent-700: #0f766e;
  --shadow-rest: 0 18px 60px rgba(0, 0, 0, 0.24);
  --shadow-lift: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.14), transparent 28%),
    linear-gradient(180deg, #0a0f1d 0%, #0b1020 100%);
  color: var(--text);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-300);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header,
.site-footer,
.hero,
.logo-strip,
.section {
  border: 1px solid var(--line);
  background: rgba(18, 24, 43, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-rest);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  margin-top: 24px;
  border-radius: var(--radius);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent-100);
}

.section-grid,
.about-layout,
.cta,
.project-grid,
.feature-grid {
  display: grid;
}

.hero {
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  padding: 48px;
  margin-top: 24px;
  border-radius: calc(var(--radius) + 4px);
}

.eyebrow,
.project-type,
.testimonial-meta,
.legal {
  color: var(--muted);
  font-size: 0.95rem;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  max-width: 10ch;
  margin-top: 12px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
  max-width: 14ch;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.hero-text,
.project-copy p,
.feature-card p,
.about-layout p,
.cta p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.cta-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.button-primary {
  background: var(--accent-300);
  color: #062221;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.text-link {
  color: var(--accent-100);
  font-weight: 600;
}

.hero-card,
.project-card,
.feature-card,
.testimonial,
.cta {
  border-radius: var(--radius);
}

.hero-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(23, 31, 55, 0.95), rgba(12, 17, 31, 0.95));
  border: 1px solid var(--line);
}

.metric-row {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row span {
  color: var(--muted);
}

.metric-row strong {
  font-size: 1.1rem;
  line-height: 1.45;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px;
  margin-top: 24px;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.section {
  padding: 48px;
  margin-top: 24px;
  border-radius: var(--radius);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-heading.narrow h2 {
  max-width: 12ch;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card,
.feature-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.project-card {
  padding: 24px;
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.project-copy ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 12px;
}

.ui-panel {
  min-height: 320px;
  background: linear-gradient(180deg, #eef2ff, #dbeafe);
  border-radius: var(--radius);
  overflow: hidden;
}

.ui-topbar {
  height: 44px;
  background: rgba(11, 16, 32, 0.12);
}

.ui-layout {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: calc(320px - 44px);
}

.ui-sidebar {
  background: rgba(11, 16, 32, 0.08);
}

.ui-content {
  padding: 24px;
}

.ui-chart {
  height: 144px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(59, 130, 246, 0.8));
}

.ui-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ui-cards span {
  height: 72px;
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.14);
}

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

.feature-card {
  padding: 24px;
}

.about-layout,
.cta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.testimonial {
  text-align: center;
}

blockquote {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 24px;
}

.legal {
  text-align: right;
}

@media (max-width: 1024px) {
  .hero,
  .project-card.featured,
  .about-layout,
  .cta {
    grid-template-columns: 1fr;
  }

  .logo-strip,
  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section {
    padding: 32px 20px;
  }

  .logo-strip,
  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
}

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

  h2 {
    font-size: 1.9rem;
  }
}
