:root {
  color-scheme: light;
  --bg: #f6efe6;
  --paper: rgba(255, 251, 245, 0.78);
  --paper-solid: #fffaf4;
  --ink: #171412;
  --muted: #615c57;
  --line: rgba(23, 20, 18, 0.08);
  --accent: #ee6a4d;
  --accent-2: #0f7b7e;
  --accent-3: #efbf56;
  --accent-4: #13313f;
  --shadow-soft: 0 22px 70px rgba(43, 30, 18, 0.08);
  --shadow-strong: 0 24px 90px rgba(43, 30, 18, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1418;
  --paper: rgba(18, 26, 31, 0.82);
  --paper-solid: #111a1f;
  --ink: #eef7f4;
  --muted: #a3b5af;
  --line: rgba(173, 196, 181, 0.14);
  --shadow-soft: 0 24px 72px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 30px 96px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(238, 106, 77, 0.2), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(15, 123, 126, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(239, 191, 86, 0.18), transparent 24%),
    var(--bg);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -2;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite;
}

body::before {
  top: -7rem;
  left: -6rem;
  background: rgba(238, 106, 77, 0.35);
}

body::after {
  right: -6rem;
  bottom: -8rem;
  background: rgba(15, 123, 126, 0.28);
  animation-delay: -7s;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-4);
  color: #fff;
  transition: top 0.2s ease;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.page-shell {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.75);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.site-header.is-scrolled {
  transform: translateY(0.15rem);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--shadow-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.96rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.section {
  padding: 3.25rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 12rem);
  padding-top: 2.5rem;
}

.hero-copy h1,
.section-heading h2,
.stack-card h2,
.contact-card h2,
.apps-banner h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
}

.text-accent {
  color: var(--accent-2);
}

.hero-text,
.section-heading p,
.about-card p,
.capability-card p,
.app-card p,
.process-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 52ch;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-actions,
.contact-links,
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 38px rgba(15, 123, 126, 0.2);
}

.ghost-button,
.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

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

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow-soft);
}

.theme-switcher__button {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-switcher__button:hover,
.theme-switcher__button:focus-visible {
  color: var(--ink);
  outline: none;
}

.theme-switcher__button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(15, 123, 126, 0.18);
}

.primary-button.is-disabled,
.ghost-button.is-disabled,
.secondary-link.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.primary-button.is-disabled {
  background: linear-gradient(135deg, rgba(238, 106, 77, 0.56), rgba(15, 123, 126, 0.48));
}

.ghost-button.is-disabled,
.secondary-link.is-disabled {
  background: rgba(255, 255, 255, 0.38);
}

.dark-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.dark-button.is-disabled {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.signal-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.signal-list li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 6px rgba(238, 106, 77, 0.12);
}

.hero-panel,
.about-card,
.capability-card,
.app-card,
.process-card,
.contact-card,
.apps-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.interactive-card {
  transform-style: preserve-3d;
  transform:
    perspective(1200px)
    rotateX(var(--rotate-x, 0deg))
    rotateY(var(--rotate-y, 0deg))
    translateZ(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.7s ease,
    filter 0.7s ease;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(255, 255, 255, 0.45),
      transparent 28%
    );
  opacity: 0.7;
  pointer-events: none;
}

.interactive-card:hover {
  box-shadow: var(--shadow-strong);
}

.hero-panel {
  min-height: 38rem;
  padding: 1.25rem;
}

.panel-top,
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-top p,
.panel-top span,
.app-type {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.panel-top span {
  color: var(--accent-2);
}

.hero-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.stack-card {
  padding: 1.4rem;
  min-height: 15rem;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(155deg, rgba(19, 49, 63, 0.95), rgba(15, 123, 126, 0.84));
  color: #fff;
}

.stack-card h2 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.stack-label {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card {
  padding: 1.15rem;
  border-radius: calc(var(--radius-xl) - 10px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 20, 18, 0.07);
}

.mini-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.mini-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 20, 18, 0.08);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 800;
  animation: float 7s ease-in-out infinite;
}

.orbit-one {
  top: 24%;
  left: -2.5rem;
}

.orbit-two {
  right: -1.6rem;
  bottom: 7rem;
  animation-delay: -2s;
}

.orbit-three {
  right: 1rem;
  top: 5rem;
  animation-delay: -4s;
}

