/* ============================================
   NURİ TERCÜME — Design Tokens
   ============================================ */
:root {
  /* Color */
  --bg-void: #08080c;
  --bg-panel: #12121a;
  --bg-panel-raised: #181822;
  --gold: #c9a44e;
  --gold-bright: #e8c878;
  --gold-dim: #8a7038;
  --cream: #f3ead2;
  --text-primary: #e9e7e2;
  --text-secondary: #9a98a4;
  --text-muted: #5e5c68;
  --line: #26242f;
  --line-bright: #3a3744;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: 'Inter', 'Tahoma', sans-serif; }

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Background atmosphere — meridian lines
   ============================================ */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-atmosphere::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(201, 164, 78, 0.07) 0%, transparent 65%);
}

.bg-atmosphere::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 164, 78, 0.04) 0%, transparent 65%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

[dir="rtl"] .eyebrow::before { display: none; }
[dir="rtl"] .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 64px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: #14110a;
  box-shadow: 0 0 0 0 rgba(201, 164, 78, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px -4px rgba(201, 164, 78, 0.45);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--line-bright);
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.lang-current:hover { border-color: var(--gold); }

.lang-current svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  transition: transform 0.3s var(--ease);
}

.lang-switch.open .lang-current svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  min-width: 170px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
}

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

.lang-switch.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.2s;
}

[dir="rtl"] .lang-option { text-align: right; }

.lang-option:hover {
  background: rgba(201, 164, 78, 0.1);
  color: var(--gold-bright);
}

.lang-option.active {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(42px, 6vw, 76px);
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 50%, var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero globe — signature element */
.hero-globe-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
}

.hero-globe {
  position: relative;
  width: 440px;
  height: 440px;
}

.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  animation: spin-slow 60s linear infinite;
}

.globe-ring.r2 {
  inset: 38px;
  border-color: rgba(201, 164, 78, 0.25);
  animation: spin-slow-reverse 80s linear infinite;
}

.globe-ring.r3 {
  inset: 76px;
  border: 1px dashed rgba(201, 164, 78, 0.18);
  animation: spin-slow 100s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.globe-core {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(201,164,78,0.12), rgba(8,8,12,0.4) 70%);
  border: 1px solid rgba(201, 164, 78, 0.3);
  box-shadow: 0 0 80px rgba(201, 164, 78, 0.12), inset 0 0 60px rgba(0,0,0,0.4);
  overflow: hidden;
}

.globe-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.globe-meridian {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  pointer-events: none;
}

.globe-meridian::before,
.globe-meridian::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 234, 210, 0.15);
  border-radius: 50%;
}
.globe-meridian::before {
  transform: scaleX(0.35);
}
.globe-meridian::after {
  transform: scaleX(0.7);
}

.globe-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-bright);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero-scroll-cue {
  display: none;
}

/* Typewriter */
.typewriter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  margin-bottom: 6px;
}

.typewriter-word {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}

.typewriter-cursor {
  font-size: 22px;
  color: var(--gold);
  animation: blink-cursor 0.9s step-end infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Orbiting language tags */
.orbit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-1 {
  animation: spin-slow 24s linear infinite;
}

.orbit-2 {
  animation: spin-slow-reverse 32s linear infinite;
}

.orbit-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    rotate(var(--angle))
    translateX(220px)
    rotate(calc(-0.55 * var(--angle)));
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  background: rgba(8, 8, 12, 0.75);
  border: 1px solid rgba(201, 164, 78, 0.4);
  padding: 4px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.orbit-2 .orbit-tag {
  transform:
    rotate(var(--angle))
    translateX(178px)
    rotate(calc(-0.55 * var(--angle)));
  font-size: 9px;
  padding: 3px 8px;
  opacity: 0.85;
}

/* ============================================
   Stats bar
   ============================================ */
.stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--gold-bright);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ============================================
   Services
   ============================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 140px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-void);
  padding: 48px;
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-panel);
}

.service-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: block;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.3;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.1) translateY(-2px);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Quick Quote
   ============================================ */
.quote-section {
  position: relative;
  z-index: 2;
  margin-top: -90px;
  padding: 0 0 60px;
}

.quote-card {
  background: var(--bg-panel-raised);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  padding: 48px 56px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.quote-card-head { margin-bottom: 36px; }

.quote-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.quote-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: end;
}

.quote-form-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.quote-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 15px;
}

.quote-swap svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dim);
}

.lang-select {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a44e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

[dir="rtl"] .lang-select {
  background-position: left 16px center;
}

.lang-select:focus {
  outline: none;
  border-color: var(--gold);
}

.quote-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25d366;
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
}

.quote-form-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  margin-top: 18px;
  font-size: 14px;
  color: var(--gold-bright);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}

