/* ===========================================
   DECH Design System v2
   Dark Premium: Nostalgic Modernism with depth
   =========================================== */

/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* === Design Tokens === */
:root {
  /* Dark palette with warm undertones */
  --bg-deep: #0D0C0B;
  --bg-elevated: #1A1816;
  --bg-card: #252220;
  --bg-hover: #2F2B28;

  /* Accent colors */
  --accent-gold: #C9A962;
  --accent-gold-soft: rgba(201, 169, 98, 0.15);
  --accent-gold-glow: rgba(201, 169, 98, 0.4);

  /* Text hierarchy */
  --text-primary: #F5F2ED;
  --text-secondary: #A8A29E;
  --text-muted: #6B6560;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(201, 169, 98, 0.3);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(201, 169, 98, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-hero: clamp(3rem, 10vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === Typography === */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Ambient background effects */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(201, 169, 98, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201, 169, 98, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Noise texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

/* Logo */
.logo-container {
  width: clamp(160px, 25vw, 240px);
  animation: logoReveal 1.2s var(--ease-out-expo) forwards;
  filter: drop-shadow(var(--shadow-glow));
}

.logo-container img {
  width: 100%;
  height: auto;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

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

/* Title */
.hero-title {
  font-size: var(--text-hero);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.3s backwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 400px;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s backwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  margin: var(--space-4) 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.7s backwards;
}

.waveform-bar {
  width: 3px;
  background: linear-gradient(to top, var(--accent-gold), var(--accent-gold-soft));
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}

.waveform-bar:nth-child(1) {
  height: 16%;
  animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
  height: 32%;
  animation-delay: 0.08s;
}

.waveform-bar:nth-child(3) {
  height: 56%;
  animation-delay: 0.16s;
}

.waveform-bar:nth-child(4) {
  height: 80%;
  animation-delay: 0.24s;
}

.waveform-bar:nth-child(5) {
  height: 100%;
  animation-delay: 0.32s;
}

.waveform-bar:nth-child(6) {
  height: 80%;
  animation-delay: 0.40s;
}

.waveform-bar:nth-child(7) {
  height: 56%;
  animation-delay: 0.48s;
}

.waveform-bar:nth-child(8) {
  height: 32%;
  animation-delay: 0.56s;
}

.waveform-bar:nth-child(9) {
  height: 16%;
  animation-delay: 0.64s;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.6);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: var(--accent-gold);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.9s backwards;
}

.cta-button:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.cta-button svg {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.cta-button:hover svg {
  transform: translateY(3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 0.8s var(--ease-out-expo) 1.2s backwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.7;
    transform: scaleY(1.1);
  }
}

/* === Features === */
.features {
  padding: var(--space-24) var(--space-6);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
  display: block;
}

.features-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.features-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Feature card */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.revealed {
  animation: cardIn 0.7s var(--ease-out-expo) forwards;
}

.feature-card:nth-child(1).revealed {
  animation-delay: 0s;
}

.feature-card:nth-child(2).revealed {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3).revealed {
  animation-delay: 0.2s;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-gold-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* === Footer === */
.footer {
  padding: var(--space-20) var(--space-6);
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.footer-logo {
  width: 48px;
  margin: 0 auto var(--space-6);
  opacity: 0.5;
  filter: grayscale(0.5);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.footer-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: var(--space-6);
  }

  .hero-content {
    gap: var(--space-4);
  }

  .logo-container {
    width: 140px;
  }

  .waveform {
    height: 40px;
  }

  .scroll-indicator {
    bottom: var(--space-6);
  }

  .features {
    padding: var(--space-16) var(--space-4);
  }

  .feature-card {
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.15em;
  }

  .cta-button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
  }
}