.ticker {
  overflow: hidden;
  padding: 0.85rem 0 1.4rem;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  font-weight: 700;
  white-space: nowrap;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.9rem;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-heading p {
  max-width: 58ch;
  margin: 0;
}

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

.about-card {
  padding: 1.6rem;
  grid-column: span 4;
}

.about-card h3,
.capability-card h3,
.app-card h3,
.process-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

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

.accent-card {
  color: #fff;
  background:
    linear-gradient(160deg, rgba(238, 106, 77, 0.95), rgba(239, 191, 86, 0.88));
}

.accent-card p,
.accent-card h3 {
  color: #fff;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent-2);
}

.capability-grid,
.apps-grid,
.process-grid {
  display: grid;
  gap: 1.25rem;
}

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

.capability-card {
  padding: 1.75rem;
}

.capability-number,
.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(15, 123, 126, 0.12);
  color: var(--accent-2);
  font-weight: 800;
}

.apps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  padding: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(15, 123, 126, 0.12);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.muted-pill {
  background: rgba(239, 191, 86, 0.18);
  color: #8f6700;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1.3rem 0 1.5rem;
  list-style: none;
}

.app-tags li {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 20, 18, 0.07);
  font-size: 0.86rem;
  font-weight: 700;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.app-stats div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 20, 18, 0.07);
}

.app-stats strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.app-stats span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-links a {
  color: var(--accent-2);
  font-weight: 800;
}

.apps-banner,
.contact-card {
  margin-top: 1.25rem;
  padding: 1.75rem;
}

.apps-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.apps-banner h3 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-card {
  padding: 1.6rem;
}

.contact-section {
  padding-bottom: 1rem;
}

.contact-card {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(239, 191, 86, 0.24), transparent 24%),
    linear-gradient(155deg, rgba(19, 49, 63, 0.98), rgba(15, 123, 126, 0.92));
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  filter: blur(12px);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease;
}

[data-reveal]:not(.interactive-card) {
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
}

[data-reveal]:not(.interactive-card).is-visible {
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.6rem, -1.2rem, 0) scale(1.08);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero,
  .apps-banner,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .capability-grid,
  .apps-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-banner,
  .site-footer {
    display: grid;
  }

  .apps-banner h3 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 1rem, var(--container));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .theme-switcher--header {
    order: 3;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.4rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-panel {
    min-height: auto;
  }

  .about-card,
  .about-card-wide,
  .capability-grid,
  .apps-grid,
  .process-grid {
    grid-column: auto;
  }

  .capability-grid,
  .apps-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .section-heading h2,
  .contact-card h2,
  .apps-banner h3 {
    max-width: 100%;
  }

  .stack-grid,
  .app-stats {
    grid-template-columns: 1fr;
  }

  .orbit {
    display: none;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .secondary-link {
    width: 100%;
  }

  .theme-switcher--header {
    width: 100%;
    justify-content: center;
  }
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(238, 106, 77, 0.14), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(15, 123, 126, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(239, 191, 86, 0.1), transparent 26%),
    var(--bg);
}

:root[data-theme="dark"] body::before {
  background: rgba(238, 106, 77, 0.2);
}

:root[data-theme="dark"] body::after {
  background: rgba(15, 123, 126, 0.18);
}

:root[data-theme="dark"] .site-header {
  border-color: rgba(173, 196, 181, 0.16);
  background: rgba(13, 20, 24, 0.76);
}

:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(13, 20, 24, 0.92);
}

:root[data-theme="dark"] .ghost-button,
:root[data-theme="dark"] .secondary-link,
:root[data-theme="dark"] .theme-switcher,
:root[data-theme="dark"] .ticker-track span,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .app-tags li,
:root[data-theme="dark"] .app-stats div {
  background: rgba(16, 24, 29, 0.82);
  border-color: rgba(173, 196, 181, 0.14);
}

:root[data-theme="dark"] .ghost-button.is-disabled,
:root[data-theme="dark"] .secondary-link.is-disabled {
  background: rgba(16, 24, 29, 0.56);
}

:root[data-theme="dark"] .dark-button,
:root[data-theme="dark"] .dark-button.is-disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .interactive-card::after {
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(143, 234, 220, 0.16),
      transparent 30%
    );
}

:root[data-theme="dark"] .muted-pill {
  color: #f0d78a;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
