:root {
  --blue: #2293f4;
  --green: #71c043;
  --yellow: #ffc107;
  --red: #f44336;
  --purple: #9c27b0;
  --ink: #171717;
  --paper: #fffdf8;
  --mist: #e8f4ff;
  --card: #ffffff;
  --muted: #4a5560;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1120px;
  --font: "Nunito", "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, #cfe9ff 0, transparent 34%),
    radial-gradient(circle at 92% 8%, #ffe7a8 0, transparent 28%),
    radial-gradient(circle at 80% 90%, #d9f5c4 0, transparent 32%),
    var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23171717'/%3E%3C/svg%3E");
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 3px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--mist);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrap {
  position: relative;
}

.lang-btn,
.menu-btn,
.btn {
  border: 3px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.lang-btn,
.menu-btn {
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display: none;
}

.lang-menu.open {
  display: grid;
}

.lang-menu button {
  border: 0;
  background: transparent;
  text-align: start;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: var(--mist);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: #fff;
}

.menu-btn {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 32px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(460px, 100%);
  height: auto;
  filter: drop-shadow(8px 12px 0 rgba(23, 23, 23, 0.12));
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.92rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  margin-top: 16px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.lead,
.muted {
  color: var(--muted);
  font-size: 1.12rem;
}

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

.ticker {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  margin: 28px 0 56px;
}

.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 14px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  animation: marquee 22s linear infinite;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; }

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.chip {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.tone-blue { background: #d6eeff; }
.tone-green { background: #e4f7d4; }
.tone-yellow { background: #fff3c2; }
.tone-red { background: #ffd7d3; }
.tone-purple { background: #f3d7fb; }

.step {
  counter-increment: steps;
}

.step .chip::after {
  content: counter(steps);
  font-family: var(--display);
  font-weight: 700;
}

.steps {
  counter-reset: steps;
}

.contact-card {
  background: var(--blue);
  color: #fff;
}

.contact-card .lead,
.contact-card .muted {
  color: rgba(255, 255, 255, 0.9);
}

.email-link {
  display: inline-block;
  margin: 8px 0 22px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 800;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 700;
}

[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .btn:hover,
[dir="rtl"] .card,
[dir="rtl"] .lang-menu {
  box-shadow: -6px 6px 0 var(--ink);
}

[dir="rtl"] .hero-logo {
  filter: drop-shadow(-8px 12px 0 rgba(23, 23, 23, 0.12));
}

[lang="zh"] body,
[lang="hi"] body {
  line-height: 1.7;
}

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

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

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-tools {
    margin-left: 0;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    padding: 12px 16px 18px;
    margin: 0;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .btn {
    animation: none;
    transition: none;
  }
}
