:root {
  color-scheme: light dark;
  --bg: #f4f7fe;
  --bg-bottom: #eaf0fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --panel-hover: rgba(255, 255, 255, 0.82);
  --panel-muted: rgba(255, 255, 255, 0.68);
  --panel-subtle: rgba(255, 255, 255, 0.62);
  --text: #12192a;
  --muted: #5e687a;
  --border: rgba(49, 62, 87, 0.14);
  --accent-a: #7a5cff;
  --accent-b: #6f42c1;
  --accent-c: #399aff;
  --accent-soft: rgba(122, 92, 255, 0.1);
  --shadow: 0 28px 90px rgba(15, 23, 40, 0.12);
  --shadow-soft: 0 18px 52px rgba(15, 23, 40, 0.08);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1220px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-bottom: #090d18;
    --panel: rgba(16, 22, 39, 0.82);
    --panel-strong: rgba(19, 26, 45, 0.94);
    --panel-soft: rgba(16, 22, 39, 0.72);
    --panel-hover: rgba(24, 32, 56, 0.9);
    --panel-muted: rgba(24, 32, 56, 0.72);
    --panel-subtle: rgba(20, 28, 49, 0.64);
    --text: #edf2ff;
    --muted: #a3afc4;
    --border: rgba(173, 189, 222, 0.14);
    --accent-soft: rgba(122, 92, 255, 0.2);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.28);
  }

  .home-page .hero h1,
  .home-page .hero-text,
  .home-page .eyebrow {
    color: #2a3345;
  }

  .home-page .site-nav {
    color: #eef3ff;
  }

  .home-page .brand-tagline {
    color: #eef3ff;
  }

  .home-page #apps .section-heading h2,
  .home-page #contact .section-heading h2,
  .home-page #contact .contact-card h2,
  .home-page #apps .eyebrow,
  .home-page #contact .eyebrow {
    color: #c8d0df;
  }

  .home-page #services .service-card .eyebrow {
    color: #c8d0df;
  }

  .home-page #services .section-heading p {
    color: #c8d0df;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(122, 92, 255, 0.2), transparent 25%),
    radial-gradient(circle at 84% 14%, rgba(57, 154, 255, 0.18), transparent 24%),
    radial-gradient(circle at 58% 52%, rgba(111, 66, 193, 0.1), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 54%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
}

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

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

code {
  padding: 0.16rem 0.42rem;
  border: 1px solid rgba(122, 92, 255, 0.14);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

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

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  gap: 1rem 1.3rem;
  margin-bottom: 2rem;
  padding: 0.88rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--panel-soft);
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 30px rgba(122, 92, 255, 0.12),
    var(--shadow-soft);
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.6rem;
}

.brand-name-text {
  color: var(--text);
  font-family: "Comfortaa", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle-icon {
  display: grid;
  gap: 0.24rem;
}

.menu-toggle-icon span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: block;
  padding: 2.7rem 0 3.4rem;
}

.eyebrow {
  margin: 0 0 0.82rem;
  color: var(--accent-a);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.app-head h3,
.summary-value {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.94;
}

.hero-text,
.section-heading p,
.summary-text,
.app-head p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 76ch;
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 730;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 55%, var(--accent-c) 100%);
  color: #fafbff;
  box-shadow: 0 18px 34px rgba(105, 86, 228, 0.26);
}

.button-secondary {
  border: 1px solid var(--border);
  border-color: var(--border);
  background: var(--panel-subtle);
}

.hero-pills,
.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-pills li,
.app-pills li {
  padding: 0.58rem 0.92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-muted);
  font-size: 0.94rem;
  font-weight: 620;
}

.hero-stage {
  position: relative;
  min-height: 37rem;
}

.spotlight-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.spotlight-card-primary {
  inset: 0 7rem 3.8rem 0;
}

.spotlight-card-secondary {
  right: 0;
  bottom: 0;
  width: 53%;
}

.spotlight-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0;
  font-weight: 720;
}

.spotlight-label img,
.app-head img {
  width: 2.6rem;
  height: 2.6rem;
}

