/* ==========================================================================
   Daylight Landing Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-base: #FAF7F2;
  --color-surface: #F1E9DF;
  --color-ink: #1E1A17;
  --color-muted: #6F645A;
  --color-accent: #FFB27A;
  --color-secondary-accent: #B8E1D2;

  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Space Grotesk', sans-serif;

  /* Type Scale (fluid) */
  --text-sm: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  --text-base: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(2rem, 1.5rem + 1.5vw, 3rem);

  /* Spacing */
  --space-section: clamp(56px, 8vw, 96px);
  --space-lg: clamp(32px, 5vw, 48px);
  --space-md: clamp(16px, 3vw, 24px);
  --space-sm: clamp(8px, 2vw, 16px);

  /* Layout */
  --max-width: 1200px;
  --radius: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-slow: 400ms ease;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-base);
  background-image:
    linear-gradient(135deg, rgba(255, 178, 122, 0.08) 0%, rgba(184, 225, 210, 0.08) 100%);
  min-height: 100vh;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  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;
  z-index: 1000;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875em 1.75em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-base);
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(30, 26, 23, 0.2);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 26, 23, 0.05);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

.header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.header__cta {
  padding: 0.625em 1.25em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-section) 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-ink);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Orb */
.orb {
  position: relative;
  width: clamp(240px, 30vw, 400px);
  height: clamp(240px, 30vw, 400px);
}

.orb__glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 178, 122, 0.4) 0%,
    rgba(184, 225, 210, 0.2) 50%,
    transparent 70%
  );
  filter: blur(40px);
  animation: orb-pulse 4s ease-in-out infinite;
}

.orb__core {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--color-accent) 0%,
    #FFD4A8 30%,
    var(--color-secondary-accent) 70%,
    #8BC9B8 100%
  );
  box-shadow:
    inset -20px -20px 40px rgba(30, 26, 23, 0.1),
    inset 20px 20px 40px rgba(255, 255, 255, 0.3),
    0 20px 60px rgba(255, 178, 122, 0.3);
}

.orb__grain {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

@keyframes orb-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb__glow {
    animation: none;
  }
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    order: 2;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
  }

  .orb {
    width: clamp(200px, 50vw, 300px);
    height: clamp(200px, 50vw, 300px);
  }
}

/* --------------------------------------------------------------------------
   Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered hero animations */
.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 100ms; }
.hero .reveal:nth-child(3) { transition-delay: 200ms; }
.hero__visual.reveal { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
