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

:root {
  --white:   #ffffff;
  --off:     #f8f8f6;
  --ink:     #1a1a1a;
  --mid:     #6b6b6b;
  --line:    #e4e4e0;
  --gold:    #b89a6a;
  --gold-lt: #d4b98a;
}

[dir="rtl"] { direction: rtl; text-align: right; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Noto Sans Arabic', sans-serif;
  background: var(--white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.logo span { color: var(--gold); }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 20px;
  text-align: center;
  background: var(--white);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 300;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title strong {
  font-weight: 600;
  display: block;
}

.hero-main-label {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  background: linear-gradient(135deg, #b89a6a 0%, #e2c27d 50%, #b89a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 14px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 36px auto;
}

.cards {
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
.card:hover {
  border-color: var(--gold-lt);
  box-shadow: 0 4px 24px rgba(184,154,106,0.10);
  transform: translateY(-2px);
}
.card:hover::before { transform: scaleY(1); }

.card-left { display: flex; flex-direction: column; gap: 6px; }

.card-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.card-desc {
  font-size: 12px;
  color: var(--mid);
  font-weight: 300;
  margin-top: 2px;
  line-height: 1.6;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: border-color 0.25s, background 0.25s;
}
[dir="rtl"] .card-arrow { margin-left: 0; margin-right: 16px; }
.card:hover .card-arrow {
  border-color: var(--gold);
  background: var(--gold);
}
.card-arrow svg { transition: stroke 0.25s; }
.card:hover .card-arrow svg { stroke: #fff; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
}
footer p {
  font-size: 12px;
  color: var(--mid);
  font-weight: 300;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .cards { flex-direction: row; flex-wrap: wrap; max-width: 900px; }
  .card { width: calc(33.3% - 12px); flex-direction: column; align-items: flex-start; gap: 20px; }
  .card-arrow { align-self: flex-end; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card::before { transition: none; }
}

.lang-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
[dir="rtl"] .lang-switcher { right: auto; left: 24px; }
.lang-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.lang-toggle:hover { transform: scale(1.1); }
.lang-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.lang-menu.show { display: flex; }
.lang-menu button {
  font-family: 'Noto Sans KR', 'Noto Sans Arabic', sans-serif;
  padding: 10px 20px;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
  white-space: nowrap;
}
[dir="rtl"] .lang-menu button { text-align: right; }
.lang-menu button:hover { background: var(--off); }
.lang-menu button.active { font-weight: 700; color: var(--gold); }
