/* 
 * LENS Website Styles
 * Refined, intentional typography
 */

:root {
  --sky-lightest: #F4F8FB;
  --sky-light: #E3EDF5;
  --sky-medium: #C4DCF0;
  --sky-deep: #8FBDD9;
  
  --ink: #0F1419;
  --ink-secondary: #3D4852;
  --ink-muted: #6B7785;
  --ink-faint: #9CA8B4;
  
  --accent: #2E6B8A;
  --accent-hover: #1D4D66;
  
  --white: #FFFFFF;
  --border: #D8E3EC;
  
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 7rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sky-lightest);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* Typography */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

p {
  color: var(--ink-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Layout */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(30, 45, 60, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--space-md) var(--space-xxl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #e8eff5 0%, #dce7f0 40%, #d5dde8 70%, #e0e4ec 100%);
}

/* Lens refraction - prismatic light bands radiating from flare */
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: 
    /* Main prismatic spread - warm to cool gradient arc */
    conic-gradient(
      from 200deg at 72% 25%,
      transparent 0deg,
      rgba(255, 200, 140, 0.35) 20deg,
      rgba(255, 170, 120, 0.4) 40deg,
      rgba(255, 140, 140, 0.3) 60deg,
      rgba(220, 140, 200, 0.25) 80deg,
      rgba(160, 160, 220, 0.3) 100deg,
      rgba(140, 190, 230, 0.35) 120deg,
      rgba(140, 210, 220, 0.3) 140deg,
      transparent 160deg
    ),
    /* Soft warm glow under flare */
    radial-gradient(ellipse 60% 45% at 65% 30%, rgba(255, 210, 170, 0.4) 0%, transparent 60%),
    /* Cool refraction on opposite side */
    radial-gradient(ellipse 50% 40% at 25% 75%, rgba(140, 200, 230, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

/* Primary lens flare - bright source */
.hero::after {
  content: '';
  position: absolute;
  top: 12%;
  right: 18%;
  width: 140px;
  height: 140px;
  background: 
    radial-gradient(circle, 
      rgba(255, 255, 255, 1) 0%, 
      rgba(255, 255, 255, 0.9) 10%,
      rgba(255, 250, 240, 0.6) 25%, 
      rgba(255, 230, 200, 0.3) 45%, 
      transparent 70%
    );
  border-radius: 50%;
  pointer-events: none;
  animation: flareGlow 6s ease-in-out infinite;
}

@keyframes flareGlow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Secondary lens artifacts - ghosting */
.hero .lens-flare {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

/* Ghost reflection - opposite side of main flare */
.hero .lens-flare--1 {
  bottom: 30%;
  left: 22%;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(140, 200, 230, 0.5) 0%, rgba(160, 180, 220, 0.3) 40%, transparent 70%);
}

/* Smaller ghost */
.hero .lens-flare--2 {
  bottom: 40%;
  left: 30%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(200, 220, 255, 0.4) 50%, transparent 70%);
}

/* Anamorphic streak hint */
.hero .lens-flare--3 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 8px;
  border-radius: 100px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.4) 70%, transparent 100%);
  transform: rotate(-25deg);
  filter: blur(1px);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.hero-tagline .accent-word {
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
}

.btn--primary {
  background: linear-gradient(to bottom, #5A9EBE 0%, #3D7A9E 50%, #356A8A 100%);
  color: var(--white);
  box-shadow: 
    0 3px 0 #2D5A7A,
    0 4px 12px rgba(46, 107, 138, 0.35);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 0 #2D5A7A,
    0 6px 20px rgba(46, 107, 138, 0.4);
  color: var(--white);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 0 #2D5A7A,
    0 2px 8px rgba(46, 107, 138, 0.3);
}

.btn--secondary {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid rgba(61, 122, 158, 0.3);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 2px 8px rgba(0,0,0,0.04);
}

.btn--secondary:hover {
  border-color: rgba(61, 122, 158, 0.5);
  color: var(--accent-hover);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 4px 12px rgba(0,0,0,0.06);
}

/* Sections */

section {
  padding: var(--space-xxl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-sm);
}

/* Philosophy */

.philosophy {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.philosophy-intro {
  max-width: 600px;
  margin-bottom: var(--space-xxl);
}

.philosophy-intro h2 {
  margin-bottom: var(--space-md);
}

.philosophy-intro p {
  font-size: 1.15rem;
  line-height: 1.75;
}

.philosophy-intro .attribution {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-top: var(--space-md);
  font-style: italic;
}

.philosophy-intro .attribution a {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.belief {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.belief:last-child {
  border-bottom: 1px solid var(--border);
}

.belief-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--sky-deep);
  line-height: 1;
}

.belief-content h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.belief-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* How It Works */

.how-it-works {
  background: var(--sky-lightest);
}

.practice-flow {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-lg);
}

.practice-flow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sky-deep), transparent);
}

.practice-step {
  padding: var(--space-lg) 0;
  position: relative;
}

.practice-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) - 5px);
  top: calc(var(--space-lg) + 0.35rem);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.practice-step h3 {
  margin-bottom: var(--space-sm);
}

.practice-step p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.step-detail {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--sky-deep);
}

.step-detail p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0;
}

/* Quote */

.quote-section {
  background: linear-gradient(135deg, var(--sky-medium) 0%, var(--sky-light) 100%);
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  position: relative;
}

.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Final CTA */

.final-cta {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta > .container > p {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

/* Footer */

footer {
  background: var(--ink);
  color: var(--sky-light);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-sm);
  display: inline-flex;
}

.footer-brand p {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--sky-light);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* Legal Pages */

.legal-page {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xxl);
}

.legal-page h1 {
  margin-bottom: var(--space-sm);
}

.legal-page .last-updated {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-page p,
.legal-page li {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-page ul {
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Responsive */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .belief {
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
  }
  
  .belief-number {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 var(--space-lg);
  }
  
  .btn {
    width: 100%;
  }
  
  /* Adjust lens flare for mobile */
  .hero::after {
    top: 8%;
    right: 10%;
    width: 100px;
    height: 100px;
  }
  
  .hero .lens-flare--3 {
    width: 80px;
    right: 5%;
  }
}

/* Animations */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeIn 0.8s ease-out;
}

/* Focus */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
