/* ============================================================
   Premium IB — Dark Luxury Design System
   ============================================================ */

:root {
  /* Color */
  --bg-primary:   #0A1428;
  --bg-elevated:  #0F1B33;
  --bg-deeper:    #070E1E;
  --gold:         #C9A961;
  --gold-soft:    #E6D4A3;
  --gold-deep:    #A88947;
  --text-primary: #F5F1E8;
  --text-muted:   #8A95A8;
  --text-faint:   #5A6478;
  --border:       rgba(201, 169, 97, 0.18);
  --border-strong:rgba(201, 169, 97, 0.40);
  --shadow-soft:  0 30px 80px -40px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-serif: "Playfair Display", "Noto Serif KR", serif;
  --font-sans:  "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container: 1120px;
  --container-narrow: 760px;
  --radius: 4px;
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle ambient gradient */
  background-image:
    radial-gradient(1200px 600px at 50% -100px, rgba(201,169,97,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(201,169,97,0.04), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 120px 0; position: relative; }
.section--intro   { padding-top: 140px; }
.section--promise { background: var(--bg-deeper); }
.section--qualify { }
.section--apply   { padding-bottom: 160px; }

/* ============================================================
   Typography helpers
   ============================================================ */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow__star { color: var(--gold); font-size: 10px; }

.lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 0 32px;
  letter-spacing: -0.005em;
}

.body-text {
  font-size: 16px;
  color: #CFCBC0;
  margin: 0 0 24px;
  line-height: 1.85;
}
.body-text strong {
  color: var(--gold-soft);
  font-weight: 500;
}

.divider {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px 0;
}
.divider--gold { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   Section heads
   ============================================================ */

.section-head { text-align: center; margin-bottom: 72px; }
.section-head__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.section-head__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}
.section-head__sub {
  margin: 28px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 2px;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 14px 40px -16px rgba(201,169,97,0.5);
}
.btn:active { transform: translateY(1px); }
.btn--gold { /* default already gold */ }
.btn--block { width: 100%; padding: 18px 24px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 24px 120px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(201,169,97,0.12), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(201,169,97,0.06), transparent 60%);
}
.hero::before {
  /* subtle top hairline */
  content: "";
  position: absolute; left: 50%; top: 36px;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(180deg, transparent, var(--gold));
  opacity: 0.6;
}
.hero__inner { max-width: 880px; margin: 0 auto; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-primary);
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 12px;
}
.hero__title em {
  display: inline-block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-soft);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Slight bottom padding so descenders aren't clipped by background-clip */
  padding-bottom: 0.08em;
}

.hero .divider { margin: 36px auto; }

.hero__sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 0 0 48px;
}

.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: block; padding: 8px;
}
.hero__scroll-line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   INTRO
   ============================================================ */

.section--intro .container { position: relative; }
.intro__bar {
  position: absolute;
  left: 24px; top: 6px;
  width: 2px; height: 64px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
@media (min-width: 768px) {
  .intro__bar { left: 0; }
}

/* ============================================================
   DEMAND
   ============================================================ */

.section--demand {
  padding: 80px 0;
  background: var(--bg-deeper);
  position: relative;
}
.section--demand::before,
.section--demand::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: min(420px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.section--demand::before { top: 0; }
.section--demand::after  { bottom: 0; }

.demand {
  text-align: center;
  padding: 16px 8px;
}
.demand__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.demand__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 18px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.demand__title em {
  display: inline-block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-soft);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.demand__sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.75;
}

/* ============================================================
   PROMISE
   ============================================================ */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .promise-grid { grid-template-columns: 1fr; }
}

.promise-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  position: relative;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.promise-card::before {
  /* gold corner accent */
  content: "";
  position: absolute; top: 0; left: 0;
  width: 28px; height: 28px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  opacity: 0.7;
}
.promise-card::after {
  content: "";
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0.7;
}
.promise-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.promise-card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 24px;
}

.promise-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.promise-card__title em {
  font-style: normal;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(201,169,97,0.35);
  padding-bottom: 2px;
}

.promise-card__highlight {
  margin: 4px 0 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gold);
}
.promise-card__highlight .num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.promise-card__highlight .unit {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

.promise-card__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   QUALIFICATION
   ============================================================ */

.qualify-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.qualify-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 27, 51, 0.5);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.qualify-item:hover {
  border-color: var(--border-strong);
  background: rgba(15, 27, 51, 0.8);
}

.qualify-item__check {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  margin-top: 2px;
}

.qualify-item__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.qualify-item__title strong {
  color: var(--gold-soft);
  font-weight: 600;
}
.qualify-item__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   APPLY FORM
   ============================================================ */

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  gap: 22px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.form-card::before,
.form-card::after {
  content: "";
  position: absolute;
  width: 32px; height: 32px;
}
.form-card::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.form-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

@media (max-width: 640px) {
  .form-card { padding: 32px 22px; }
}

.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.form-row label .req { color: var(--gold); margin-left: 2px; }
.form-row label .hint {
  margin-left: 8px;
  color: var(--text-faint);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(7, 14, 30, 0.6);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  font-family: var(--font-sans);
}
.form-row textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-faint);
  font-weight: 300;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  background: rgba(7, 14, 30, 0.85);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  /* keep subtle, no harsh red */
}

.form-error {
  margin: 0;
  padding: 12px 16px;
  background: rgba(180, 60, 60, 0.12);
  border: 1px solid rgba(220, 100, 100, 0.35);
  color: #F0C8C8;
  font-size: 14px;
  border-radius: 2px;
}

.form-foot {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.7;
}

/* Success panel */
.form-success {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.form-success__mark {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.4em;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.form-success p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-deeper);
}
.footer__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 8px;
}
.footer__meta {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ============================================================
   Reveal-on-scroll (progressive enhancement)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .section, .promise-card, .qualify-item, .form-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  .section.is-visible, .promise-card.is-visible,
  .qualify-item.is-visible, .form-card.is-visible {
    opacity: 1;
    transform: none;
  }
  /* Always show hero (no JS dependency) */
  .hero, .hero * { opacity: 1; transform: none; }
}
