:root {
  --bg: #0d1211;
  --bg-soft: #121a18;
  --panel: #16201e;
  --panel-light: #1a2623;
  --text: #f3f1e9;
  --muted: #aeb9b5;
  --line: rgba(255,255,255,.09);
  --teal: #47d7c2;
  --teal-deep: #1aa58f;
  --coral: #ff806d;
  --cream: #f4ead6;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(41,125,111,.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13,18,17,.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #07100e;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), #9be7d8);
  box-shadow: 0 8px 30px rgba(71,215,194,.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: #c9d1ce;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-contact {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 108px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 80px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px rgba(255,128,109,.6);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(56px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.06em;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cream), #8eddd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 690px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #07100e;
  background: linear-gradient(135deg, var(--teal), #8ce5d6);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.hero-panel {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.studio-card {
  width: min(100%, 390px);
  position: relative;
  z-index: 2;
  padding: 44px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    rgba(18,29,26,.85);
  box-shadow: 0 40px 100px rgba(0,0,0,.36);
}

.studio-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), #96e7d9);
  color: #06100e;
  font-size: 25px;
  font-weight: 900;
}

.studio-label {
  margin: 40px 0 12px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--teal);
}

.studio-card h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.studio-rule {
  height: 1px;
  margin: 35px 0 24px;
  background: var(--line);
}

.studio-values {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.studio-values span {
  color: var(--coral);
  font-size: 11px;
}

.studio-values p {
  margin: 6px 0 0;
  font-size: 13px;
}

.panel-orbit {
  position: absolute;
  border: 1px solid rgba(71,215,194,.15);
  border-radius: 50%;
}

.orbit-one {
  width: 490px;
  height: 490px;
}

.orbit-two {
  width: 360px;
  height: 360px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  right: 15%;
  top: 10%;
  background: var(--teal);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  right: 5%;
  bottom: 0;
  background: var(--coral);
  opacity: .1;
}

.section {
  padding: 112px 0;
}

.apps-section {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 52px;
}

.section-heading h2,
.company-section h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

.app-card {
  min-height: 330px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    var(--panel);
  transition: transform .25s ease, border-color .25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(71,215,194,.27);
}

.app-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #08110f;
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--teal), #a7ecdf);
}

.card-debtplanner .app-icon {
  background: linear-gradient(135deg, #f5c66e, #ffe2a1);
}

.card-extraworth .app-icon {
  background: linear-gradient(135deg, var(--coral), #ffb39f);
}

.card-529 .app-icon {
  background: linear-gradient(135deg, #79a9ff, #b4cdff);
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(71,215,194,.22);
  color: #8de8d8;
  background: rgba(71,215,194,.06);
  font-size: 11px;
}

.status-development {
  color: #b9caf7;
  border-color: rgba(121,169,255,.22);
  background: rgba(121,169,255,.06);
}

.app-card h3 {
  margin: 46px 0 14px;
  font-size: 30px;
  letter-spacing: -.035em;
}

.app-card > p {
  margin: 0;
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
}

.app-tags {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-tags span {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: #c6cfcb;
  font-size: 11px;
}

.principles {
  border-top: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 34px;
  margin-top: 44px;
}

.principle-grid article {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.number {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.principle-grid h3 {
  margin: 27px 0 12px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.company-section {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.company-copy {
  padding-top: 29px;
}

.company-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 700;
}

.cta-section {
  padding: 80px 0;
}

.cta-card {
  padding: 54px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border: 1px solid rgba(71,215,194,.16);
  background:
    radial-gradient(circle at 80% 0%, rgba(71,215,194,.14), transparent 26rem),
    var(--panel);
}

footer {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-brand {
  margin-bottom: 13px;
}

footer p {
  margin: 0;
  color: #7f8d88;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 23px;
  color: #abb7b3;
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

/* Internal pages */

.internal-main {
  min-height: 70vh;
  padding: 110px 0 130px;
}

.narrow-shell {
  max-width: 800px;
}

.internal-main h1 {
  margin: 0;
  font-size: clamp(50px, 8vw, 76px);
  letter-spacing: -.055em;
  line-height: .98;
}

.page-lead {
  margin: 28px 0 48px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.support-card,
.legal-section,
.page-note {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 30px;
}

.support-card a {
  display: inline-block;
  margin: 5px 0 18px;
  color: var(--teal);
  font-size: 23px;
  font-weight: 750;
}

.support-label,
.updated {
  color: #87948f;
  font-size: 12px;
}

.support-card p,
.page-note p,
.legal-section p {
  color: var(--muted);
  line-height: 1.75;
}

.page-note {
  margin-top: 18px;
}

.page-note h2,
.legal-section h2 {
  margin-top: 0;
}

.legal-section h2:not(:first-child) {
  margin-top: 38px;
}

.legal-section a {
  color: var(--teal);
}

.updated {
  margin-top: 50px !important;
}

@media (max-width: 860px) {
  .hero-grid,
  .section-heading,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-panel {
    min-height: 430px;
  }

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

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

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-links:not(.internal-nav) {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    padding: 18px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .2s ease;
    background: #131c1a;
    border: 1px solid var(--line);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links:not(.internal-nav) a {
    padding: 11px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
  }

  .menu-button span {
    width: 18px;
    height: 1px;
    background: white;
  }

  .hero {
    padding: 70px 0 72px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .studio-card {
    padding: 30px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 270px;
    height: 270px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .app-card {
    padding: 24px;
  }

  .status {
    font-size: 10px;
  }

  .company-copy {
    padding-top: 0;
  }

  .cta-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .internal-nav a:not(.nav-contact) {
    display: none;
  }
}
