:root {
  --brand-purple: #6a3df6;
  --brand-violet: #8b5cff;
  --brand-blue: #3d7bff;
  --brand-cyan: #00b2ff;
  --ink: #06143d;
  --text: #162449;
  --muted: #65738f;
  --soft: #f7f9ff;
  --line: #dfe6fb;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6a3df6 0%, #3d7bff 55%, #00b2ff 100%);
  --shadow: 0 24px 70px rgba(26, 45, 102, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(106, 61, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 178, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 16px 16px, rgba(106, 61, 246, 0.06) 0 2px, transparent 2.5px),
    linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(247, 249, 255, 0.72) 420px),
    #f8fbff;
  background-size: 34px 34px, 34px 34px, 68px 68px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header,
.hero,
.section,
.studio,
.setup,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(210px, 19vw, 260px);
}

.brand img {
  aspect-ratio: 1405 / 389;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a,
.nav-dropdown summary {
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  list-style: none;
  padding: 10px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown summary:hover,
.nav-dropdown summary:focus-visible {
  color: var(--ink);
  background: rgba(106, 61, 246, 0.08);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.project-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 260px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .project-menu,
.nav-dropdown:focus-within .project-menu,
.nav-dropdown[open] .project-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-menu a {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 13px 14px;
}

.project-menu strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.project-menu span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: 52px 0 86px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.now-building {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(61, 123, 255, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(26, 45, 102, 0.06);
}

.hero-copy .now-building {
  margin-top: 18px;
  color: #41506f;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 18px 36px rgba(61, 123, 255, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hub-card {
  border: 1px solid rgba(106, 61, 246, 0.15);
  border-radius: 8px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hub-card img {
  width: min(100%, 300px);
  display: block;
  margin: 0 auto 32px;
}

.hub-card span,
.project-kind {
  color: var(--brand-purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.hub-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 24px 0 92px;
}

.section-heading {
  max-width: 730px;
}

.section-rule {
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 999px;
  background: var(--gradient);
}

h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.studio-copy p,
.setup p,
.project-card p {
  color: var(--muted);
  line-height: 1.62;
}

.section-heading p {
  margin: 18px 0 0;
  font-size: 1.08rem;
}

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

.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(61, 123, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(26, 45, 102, 0.08);
}

.accent-card {
  color: var(--white);
  border: 0;
  background: var(--gradient);
  box-shadow: 0 24px 70px rgba(61, 123, 255, 0.24);
}

.accent-card .project-kind,
.accent-card p,
.accent-card .project-links span {
  color: rgba(255, 255, 255, 0.82);
}

.project-card h3 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1;
}

.accent-card h3,
.accent-card .project-links a {
  color: var(--white);
}

.project-card p {
  margin: 18px 0 30px;
}

.project-links {
  display: grid;
  gap: 8px;
}

.project-links a {
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 2px solid rgba(106, 61, 246, 0.36);
  padding-bottom: 5px;
}

.accent-card .project-links a {
  border-color: rgba(255, 255, 255, 0.58);
}

.project-links span {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.soft-card {
  background: rgba(246, 248, 255, 0.82);
}

.studio {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  border-top: 1px solid var(--line);
  padding: 92px 0 70px;
}

.studio-copy {
  font-size: 1.12rem;
}

.studio-copy p {
  margin: 0;
}

.studio-copy p + p {
  margin-top: 24px;
}

.setup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 96px;
}

.setup article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.setup strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.setup span {
  display: block;
  margin-top: 8px;
  color: var(--brand-purple);
  font-size: 0.92rem;
  font-weight: 800;
}

.setup p {
  margin: 10px 0 0;
}

.site-footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer span {
  margin-top: 4px;
}

.site-footer a {
  color: var(--brand-purple);
  font-weight: 800;
}

.project-page {
  min-height: 100vh;
}

.subdomain-hero {
  width: min(960px, calc(100% - 40px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 64px 0 90px;
}

.subdomain-mark {
  width: 132px;
}

.subdomain-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.subdomain-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.subdomain-note {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

.fun-page {
  background:
    linear-gradient(135deg, rgba(106, 61, 246, 0.1), rgba(0, 178, 255, 0.1)),
    var(--white);
}

.focus-page {
  background:
    linear-gradient(180deg, rgba(246, 248, 255, 0.96), rgba(255, 255, 255, 0) 500px),
    var(--white);
}

@media (max-width: 900px) {
  .hero,
  .studio,
  .project-grid,
  .setup {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hub-card {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .studio,
  .setup,
  .site-footer,
  .subdomain-hero {
    width: calc(100% - 28px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0 0;
  }

  .brand {
    flex-basis: auto;
    width: 210px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .site-nav a,
  .nav-dropdown summary {
    padding: 8px 4px;
  }

  .project-menu {
    left: 0;
    right: auto;
    width: min(260px, calc(100vw - 28px));
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 21vw, 5.2rem);
  }

  .hero-copy,
  .hero-actions,
  .hub-card,
  .hub-card div,
  .project-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy p,
  .hub-card p,
  .subdomain-hero p {
    max-width: 22rem;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .hub-card strong {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .button {
    width: 100%;
  }

  .hub-card,
  .project-card {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}
