/* Luxury / Editorial Design System */

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

:root {
  /* Core Palette */
  --bg: #F9F8F6;
  --bg-muted: #EBE5DE;
  --fg: #1A1A1A;
  --fg-muted: #6C6863;
  --accent: #F97316;
  --white: #FFFFFF;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Timing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 300ms;
  --duration: 500ms;
  --duration-slow: 700ms;
  --duration-image: 1500ms;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   Paper Noise Texture
   ============================================= */

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =============================================
   Visible Grid Lines
   ============================================= */

.grid-lines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(26, 26, 26, 0.06);
}

/* =============================================
   Navigation
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: all var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  padding: 1rem 2rem;
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--fg);
  border-radius: 0;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link-auth {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--duration) var(--ease);
}

.nav-link-auth:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: all var(--duration) var(--ease);
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* =============================================
   Buttons - Gold Sliding Animation
   ============================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}

.btn-primary {
  background: var(--fg);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform var(--duration) var(--ease);
}

.btn:hover .btn-bg {
  transform: translateX(0);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-lg {
  height: 56px;
  padding: 0 2.5rem;
  font-size: 0.75rem;
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtle gradient at bottom only */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(249, 248, 246, 0.95) 0%, rgba(249, 248, 246, 0.7) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Vertical Label */
.hero-vertical-label {
  position: absolute;
  left: 2rem;
  bottom: 50%;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: none;
}

/* Hero Content - Bottom Left */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.hero-overline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.overline-line {
  width: 3rem;
  height: 1px;
  background: var(--fg);
}

.hero-overline span:last-child {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
}

.hero-title .italic {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--fg);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(26, 26, 26, 0.2);
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}

.scroll-cue:hover {
  opacity: 1;
}

.scroll-cue span {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--fg);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* =============================================
   Sections
   ============================================= */

.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-light {
  background: var(--bg);
}

.section-dark {
  background: var(--fg);
  color: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header-light {
  color: var(--bg);
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.section-header-light .section-label {
  color: rgba(249, 248, 246, 0.6);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  line-height: 1.7;
}

/* =============================================
   Features Grid
   ============================================= */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(26, 26, 26, 0.1);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-slow) var(--ease);
  border-top: 1px solid transparent;
}

.feature-card:hover {
  background: rgba(235, 229, 222, 0.5);
  border-top-color: var(--accent);
}

.feature-number {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  transition: color var(--duration) var(--ease);
}

.feature-card:hover .feature-content h3 {
  color: var(--accent);
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.feature-arrow {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--fg-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover .feature-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* =============================================
   Process Grid
   ============================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(249, 248, 246, 0.7);
  line-height: 1.7;
}

/* =============================================
   CTA Block
   ============================================= */

.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-title em {
  font-style: italic;
  color: var(--accent);
}

.cta-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Footer
   ============================================= */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
}

.footer-brand .logo-mark {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* =============================================
   Mobile Menu
   ============================================= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-inner a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--fg);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.mobile-menu-inner a:hover {
  color: var(--accent);
}

.mobile-menu-divider {
  width: 48px;
  height: 1px;
  background: rgba(26, 26, 26, 0.2);
}

/* =============================================
   Responsive
   ============================================= */

@media (min-width: 768px) {
  .hero-vertical-label {
    display: block;
  }

  .hero-content {
    padding: 0 4rem 6rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card {
    flex-direction: column;
    padding: 2.5rem;
  }

  .section {
    padding: 8rem 4rem;
  }
}

@media (min-width: 1024px) {
  .nav {
    padding: 2rem 4rem;
  }

  .nav.scrolled {
    padding: 1.25rem 4rem;
  }

  .hero-content {
    padding: 0 8rem 8rem;
  }

  .scroll-cue {
    right: 4rem;
    bottom: 4rem;
  }

  .hero-vertical-label {
    left: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* =============================================
   Reduced Motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
