:root {
  --bg-dark: #1B232B;
  --bg-dark-2: #16202A;
  --bg-light: #F7F7FB;
  --bg-soft: #EEF2F6;
  --bg-white: #FFFFFF;

  --mint: #BFF4EE;

  --text-dark: #1B232B;
  --text-dark-soft: rgba(27, 35, 43, 0.68);

  --text-light: #F7F7FB;
  --text-light-soft: rgba(247, 247, 251, 0.76);

  --line-dark: rgba(27, 35, 43, 0.08);
  --line-light: rgba(247, 247, 251, 0.10);

  --shadow-soft: 0 20px 44px rgba(27, 35, 43, 0.06);
  --shadow-medium: 0 28px 56px rgba(27, 35, 43, 0.10);
  --shadow-strong: 0 32px 80px rgba(10, 16, 22, 0.18);

  --max: 1200px;
  --header-h: 82px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-standard: cubic-bezier(.4,0,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  word-break: keep-all;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

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

/* ------------------------------
   Header
------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(27, 35, 43, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 247, 251, 0.08);
  transition:
    height 0.35s var(--ease-standard),
    background-color 0.35s var(--ease-standard),
    border-color 0.35s var(--ease-standard),
    box-shadow 0.35s var(--ease-standard),
    backdrop-filter 0.35s var(--ease-standard);
}

.header.scrolled {
  height: 72px;
  background: rgba(27, 35, 43, 0.88);
  border-bottom-color: rgba(247, 247, 251, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.3s ease;
}

body.light-surface .logo {
  color: var(--text-dark);
}

.logo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--text-light-soft);
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-standard);
  opacity: 0.6;
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.98;
  box-shadow: 0 10px 24px rgba(191, 244, 238, 0.24);
}

/* Mobile CTA inside nav */
.nav-cta-mobile {
  display: none;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.light-surface .nav-toggle span {
  background: var(--text-dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 140px;
  background:
    radial-gradient(circle at 50% 18%, rgba(191, 244, 238, 0.06), transparent 30%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 75%, rgba(255,255,255,0.03), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: min(720px, 76vw);
  margin: 0 auto 44px;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  animation: heroFadeUp 1s var(--ease-out) 0.08s forwards;
}

.hero-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(46px, 6.8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text-light);

  white-space: nowrap; /* 핵심 */

  opacity: 0;
  transform: translateY(26px);
  animation: heroFadeUp 1s var(--ease-out) 0.22s forwards;
}

.hero-copy {
  margin: 34px auto 0;
  max-width: 820px;
  font-size: 26px;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(26px);
  animation: heroFadeUp 1s var(--ease-out) 0.36s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .hero-title {
    white-space: normal;
  }
}

/* ------------------------------
   Shared sections
------------------------------ */
.section-kicker {
  margin: 0 0 18px;
  color: var(--mint);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 800;
  text-align: center;
}

.section-copy {
  margin: 28px auto 0;
  max-width: 820px;
  font-size: 23px;
  line-height: 1.85;
  text-align: center;
}

.align-left {
  text-align: left !important;
  margin-left: 0 !important;
}

.reveal-section {
  position: relative;
}

.reveal-item {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal-item.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* stagger */
.stagger-1 { transition-delay: 0.04s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.20s; }
.stagger-4 { transition-delay: 0.28s; }

/* ------------------------------
   Data Section
------------------------------ */
.section-data {
  padding: 120px 0;
  background: var(--bg-white);
}

.data-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.data-title {
  font-size: 22px;
  margin-bottom: 60px;
  color: var(--text-dark);
  font-weight: 600;
}

/* GRID */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* ITEM */
.data-item {
  position: relative;
  padding: 20px 10px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* divider line */
.data-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(0,0,0,0.08);
}

/* NUMBER */
.data-number {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* DESC */
.data-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.data-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 1024px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .data-item::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .data-title {
    font-size: 18px;
  }

  .data-number {
    font-size: 28px;
  }
}

.data-item.in-view .data-number {
  transform: translateY(0);
  opacity: 1;
}


/* ------------------------------
   Data Icon (PNG)
------------------------------ */
.data-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(191, 244, 238, 0.12);
  border-radius: 14px;
}

.data-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}


/* ------------------------------
   Intro - Who we are
------------------------------ */
.section-intro {
  padding: 160px 0 172px;
  background: var(--bg-light);
  color: var(--text-dark);
  border-top: 1px solid rgba(27, 35, 43, 0.04);
}

.intro-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.intro-kicker,
.intro-title,
.intro-copy {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.95s var(--ease-out);
}

.section-intro.in-view .intro-kicker,
.section-intro.in-view .intro-title,
.section-intro.in-view .intro-copy {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-intro.in-view .intro-title {
  transition-delay: 0.08s;
}

.section-intro.in-view .intro-copy {
  transition-delay: 0.16s;
}

.intro-kicker {
  margin: 0 0 18px;
  color: #567675;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
}

.intro-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--text-dark);
}

.intro-copy {
  margin: 30px auto 0;
  max-width: 820px;
  font-size: 27px;
  line-height: 1.8;
  color: var(--text-dark);
}

/* ------------------------------
   Split - How we think
------------------------------ */

.section-split-bg {
  position: relative;
  height: 1000px; /* 🔥 기존보다 키움 */

  background: url("../images/how-we-think.webp") top center / cover no-repeat;

  display: flex;
  align-items: center;
}

/* 🔥 더 진한 오버레이 */
.section-split-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 26, 0.72); /* 🔥 더 어둡게 */
}

