/* ===========================================
   Grey Dak — Minimal Investment Firm
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --bg: #f6f5f1;
  --bg-dark: #1a1f25;
  --slate: #4e6171;
  --slate-deep: #364554;
  --teal: #5a8f8b;
  --text: #2c3440;
  --text-mid: #6b7685;
  --text-light: #99a3ad;
  --border: rgba(44, 52, 64, 0.08);
  --white: #ffffff;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--slate); color: var(--white); }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* --- Layout --- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: background 0.5s, padding 0.4s var(--transition), backdrop-filter 0.5s;
}
nav.scrolled {
  background: rgba(246, 245, 241, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo svg { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--white);
  background: var(--slate-deep);
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--text);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  padding: 160px 0 120px;
  max-width: 900px;
}
.hero h1 {
  color: var(--text);
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 400;
}

/* Decorative line */
.hero::after {
  content: '';
  position: absolute;
  right: 12%;
  top: 20%;
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--slate), transparent);
  opacity: 0.15;
}

/* --- Divider --- */
.divider {
  padding: 0;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Statement (full-width text section) --- */
.statement {
  padding: clamp(80px, 12vw, 80px) 0;
}
.statement-text {
  max-width: 720px;
}
.statement-text h2 {
  color: var(--text);
  margin-bottom: 24px;
}
.statement-text p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 540px;
}

/* --- Pillars --- */
.pillars {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg-dark);
  color: var(--white);
}
.pillars-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 48px;
  display: block;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.pillar {
  background: var(--bg-dark);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
}
.pillar-num {
  font-family: 'Instrument Serif', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
  display: block;
}
.pillar h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.pillar p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* --- Numbers --- */
.numbers {
  padding: clamp(80px, 12vw, 140px) 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.number-item {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.number-val {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.number-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- CTA --- */
.cta {
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
}
.cta h2 {
  margin-bottom: 20px;
  color: var(--text);
}
.cta p {
  color: var(--text-mid);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-deep);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.25s var(--transition), box-shadow 0.3s;
}
.cta-btn:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 52, 64, 0.15);
}
.cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.cta-btn:hover svg { transform: translateX(3px); }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo svg { height: 32px;max-width: 130px;}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- How Steps --- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 48px;
}
.how-step {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
}
.how-num {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}
.how-step p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* --- Partners --- */
.partners {
  padding: clamp(80px, 12vw, 140px) 0;
}
.partners-content h2 {
  max-width: 640px;
  margin-bottom: 40px;
}
.partners-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.partner-item {
  border-left: 2px solid var(--teal);
  padding: 16px 24px;
  background: rgba(44, 52, 64, 0.02);
  border-radius: 0 4px 4px 0;
}
.partner-item span {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.partners-closing {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Process --- */
.process {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.process .section-tag { margin-bottom: 12px; }
.process h2 { margin-bottom: 48px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.process-step { text-align: center; }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 16px;
}
.process-step h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.section-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

/* --- Responsive additions --- */
@media (max-width: 900px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .partners-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .how-steps { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}
.reveal.vis {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .hero::after { display: none; }
}

@media (max-width: 600px) {
  nav .nav-links { gap: 20px; }
  nav .nav-links a:not(.nav-cta) { display: none; }
  .hero-content { padding: 140px 0 80px; }
}
