:root {
  --bg: #07080d;
  --bg-elev: #10131c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --muted: #9aa3b5;
  --gold: #e8c990;
  --gold-2: #f3ddb0;
  --violet: #8b7cff;
  --mint: #7ee0c6;
  --danger: #ff8a8a;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: "Sora", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", system-ui, sans-serif;
  --display: "Fraunces", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body[dir="rtl"] { text-align: right; }

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(139, 124, 255, 0.28), transparent 60%),
    radial-gradient(35% 40% at 85% 10%, rgba(232, 201, 144, 0.18), transparent 55%),
    radial-gradient(45% 40% at 70% 80%, rgba(126, 224, 198, 0.12), transparent 60%),
    radial-gradient(20% 20% at 40% 60%, rgba(255, 120, 180, 0.08), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, select, input, textarea { font-family: inherit; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 13, 0.62);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold), #b8884a 40%, var(--violet));
  color: #1a1208;
  font-family: var(--display);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  appearance: none;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body[dir="rtl"] .lang {
  padding: 8px 14px 8px 34px;
  background-position: 11px calc(50% - 3px), 16px calc(50% - 3px);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1c1408;
  box-shadow: 0 10px 30px rgba(232, 201, 144, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  margin: 18px 0 16px;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.stat b {
  display: block;
  font-size: 22px;
  color: var(--gold);
}

.stat span { color: var(--muted); font-size: 12px; }

.hero-card {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card h3 { margin: 0 0 8px; font-size: 16px; }
.quote-row { display: grid; gap: 10px; }
.quote-row label { font-size: 12px; color: var(--muted); }
.quote-row select, .quote-row input, .quote-row textarea {
  width: 100%;
  background: #0c0f16;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}

.quote-row select:focus, .quote-row input:focus, .quote-row textarea:focus {
  border-color: rgba(232, 201, 144, 0.45);
}

.estimate {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(139, 124, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estimate strong { font-size: 22px; color: var(--gold-2); }

section { padding: 72px 0; }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); line-height: 1.7; }
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.grid-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.app {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  min-height: 118px;
  transition: border-color .2s ease, transform .2s ease;
}

.app:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 201, 144, 0.35);
}

.app .mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.app h3 { margin: 0 0 4px; font-size: 15px; }
.app p { margin: 0; color: var(--muted); font-size: 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 28px;
}

.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

body[dir="rtl"] th, body[dir="rtl"] td { text-align: right; }

th { color: var(--muted); font-weight: 500; font-size: 13px; }
td strong { color: var(--mint); }

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); line-height: 1.7; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.ok {
  display: none;
  margin-top: 12px;
  color: var(--mint);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .hero, .grid-apps, .steps, .contact-grid { grid-template-columns: 1fr; }
  .grid-apps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-nav { display: flex; }
  .stats { grid-template-columns: 1fr; }
}