/* 컨텐츠 */
.split-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.split-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 🔥 브랜드 컬러 적용 */
.split-kicker {
  color: var(--mint);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* 타이틀 */
.split-title {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 22px;
}

/* 본문 */
.split-copy {
  color: var(--text-light-soft);
  font-size: 18px;
  line-height: 1.7;
}

@media (min-width: 769px) {
  .section-split-bg {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .section-split-bg {
    height: auto;
    min-height: 420px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-title {
    font-size: 32px;
  }
}

/* =========================
   CARD STACK SECTION
========================= */

.section-card-stack {
  position: relative;
  height: 400vh;
  overflow: clip;
  background: var(--bg-dark-2);
}

/* Layout */
.stack-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 2;
}

/* Left Text */
.stack-text {
  flex: 1;
  position: relative;
  min-height: 180px;
}

.stack-item {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stack-item.active {
  opacity: 1;
  transform: translateY(-50%);
}

.stack-item h3 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text-light);
  margin: 0 0 16px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.stack-item p {
  font-size: 17px;
  color: var(--text-light-soft);
  line-height: 1.7;
  max-width: 420px;
}

/* Right Image */
.stack-image {
  flex: 0 0 50%;
  position: relative;
  height: 420px;
}

.stack-image img {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stack-image img.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .section-card-stack {
    height: auto;
    overflow: visible;
  }

  .stack-inner {
    position: relative;
    top: auto;
    height: auto;
    flex-direction: column;
    gap: 32px;
    padding: 60px 24px;
  }

  .stack-text {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .stack-item,
  .stack-item.active {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    padding: 40px 0;
    border-bottom: 1px solid var(--line-light);
  }

  .stack-item h3 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .stack-image {
    flex: none;
    width: 100%;
    height: auto;
  }

  .stack-image img {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
  }

  .stack-image img:not(:first-child) {
    display: none !important;
  }
}

/* =========================
   TEAM SECTION (리디자인)
========================= */
.section-team {
  padding: 140px 20px;
  background: #f5f7fa;
  text-align: center;
}

/* 헤더 */
.team-header {
  max-width: 760px;
  margin: 0 auto 80px;
}

.team-kicker {
  color: #567675;
  font-size: 14px;
  margin-bottom: 12px;
}

.team-title {
  font-size: 48px;
  font-weight: 800;
  color: #0f1720;
  margin-bottom: 20px;
}

.team-sub {
  color: #555;
  line-height: 1.7;
}

/* 카드 그리드 */
.team-grid {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 카드 */
.team-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 28px;

  border: 1px solid rgba(0,0,0,0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.team-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #111;
}

.team-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}


/* =========================
   CTA SECTION FIX
========================= */

.section-cta-bg {
  position: relative;
  height: 520px; /* 👉 적당한 높이로 FIX */
  display: flex;
  align-items: center;
  justify-content: center;

  background: url("../images/office-bg.webp") top center / cover no-repeat;
}

/* 어두운 오버레이 */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 26, 0.65); /* 👉 더 진하게 */
}

/* 콘텐츠 */
.cta-inner {
  position: relative;
  text-align: center;
  color: var(--text-light);
  z-index: 2;
}

/* 텍스트 */
.cta-kicker {
  font-size: 14px;
  color: var(--mint);
  margin-bottom: 12px;
}

.cta-title {
  font-size: 40px; /* 👉 다시 키움 */
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-copy {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 28px;
}

/* 버튼 (핵심) */
.cta-button {
  display: inline-block;
  padding: 14px 28px;

  background: var(--mint);
  color: #0b1a24;

  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* 반응형 */
@media (max-width: 768px) {
  .section-cta-bg {
    height: 420px;
  }

  .cta-title {
    font-size: 28px;
  }
}
/* ------------------------------
   Footer
------------------------------ */
.footer {
  padding: 34px 0 64px;
  color: var(--text-light-soft);
  font-size: 14px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(247, 247, 251, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 14px;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-light-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text-light);
}

.footer-copy {
  margin-top: 18px;
}

/* ------------------------------
   Light mode header text
------------------------------ */
body.light-surface .header {
  background: rgba(247, 247, 251, 0.88);
  border-bottom-color: rgba(27, 35, 43, 0.08);
}

body.light-surface .logo,
body.light-surface .nav-link {
  color: var(--text-dark);
}

body.light-surface .nav-link {
  opacity: 0.72;
}

body.light-surface .nav-link:hover {
  opacity: 1;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: 100%;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line-light);
    padding: 8px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }

  body.light-surface .nav {
    background: var(--bg-light);
    border-bottom-color: var(--line-dark);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 32px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    margin: 8px 24px 12px;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: var(--mint);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
  }

  .hero-title {
    white-space: normal;
  }

  .section-copy,
  .intro-copy {
    font-size: 20px;
    max-width: 640px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    min-height: calc(100svh - 72px);
    padding: 104px 0 104px;
  }

  .hero-logo {
    width: min(500px, 88vw);
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section-intro,
  .section-split,
  .section-build,
  .section-team,
  .section-cta {
    padding: 104px 0 116px;
  }

  .cta-button {
    width: 100%;
    max-width: 340px;
  }

  .footer {
    padding: 30px 0 56px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Contact Modal
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-standard), visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-dark);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  padding: 48px 40px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.active .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-light-soft);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.modal-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
}

.modal-desc {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--text-light-soft);
}

/* Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.form-group .required {
  color: var(--mint);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(247, 247, 251, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(191, 244, 238, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: var(--mint);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(191, 244, 238, 0.24);
}

/* Success */
.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(191, 244, 238, 0.12);
  color: var(--mint);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-success h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text-light);
}

.modal-success p {
  margin: 0 0 28px;
  color: var(--text-light-soft);
  font-size: 15px;
}

/* Mobile */
@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 36px 24px 40px;
  }
}