.spotlight-shot {
  width: 100%;
  height: auto;
  padding: 1rem;
  border-radius: calc(var(--radius-xl) - 8px);
}

.summary-grid,
.app-grid {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4rem;
}

.summary-card,
.app-card {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.summary-card {
  padding: 1.35rem;
}

.summary-value {
  font-size: 1.2rem;
  font-weight: 740;
}

.content-section,
.apps-section {
  padding-bottom: 3rem;
}

.tools-layout {
  display: grid;
  gap: 1.2rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 1.2rem;
  align-items: start;
}

.split-section-reverse {
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
}

.split-copy {
  position: sticky;
  top: 7rem;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 0.98;
}

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

.app-card {
  padding: 1.2rem;
}

.app-card-featured {
  align-self: start;
  padding: 0.9rem;
}

.app-card-featured .app-preview {
  aspect-ratio: 16 / 15;
  padding: 0.15rem;
}

.tools-showcase {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.tool-slide {
  display: none;
}

.tool-slide.is-active {
  display: block;
  animation: tool-fade-in 300ms ease;
}

.tool-switcher-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.tool-switcher-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--border);
  transition: background 180ms ease, transform 180ms ease;
}

.tool-switcher-dot.is-active {
  background: var(--accent-a);
  transform: scale(1.1);
}

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

.tool-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tool-link-card:focus-visible {
  outline: 2px solid transparent;
  box-shadow:
    0 0 0 4px var(--accent-soft),
    var(--shadow-soft);
}

.tool-link-card:hover,
.tool-link-card:focus-visible {
  border-color: rgba(122, 92, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 40, 0.1);
}

.tool-link-card.is-active {
  border-color: rgba(122, 92, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.1), rgba(57, 154, 255, 0.08)),
    var(--panel);
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(105, 86, 228, 0.12);
}

.tool-link-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tool-link-meta img {
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
}

.tool-link-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.app-mark-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.contact-layout,
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.35rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.service-card {
  padding: 1.35rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.service-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.service-card p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-copy {
  color: var(--muted);
  line-height: 1.7;
  margin: 1rem 0 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field-hidden {
  position: absolute;
  left: -9999px;
}

.form-field span {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  border-color: rgba(122, 92, 255, 0.45);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status[data-state="idle"] {
  display: none;
}

.form-status[data-state="success"] {
  color: #1f8f5f;
}

.form-status[data-state="error"] {
  color: #d04c6b;
}

.form-status[data-state="pending"] {
  color: var(--text);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 720;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.app-head h3 {
  font-size: 1.9rem;
  font-weight: 740;
}

.app-head p {
  margin: 0.35rem 0 0;
}

.app-preview {
  width: 100%;
  aspect-ratio: 16 / 18;
  object-fit: contain;
  background: var(--panel-strong);
  border: 1px solid rgba(49, 62, 87, 0.08);
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 0.35rem;
  transition: transform 220ms ease;
}

.app-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-preview-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-card:hover .app-preview,
.app-card:focus-within .app-preview {
  transform: scale(1.02);
}

@keyframes tool-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .summary-grid,
  .app-grid,
  .tool-link-grid,
  .contact-layout,
  .services-grid,
  .split-section,
  .split-section-reverse {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-radius: 30px;
  }

  .hero {
    display: block;
  }

  .split-copy {
    position: static;
  }

  .tool-link-card {
    align-items: center;
    flex-direction: row;
  }

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

  .hero-stage {
    min-height: 0;
    margin-top: 1.5rem;
  }

  .spotlight-card {
    position: relative;
  }

  .spotlight-card-primary,
  .spotlight-card-secondary {
    inset: auto;
    width: 100%;
  }

  .spotlight-card-secondary {
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.8rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 999px;
  }

  .brand {
    max-width: none;
    align-items: center;
  }

  .brand-name-text {
    font-size: 1.4rem;
  }

  .brand-tagline {
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

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

  .site-header.is-menu-open {
    border-radius: 30px;
  }

  .site-nav a {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--panel-soft);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1.1rem), var(--max-width));
  }

  .site-header {
    padding: 1rem;
  }

  .site-nav {
    gap: 0.45rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
