:root {
  color-scheme: dark;
  --bg: #171421;
  --bg-soft: #211d2d;
  --surface: rgba(244, 239, 229, 0.08);
  --surface-strong: rgba(244, 239, 229, 0.14);
  --text: #f7f0e4;
  --muted: #c8bdad;
  --line: rgba(247, 240, 228, 0.18);
  --primary: #f5c76b;
  --primary-ink: #201305;
  --aqua: #7bd6c5;
  --rust: #d87d5f;
  --moss: #8aa36b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --focus: 0 0 0 4px rgba(123, 214, 197, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 214, 197, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(245, 199, 107, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(216, 125, 95, 0.18), transparent 28rem),
    var(--bg);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.brand,
.support-link,
.button,
.card-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.brand {
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.brand svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-link {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.support-link:hover {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 32px;
  align-items: center;
  min-height: min(680px, calc(100dvh - 96px));
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 9vw, 8.6rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.hero-copy > p:not(.eyebrow),
.support-card > p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

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

.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.86rem 1.1rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.card-link:hover {
  transform: translateY(-1px);
}

.button:active,
.card-link:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  border-color: transparent;
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), #fff0a8);
}

.button.ghost {
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.orb-card,
.tool-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(244, 239, 229, 0.12), rgba(244, 239, 229, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.orb-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  padding: 24px;
}

.orb-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(247, 240, 228, 0.16);
  border-radius: 24px;
}

.orb-card p {
  position: absolute;
  left: 24px;
  bottom: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.orb {
  position: absolute;
  border: 3px solid;
  border-radius: 999px;
  transform: rotate(var(--turn));
}

.orb.one {
  --turn: -24deg;
  inset: 80px 34px 132px;
  border-color: var(--primary);
}

.orb.two {
  --turn: 36deg;
  inset: 62px 76px 112px;
  border-color: var(--aqua);
}

.orb.three {
  --turn: 90deg;
  inset: 120px 98px 88px;
  border-color: var(--rust);
}

.tools-section {
  padding: 56px 0 20px;
}

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

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

.tool-card {
  position: relative;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
}

.tool-card.featured {
  background:
    radial-gradient(circle at top right, rgba(245, 199, 107, 0.16), transparent 24rem),
    linear-gradient(145deg, rgba(244, 239, 229, 0.12), rgba(244, 239, 229, 0.055));
}

.tool-mark {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(23, 20, 33, 0.42);
}

.tool-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-mark.kamae {
  color: var(--moss);
}

.tool-mark.pattern {
  color: var(--primary);
}

.tool-kicker {
  margin: 0 0 8px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-card p:not(.tool-kicker) {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease;
}

.card-link::after {
  content: " →";
}

.support-card {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 44px);
}

.support-note {
  color: var(--primary) !important;
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

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

  .orb-card {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding-top: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .brand,
  .support-link,
  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .orb-card {
    min-height: 260px;
  }

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

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

