/* ============================================
   미래나눔 Investment — Stylesheet
   Aesthetic: Editorial Luxury Finance
   ============================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0d1b2e;
  --navy-700: #162544;
  --navy-600: #1e3460;
  --navy-500: #2a4a7f;
  --gold-500: #c1a773;
  --gold-400: #d4be8e;
  --gold-300: #e2d3af;
  --gold-600: #a08b5b;
  --white: #f8f6f1;
  --white-pure: #ffffff;
  --gray-100: #f2f0eb;
  --gray-200: #e5e2db;
  --gray-400: #9e9a90;
  --gray-600: #6b6760;
  --gray-800: #3a3733;
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --font-serif-kr: 'Noto Serif KR', serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.25s; }
.reveal--d3 { transition-delay: 0.4s; }
.reveal--d4 { transition-delay: 0.55s; }
.reveal--d5 { transition-delay: 0.7s; }

/* === Section Labels & Titles === */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.5rem;
}
.section-label--light { color: var(--gold-400); }

.section-title {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--navy-900);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  color: var(--gold-600);
}
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold-400); }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav--scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(193, 167, 115, 0.1);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo-symbol {
  color: var(--gold-500);
  font-size: 1.1rem;
}
.nav__logo-text {
  font-family: var(--font-serif-kr);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__logo-accent {
  font-family: var(--font-display);
  font-weight: 400;
  margin-left: 0.3rem;
  color: var(--gold-400);
  font-size: 0.95rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(248, 246, 241, 0.7);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease-out-expo);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  color: var(--gold-400);
  border: 1px solid rgba(193, 167, 115, 0.4);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out-expo);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .nav__links.open { right: 0; }
  .nav__link { font-size: 1rem; }
  .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg,
.hero__grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  padding-top: 6rem;
}
.hero__overline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-serif-kr);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--gold-400);
}
.hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: rgba(248, 246, 241, 0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.35s ease;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--primary:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193, 167, 115, 0.2);
}
.btn--outline {
  border: 1px solid rgba(248, 246, 241, 0.25);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}
.btn--full { width: 100%; }

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}
.hero__scroll span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.4);
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(193, 167, 115, 0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-500);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ============================================
   About
   ============================================ */
.about {
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--navy-900);
  line-height: 1;
  display: inline;
}
.stat__unit {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-500);
  display: inline;
  margin-left: 2px;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat__number { font-size: 2rem; }
}

/* ============================================
   Philosophy
   ============================================ */
.philosophy {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.philosophy__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.philosophy__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.philosophy .container { position: relative; z-index: 1; }
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.philosophy__card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(193, 167, 115, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease;
}
.philosophy__card:hover {
  border-color: rgba(193, 167, 115, 0.25);
  background: rgba(193, 167, 115, 0.04);
  transform: translateY(-4px);
}
.philosophy__icon {
  width: 48px;
  height: 48px;
  color: var(--gold-400);
  margin-bottom: 1.5rem;
}
.philosophy__card-title {
  font-family: var(--font-serif-kr);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.philosophy__card-text {
  font-size: 0.88rem;
  color: rgba(248, 246, 241, 0.5);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .philosophy__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.service {
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  transition: all 0.4s ease;
  position: relative;
}
.service:hover {
  border-color: var(--gold-500);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.06);
}
.service__number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 1.25rem;
}
.service__title {
  font-family: var(--font-serif-kr);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.service__text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.service__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service__list li {
  font-size: 0.82rem;
  color: var(--gray-400);
  padding-left: 1rem;
  position: relative;
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 1px;
  background: var(--gold-500);
}

@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Team
   ============================================ */
.team {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.team__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.team__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team .container { position: relative; z-index: 1; }
.team__intro {
  font-size: 0.95rem;
  color: rgba(248, 246, 241, 0.5);
  margin-bottom: 3rem;
  line-height: 1.8;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team__member {
  text-align: center;
}
.team__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}
.team__avatar svg {
  width: 100%;
  height: 100%;
}
.team__name {
  font-family: var(--font-serif-kr);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.team__role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}
.team__bio {
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.45);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Insights
   ============================================ */
.insights {
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.insight {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.insight:hover {
  border-color: var(--gold-500);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.06);
}
.insight__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.insight__tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold-600);
  background: rgba(193, 167, 115, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.insight__date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gray-400);
}
.insight__title {
  font-family: var(--font-serif-kr);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.insight__excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.insight__link {
  font-size: 0.82rem;
  color: var(--gold-600);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.insight__link:hover { color: var(--gold-500); }

@media (max-width: 768px) {
  .insights__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Contact
   ============================================ */
.contact {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact .container { position: relative; z-index: 1; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__text {
  font-size: 0.95rem;
  color: rgba(248, 246, 241, 0.55);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__item-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.25rem;
}
.contact__item-value {
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.7);
  line-height: 1.6;
}

/* Form */
.contact__form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(193, 167, 115, 0.12);
  border-radius: 3px;
  padding: 2.5rem;
}
.form__group { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(248, 246, 241, 0.5);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form__input {
  width: 100%;
  padding: 0.7rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(193, 167, 115, 0.15);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.form__input:focus {
  border-color: var(--gold-500);
}
.form__input::placeholder { color: rgba(248, 246, 241, 0.2); }
.form__textarea {
  resize: vertical;
  min-height: 100px;
}
.contact__form .btn--primary {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(193, 167, 115, 0.08);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__brand .nav__logo-symbol { font-size: 0.9rem; }
.footer__name {
  font-family: var(--font-serif-kr);
  font-size: 0.9rem;
  color: rgba(248, 246, 241, 0.6);
}
.footer__legal {
  text-align: right;
}
.footer__legal p {
  font-size: 0.75rem;
  color: rgba(248, 246, 241, 0.35);
}
.footer__disclaimer {
  margin-top: 0.4rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { text-align: center; }
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
