:root {
  --ink: #102027;
  --muted: #667077;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: rgba(16, 32, 39, 0.12);
  --teal: #009b8f;
  --coral: #ef5b4d;
  --lime: #b7d943;
  --gold: #f2b84b;
  --blue: #3867d6;
  --shadow: 0 24px 70px rgba(16, 32, 39, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 32, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 32, 39, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(16, 32, 39, 0.08);
  background: rgba(251, 250, 246, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(150px, 15vw, 210px);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #405057;
  font-size: 0.94rem;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(16, 32, 39, 0.07);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta svg,
.button svg,
.nav-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 32, 39, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
  min-height: calc(100svh - 74px);
  padding: clamp(44px, 6vw, 84px) clamp(18px, 5vw, 76px) 36px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.studio-copy p,
.contact p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.primary {
  color: var(--white);
  border-color: transparent;
  background: var(--ink);
}

.ghost {
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  color: #4d5b61;
}

.hero-metrics strong {
  color: var(--ink);
}

.hero-art {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 2% 2% 12%;
  z-index: -1;
  border: 1px solid rgba(16, 32, 39, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  transform: rotate(-3deg);
}

.hero-art img {
  width: 100%;
  height: min(68vw, 650px);
  min-height: 430px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: floatArt 7s ease-in-out infinite;
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 46px rgba(16, 32, 39, 0.16);
  backdrop-filter: blur(12px);
}

.signal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-one {
  left: -12px;
  bottom: 13%;
}

.signal-two {
  right: -8px;
  top: 16%;
}

.ticker {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 0 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.apps-section,
.studio,
.process,
.contact {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 76px);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 860px;
  margin-bottom: 28px;
}

.app-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #44545b;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background: var(--teal);
  transform: translateY(-1px);
}

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

.app-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 430px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(16, 32, 39, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 155, 143, 0.35);
  box-shadow: 0 28px 54px rgba(16, 32, 39, 0.13);
}

.app-card.hidden {
  display: none;
}

.app-card.spotlight {
  color: var(--white);
  background: linear-gradient(135deg, #102027, #185a54);
}

.app-card.spotlight p,
.app-card.spotlight .app-category {
  color: rgba(255, 255, 255, 0.78);
}

.app-feature {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.app-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.app-card:hover .app-feature img {
  transform: scale(1.045);
}

.app-card > div:not(.app-icon) {
  padding: 0 8px;
}

.app-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.app-title-row h3 {
  margin-bottom: 0;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(16, 32, 39, 0.18);
}

.animal { background: linear-gradient(135deg, #33a852, #f2b84b); }
.brain { background: linear-gradient(135deg, #3867d6, #102027); }
.car { background: linear-gradient(135deg, #111827, #667077); }
.crayon { background: linear-gradient(135deg, #ef5b4d, #f2b84b); }
.disco { background: linear-gradient(135deg, #9d4edd, #00d4ff); }
.knight { background: linear-gradient(135deg, #102027, #6b7280); }
.math { background: linear-gradient(135deg, #3867d6, #f2b84b); }
.tug { background: linear-gradient(135deg, #ef5b4d, #102027); }
.med { background: linear-gradient(135deg, #009b8f, #ef5b4d); }
.pack { background: linear-gradient(135deg, #273c75, #b7d943); }
.protea { background: linear-gradient(135deg, #0f9d58, #009b8f); }
.radio { background: linear-gradient(135deg, #00a6a6, #3867d6); }
.rebus { background: linear-gradient(135deg, #f2b84b, #102027); }
.shagun { background: linear-gradient(135deg, #ef5b4d, #f2b84b); }
.shayri { background: linear-gradient(135deg, #c44569, #574b90); }
.shift { background: linear-gradient(135deg, #102027, #009b8f); }
.task { background: linear-gradient(135deg, #3867d6, #667077); }
.yogam { background: linear-gradient(135deg, #0f9d58, #b7d943); }

.app-category {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card p:not(.app-category) {
  color: var(--muted);
  line-height: 1.62;
}

.app-card a {
  width: fit-content;
  margin: 0 8px 8px;
  color: var(--ink);
  font-weight: 900;
  border-bottom: 2px solid var(--lime);
}

.app-card.spotlight a {
  color: var(--white);
}

.studio {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 70px);
  background: var(--white);
}

.studio-panels {
  display: grid;
  gap: 14px;
}

.studio-panels article,
.process-steps article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.panel-number,
.process-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--coral);
  font-weight: 950;
}

.studio-panels p,
.process-steps p {
  color: var(--muted);
  line-height: 1.65;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-steps article:nth-child(2) span {
  background: var(--teal);
}

.process-steps article:nth-child(3) span {
  color: var(--ink);
  background: var(--lime);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  width: fit-content;
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.contact-links span {
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #405057;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 155, 143, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer .brand {
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 850;
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes floatArt {
  0%,
  100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.open {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    justify-self: stretch;
    z-index: 60;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .hero,
  .studio,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer div {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  h1 {
    max-width: 11ch;
  }

  .hero-art img {
    height: auto;
    min-height: 290px;
  }

  .signal-card {
    position: static;
    margin-top: 10px;
    max-width: none;
  }

  .app-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .contact-form {
    padding: 16px;
  }
}