.form-feedback.visible {
  opacity: 1;
  height: auto;
}

.form-feedback.is-error {
  color: #e08a7a;
}

@media (max-width: 720px) {
  .quote-section { margin-top: -50px; }
  .quote-card { padding: 32px 24px; }
  .quote-form-row,
  .quote-form-row.three {
    grid-template-columns: 1fr;
  }
  .quote-swap {
    justify-content: flex-start;
    padding: 0 0 4px 2px;
  }
  .quote-swap svg { transform: rotate(90deg); }
}

/* ============================================
   WhatsApp floating button
   ============================================ */
.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

[dir="rtl"] .wa-float { right: auto; left: 26px; }

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px -6px rgba(37, 211, 102, 0.7);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}

.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.2s var(--ease) infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float-ring { animation: none; }
}

@media (max-width: 720px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ============================================
   Document types grid
   ============================================ */
.doctypes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.doctype-card {
  background: var(--bg-void);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.4s var(--ease);
  position: relative;
}

.doctype-card:hover { background: var(--bg-panel); }

.doctype-icon {
  width: 36px;
  height: 36px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
  transition: transform 0.4s var(--ease);
}

.doctype-card:hover .doctype-icon { transform: scale(1.1) translateY(-2px); }

.doctype-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.doctype-arrow {
  position: absolute;
  top: 40px;
  right: 28px;
  color: var(--gold-dim);
  font-size: 18px;
  transition: transform 0.3s var(--ease), color 0.3s;
}

[dir="rtl"] .doctype-arrow { right: auto; left: 28px; transform: scaleX(-1); }

.doctype-card:hover .doctype-arrow { transform: translateX(4px); color: var(--gold); }
[dir="rtl"] .doctype-card:hover .doctype-arrow { transform: scaleX(-1) translateX(4px); }

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

/* ============================================
   Subpages — page header, breadcrumb, prose, CTA
   ============================================ */
.page-header {
  position: relative;
  z-index: 2;
  padding: 150px 0 70px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { color: var(--line-bright); }
.breadcrumb span.current { color: var(--gold); }

.page-header h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 780px;
}

.page-header .page-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

.prose-section {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 70px;
}

.prose h2 {
  font-size: 26px;
  color: var(--text-primary);
  margin: 44px 0 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose ul {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  color: var(--text-primary);
  line-height: 1.6;
}

.prose ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.side-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  padding: 36px;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.side-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.side-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.side-card-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.side-card-list li strong { color: var(--text-primary); font-weight: 600; }

.side-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }

.related-docs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-docs h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.related-docs a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.25s;
}

.related-docs a:hover { color: var(--gold-bright); }

.cta-banner {
  position: relative;
  z-index: 2;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .prose-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

@media (max-width: 720px) {
  .page-header { padding: 120px 0 50px; }
}

/* ============================================
   Languages strip
   ============================================ */
.langs-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.langs-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 56px;
}

.lang-chip {
  padding: 28px 12px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}

.lang-chip:hover {
  border-color: var(--gold-dim);
  background: rgba(201, 164, 78, 0.04);
}

.lang-chip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.lang-chip-native {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-visual img {
  width: 100%;
  border-radius: 50%;
}

.about-points {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--text-primary);
}

.about-points svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Contact
   ============================================ */
.contact-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.contact-info-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 15px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal-stagger.visible > * {
  transition-delay: calc(var(--i) * 80ms);
}

/* ============================================
   Focus visibility
   ============================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-globe-wrap { height: 380px; order: -1; }
  .hero-globe { width: 300px; height: 300px; }
  .orbit-tag { transform: rotate(var(--angle)) translateX(150px) rotate(calc(-0.55 * var(--angle))); font-size: 9px; padding: 3px 8px; }
  .orbit-2 .orbit-tag { transform: rotate(var(--angle)) translateX(122px) rotate(calc(-0.55 * var(--angle))); font-size: 8px; padding: 3px 7px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .langs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-right .btn-primary { display: none; }
  .nav-mobile-toggle { display: flex; }
  .container { padding: 0 22px; }
  .section { padding: 90px 0; }
  .hero-title { font-size: 42px; }
  .langs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Side panel (drawer) navigation for mobile */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: var(--bg-panel-raised, #14141a);
    padding: 110px 30px 40px;
    gap: 4px;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 150;
    overflow-y: auto;
  }

  .nav-links.mobile-open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    font-family: var(--font-display);
    color: var(--text-primary);
    border-bottom: 1px solid var(--line-bright, rgba(255,255,255,0.08));
  }

  .nav-links a::after { display: none; }

  /* Dimmed backdrop behind the side panel */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 140;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}
