:root {
  --bg: #f4f7ff;
  --bg-soft: #edf2ff;
  --surface: #ffffff;
  --surface-2: #f8f9ff;
  --line: #d6def8;
  --text: #102244;
  --text-soft: #4b5d80;
  --primary: #0b88ff;
  --secondary: #10b981;
  --accent: #f97316;
  --danger: #ef4444;

  --bg-grad-1: #e8fff8;
  --bg-grad-2: #ffe9d4;
  --header-bg: rgba(244, 247, 255, 0.74);
  --header-line: rgba(16, 34, 68, 0.08);
  --nav-panel-bg: rgba(255, 255, 255, 0.92);
  --ghost-bg: rgba(255, 255, 255, 0.65);
  --badge-border: rgba(16, 34, 68, 0.2);
  --badge-bg: rgba(255, 255, 255, 0.7);

  --notice-bg: #fffbf4;
  --notice-text: #7c4a00;
  --notice-border: rgba(16, 34, 68, 0.2);

  --orb-1: #7dd3fc;
  --orb-2: #fde68a;
  --orb-3: #c4b5fd;

  --theme-btn-bg: #ffffff;
  --theme-btn-text: #4b5d80;

  --shadow-lg: 0 18px 45px rgba(16, 34, 68, 0.16);
  --shadow-md: 0 10px 25px rgba(16, 34, 68, 0.12);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: min(1140px, calc(100% - 2rem));
}

html[data-theme="dark"] {
  --bg: #0a1020;
  --bg-soft: #121a2f;
  --surface: #121b31;
  --surface-2: #17233f;
  --line: #2b3f66;
  --text: #e8efff;
  --text-soft: #9fb1d9;

  --bg-grad-1: rgba(16, 185, 129, 0.14);
  --bg-grad-2: rgba(249, 115, 22, 0.14);
  --header-bg: rgba(10, 16, 32, 0.82);
  --header-line: rgba(159, 177, 217, 0.18);
  --nav-panel-bg: rgba(18, 27, 49, 0.96);
  --ghost-bg: rgba(23, 35, 63, 0.78);
  --badge-border: rgba(159, 177, 217, 0.35);
  --badge-bg: rgba(23, 35, 63, 0.76);

  --notice-bg: rgba(124, 74, 0, 0.2);
  --notice-text: #ffd89a;
  --notice-border: rgba(255, 216, 154, 0.35);

  --orb-1: #25567a;
  --orb-2: #866d2f;
  --orb-3: #4c3f81;

  --theme-btn-bg: #17233f;
  --theme-btn-text: #e8efff;

  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 15%, var(--bg-grad-1) 0%, transparent 42%),
    radial-gradient(circle at 85% 0%, var(--bg-grad-2) 0%, transparent 38%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  animation: floatOrb 14s ease-in-out infinite;
}

.bg-orb.orb-1 {
  top: -120px;
  left: -100px;
  background: var(--orb-1);
}

.bg-orb.orb-2 {
  top: 220px;
  right: -120px;
  background: var(--orb-2);
  animation-delay: -4s;
}

.bg-orb.orb-3 {
  bottom: -130px;
  left: 20%;
  background: var(--orb-3);
  animation-delay: -8s;
}

html[data-theme="dark"] .bg-orb {
  opacity: 0.35;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  30% {
    transform: translateY(-24px) translateX(14px) scale(1.05);
  }
  60% {
    transform: translateY(18px) translateX(-16px) scale(0.95);
  }
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(16, 34, 68, 0.12);
}

.nav-cta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
  border-radius: 10px;
  height: 42px;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  border: none;
  background: var(--theme-btn-bg);
  border-radius: 10px;
  width: 56px;
  height: 42px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

main {
  padding: 2.2rem 0 4rem;
  overflow-x: clip;
}

.section {
  margin: 4rem 0;
}

.section:first-child {
  margin-top: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.3rem;
}

.eyebrow {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.h-title {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  line-height: 1.08;
  margin: 0;
}

.h-desc {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  max-width: 60ch;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.btn {
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #136df7 66%, #5b95ff);
  box-shadow: 0 14px 26px rgba(11, 136, 255, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: var(--ghost-bg);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid > * {
  min-width: 0;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
}

footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--header-line);
  padding: 1.3rem 0 2.1rem;
  color: var(--text-soft);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  border: 1px dashed var(--badge-border);
  background: var(--badge-bg);
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(560px, calc(100% - 1rem));
    background: var(--nav-panel-bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 10px;
  }

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

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    margin: 3rem 0;
  }

  .theme-toggle {
    height: 40px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 1rem));
  }

  .nav-wrap {
    min-height: 68px;
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.92rem;
    gap: 0.5rem;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .nav-cta {
    gap: 0.45rem;
  }

  .nav-cta .btn {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .theme-toggle span {
    display: none;
  }

  .theme-toggle::before {
    content: "T";
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-toggle {
    width: 52px;
  }

  .h-title {
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
