:root {
  --rose: #ff3d6e;
  --mint: #00d9b5;
  --ink: #14181f;
  --ink-soft: #2a3140;
  --fog: #f3f5f8;
  --mist: #e7ebf1;
  --paper: #fafbfc;
  --muted: #5c6575;
  --line: rgba(20, 24, 31, 0.1);
  --radius: 14px;
  --header-h: 64px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 40px rgba(20, 24, 31, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 61, 110, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 8%, rgba(0, 217, 181, 0.1), transparent 50%),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(250, 251, 252, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 251, 252, 0.94);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.lang-dropdown {
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 7.5rem;
  height: 36px;
  padding: 0 2rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a3140' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-select:hover,
.lang-select:focus {
  border-color: rgba(255, 61, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: 0.5rem;
}

@media (min-width: 861px) {
  .header-tools {
    order: 3;
    margin-left: 0.75rem;
  }

  .site-nav {
    order: 2;
    margin-left: auto;
  }
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--rose);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--rose) !important;
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: end stretch;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.28) 0%, rgba(12, 14, 18, 0.2) 35%, rgba(12, 14, 18, 0.78) 100%),
    linear-gradient(90deg, rgba(255, 61, 110, 0.18), rgba(0, 217, 181, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo {
  margin-bottom: 1.15rem;
}

.hero-mark {
  width: clamp(112px, 28vw, 168px);
  height: clamp(112px, 28vw, 168px);
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: mark-pop 0.9s var(--ease) both;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  margin: 0.35rem 0 0;
  max-width: 22ch;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(120deg, var(--rose), #ff6a8f 45%, var(--mint));
  background-size: 160% 100%;
  color: #fff;
  border: 0;
  animation: cta-shift 6s ease-in-out infinite alternate;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.section .btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

html[lang="ru"] .section-title,
html[lang="tr"] .section-title,
html[lang="vi"] .section-title,
html[lang="en"] .section-title {
  max-width: 22ch;
}

html[lang="ru"] .hero-tagline,
html[lang="tr"] .hero-tagline {
  max-width: 28ch;
}

.lead {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.08rem;
}

/* About */
.about {
  background:
    linear-gradient(180deg, transparent, rgba(0, 217, 181, 0.05) 40%, transparent),
    var(--paper);
}

.about-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.about-block p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1.05rem;
}

/* Benefits */
.benefits {
  background: var(--fog);
}

.benefit-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.benefit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.benefit-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.benefit-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--mint);
  letter-spacing: -0.02em;
  padding-top: 0.15rem;
}

.benefit-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* Process */
.process-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: none;
}

@media (min-width: 820px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.process-list li {
  position: relative;
  padding-top: 0.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--mint));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.process-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
}

/* Apply */
.apply {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(255, 61, 110, 0.08), transparent 60%),
    radial-gradient(700px 280px at 100% 100%, rgba(0, 217, 181, 0.1), transparent 55%),
    var(--paper);
}

.apply-wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .apply-wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 3.5rem;
  }

  .apply-intro {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.apply-form,
.form-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

/* 防止 author CSS 的 display 覆盖 [hidden]，导致成功态与文案叠层 */
.apply-form[hidden],
.form-success[hidden],
.apply-intro[hidden] {
  display: none !important;
}

.apply-wrap.is-success {
  grid-template-columns: 1fr;
  justify-items: center;
}

.apply-wrap.is-success .form-success {
  width: min(520px, 100%);
}

.field,
.field-row {
  margin-bottom: 1.1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field legend {
  padding: 0;
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  background: var(--fog);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--mist);
  background: var(--fog);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:has(input:checked) {
  border-color: var(--rose);
  background: rgba(255, 61, 110, 0.08);
  color: var(--rose);
}

.chip input {
  accent-color: var(--rose);
  width: auto;
  margin: 0;
}

.form-error {
  margin: 0 0 1rem;
  color: #c21845;
  font-size: 0.92rem;
}

.form-note {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-success:not([hidden]) {
  text-align: center;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 280px;
}

.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.form-success p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
}

.form-success .btn-ghost {
  margin-top: 0.5rem;
}

/* FAQ */
.faq {
  background: var(--fog);
}

.faq-list {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.08rem;
  padding: 0.85rem 2rem 0.85rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--rose);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  padding-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
}

.site-footer .brand-mark {
  width: 52px;
  height: 52px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.copyright {
  font-size: 0.88rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  opacity: 1;
  transform: none;
  animation: rise 0.9s var(--ease) both;
}

.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal:nth-child(3) { animation-delay: 0.28s; }
.hero .reveal:nth-child(4) { animation-delay: 0.4s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes mark-pop {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cta-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero .reveal,
  .hero-media img,
  .hero-mark,
  .btn-primary {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .lang-select {
    min-width: 6.5rem;
    height: 34px;
    font-size: 0.8rem;
    padding-right: 1.75rem;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(250, 251, 252, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    margin-left: 0;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    max-width: none;
  }
}
