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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111827;
  background: #f9fafb;
}

body {
  line-height: 1.6;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f3f4f6;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 0 2.5rem;
  color: #4b5563;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.logo-mark {
  background: radial-gradient(circle at 20% 20%, #f97316, #ea580c);
  color: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

/* Language Switcher */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid #e5e7eb;
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: #111827;
  background: #f3f4f6;
}

.lang-btn.active {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
  font-weight: 600;
}

@media (max-width: 768px) {
  .lang-selector {
    display: flex;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

.nav-link {
  position: relative;
  color: #4b5563;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #ea580c, #f59e0b);
  transition: width 0.18s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: linear-gradient(
      120deg,
      rgba(249, 115, 22, 0.06),
      rgba(251, 191, 36, 0.06)
    ),
    #fff;
}

.nav-link.nav-cta::after {
  display: none;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: #111827;
  transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
  background: #f3f4f6;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .lang-selector {
    padding: 0.75rem 0;
    border-left: none;
    margin-left: 0;
  }
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #fee2e2, transparent 55%),
    radial-gradient(circle at top right, #ffedd5, transparent 55%),
    linear-gradient(to bottom, #f9fafb, #eff6ff);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #f97316;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: #374151;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.meta-label {
  font-weight: 600;
  margin-right: 0.4rem;
  color: #111827;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.hero-services {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.hero-services strong {
  display: block;
}

.hero-services span {
  color: #6b7280;
}

.hero-note {
  font-size: 0.85rem;
  color: #374151;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(209, 213, 219, 0.9);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out, color 0.12s ease-out,
    border-color 0.12s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(209, 213, 219, 0.9);
  color: #111827;
}

.btn-ghost:hover {
  background: #f9fafb;
}

.btn-outline {
  background: transparent;
  border-color: rgba(249, 115, 22, 0.6);
  color: #b45309;
}

.btn-outline:hover {
  background: rgba(254, 243, 199, 0.6);
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #ea580c;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s ease-out;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* Cards & info */
.feature-card,
.category-card,
.testimonial-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(229, 231, 235, 0.95);
}

.feature-card h3,
.category-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.category-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.category-card li + li {
  margin-top: 0.2rem;
}

.testimonial-card {
  font-size: 0.92rem;
  background: linear-gradient(
      135deg,
      rgba(251, 191, 36, 0.15),
      rgba(249, 115, 22, 0.12)
    ),
    #fff7ed;
  border-color: rgba(251, 146, 60, 0.5);
}

.testimonial-card blockquote {
  margin: 0 0 0.5rem;
}

.testimonial-card figcaption {
  font-size: 0.85rem;
  color: #92400e;
}

.info-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.info-label {
  display: inline-block;
  min-width: 4rem;
  font-weight: 600;
  color: #111827;
}

.info-value {
  color: #4b5563;
}

.section-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* CTA main */
.section-cta-main {
  padding: 3rem 0 3.5rem;
  background: radial-gradient(circle at left, #fef3c7, transparent 55%),
    radial-gradient(circle at right, #ffedd5, transparent 55%),
    #fff7ed;
}

.cta-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-main-inner h2 {
  margin: 0 0 0.75rem;
}

.cta-main-inner p {
  margin: 0;
  color: #4b5563;
}

.cta-main-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.cta-note {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .cta-main-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-main-actions {
    align-items: flex-start;
  }
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem 2rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.75rem;
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #d1d5db;
}

.footer-col li + li {
  margin-top: 0.3rem;
}

.footer-col a {
  color: #e5e7eb;
}

.footer-col a:hover {
  color: #f97316;
}

.footer-note {
  margin: 0;
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding: 0.9rem 0;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-en {
  color: #6b7280;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.5);
  z-index: 50;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: #020617;
}

/* Generic page layout */
.page-hero {
  padding: 3.2rem 0 2rem;
  background: linear-gradient(to right, #fef3c7, #fffbeb);
  border-bottom: 1px solid #fde68a;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  color: #4b5563;
}

.breadcrumbs {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.breadcrumbs a {
  color: #6b7280;
}

.breadcrumbs a:hover {
  color: #ea580c;
}

.page-main {
  padding: 2.5rem 0 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.7rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #4b5563;
  background: #f9fafb;
}

.badge-soft {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.5);
  color: #9a3412;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: #f3f4f6;
  color: #4b5563;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.table thead th {
  background: #f9fafb;
  font-weight: 600;
}

.table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.notice {
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.86rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.notice-warning {
  background: #fffbeb;
  border-color: #facc15;
  color: #92400e;
}

.faq-item + .faq-item {
  margin-top: 1.1rem;
}

.faq-question {
  font-weight: 600;
}

.faq-answer {
  margin-top: 0.2rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.layout-3col {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }
}

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
  background: #fff7ed;
}

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

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.field-help {
  font-size: 0.78rem;
  color: #6b7280;
}

.field-error {
  font-size: 0.78rem;
  color: #b91c1c;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.form-status.ok {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

