:root {
  --purple: #5b2d8e;
  --purple-light: #6a3a9e;
  --gray: #8a8a8a;
  --gray-light: #6b6b7b;
  --bg: #fafafa;
  --bg-elevated: #f3f2f6;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1c1c26;
  --text-muted: #5c5c6e;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --max-width: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 1.25rem; }

.nav a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--purple);
  border-radius: 4px;
  color: var(--purple) !important;
  background: rgba(91, 45, 142, 0.08);
}

.nav-cta:hover {
  background: var(--purple);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 0%, rgba(91, 45, 142, 0.05), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple-light);
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(91, 45, 142, 0.04);
  color: var(--purple);
}

/* Sections */
section { padding-block: 3rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 42rem;
  font-size: 1.0625rem;
}

.section-header { margin-bottom: 2rem; }

/* Model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.model-card:hover {
  border-color: rgba(91, 45, 142, 0.35);
  box-shadow: 0 4px 20px rgba(91, 45, 142, 0.08);
}

.model-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(91, 45, 142, 0.14), rgba(91, 45, 142, 0.05));
  border: 1px solid rgba(91, 45, 142, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--purple);
  flex-shrink: 0;
}

.model-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.model-card:hover .model-card-icon {
  background: linear-gradient(145deg, rgba(91, 45, 142, 0.2), rgba(91, 45, 142, 0.08));
  border-color: rgba(91, 45, 142, 0.28);
}

.model-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.model-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Process */
.process-section { background: var(--bg-elevated); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--gray));
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--purple-light);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Compliance */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.compliance-list { list-style: none; }

.compliance-list li {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.compliance-list li:first-child { padding-top: 0; }

.compliance-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--purple);
}

.compliance-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  padding: 2rem;
}

.compliance-highlight p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.compliance-highlight p + p { margin-top: 1rem; }

/* Counterparties */
.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.party-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.party-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.party-card .party-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
}

.party-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.party-card li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.party-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gray);
}

/* Singapore office */
.sg-banner {
  background: linear-gradient(135deg, rgba(91, 45, 142, 0.06), rgba(138, 138, 138, 0.04));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.sg-banner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.sg-banner p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36rem;
}

.sg-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.sg-meta span {
  font-size: 0.8125rem;
  color: var(--gray-light);
}

.sg-meta strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

/* About page */
.about-page .about-hero {
  padding-top: calc(var(--header-h) + 2.5rem);
}

.about-intro {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-intro p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-intro strong {
  color: var(--text);
  font-weight: 600;
}

.offices-section {
  background: var(--bg-elevated);
  padding-top: 0;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.office-card-license {
  background: linear-gradient(145deg, rgba(91, 45, 142, 0.06), rgba(255, 255, 255, 0.9));
}

.office-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.office-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.office-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.office-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.office-contacts a {
  font-size: 1rem;
  font-weight: 500;
}

.office-contact-note {
  font-size: 0.8125rem;
  color: var(--gray-light);
  margin-bottom: 0.25rem;
}

.office-contact-note a {
  font-size: 0.8125rem;
  font-weight: 500;
}

.office-card .sg-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.about-disclaimer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.about-disclaimer p {
  max-width: 56rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail a {
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-status.is-success { color: #1f7a45; }
.form-status.is-error { color: #b42318; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--purple);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form select { cursor: pointer; }
.contact-form select option { background: var(--bg-card); }

/* Disclaimer */
.disclaimer {
  background: var(--bg-elevated);
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.disclaimer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0.85;
}

.disclaimer p + p { margin-top: 0.75rem; }

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 960px) {
  section { padding-block: 2.5rem; }
  .hero { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem; }
  .model-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps::before { display: none; }
  .compliance-grid { grid-template-columns: 1fr; }
  .party-grid { grid-template-columns: 1fr; }
  .sg-banner { grid-template-columns: 1fr; text-align: center; }
  .sg-meta { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .menu-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
