/* ==========================================
   FINITE GRID — Custom Styles
   Dark theme, serif typography, amber accent
   ========================================== */

/* ---- CSS Variables ---- */
:root {
  --bg: #000000;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent: #FFBF00;
  --accent-dim: rgba(255, 191, 0, 0.15);
  --subtle: #333333;
  --font: 'Lora', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

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

/* ---- Section Spacing ---- */
.section-padding {
  padding: 120px 0;
}

.section-padding-sm {
  padding: 80px 0;
}

.section-eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-title-sm {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ==========================================
   HERO
   ========================================== */
#hero {
  position: relative;
  background: var(--bg);
  padding: 0 1rem;
}

.hero-eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* App Store Button */
.btn-appstore {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ==========================================
   CONCEPT / GRID
   ========================================== */
#concept {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-visual {
  text-align: center;
}

.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.grid-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
}

.grid-dot.lived {
  background: var(--text-primary);
  opacity: 0.85;
}

.grid-dot.current {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
}

/* Grid Legend */
.grid-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}

.legend-dot.lived {
  background: var(--text-primary);
  opacity: 0.85;
}

.legend-dot.current {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(255, 191, 0, 0.5);
}

/* Quote */
.quote-block {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  text-align: left;
}

.quote-block p {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.quote-block cite {
  font-family: var(--font);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================
   FEATURES
   ========================================== */
#features {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(255, 191, 0, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================
   SCREENSHOTS
   ========================================== */
#screenshots {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.screenshot-frame {
  overflow: hidden;
  transition: transform 0.4s ease;
}

.screenshot-frame:hover {
  transform: translateY(-4px);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.subsection-title {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* ==========================================
   PRIVACY HIGHLIGHT
   ========================================== */
#privacy-highlight {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   CTA
   ========================================== */
#cta {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

/* ==========================================
   SUPPORT
   ========================================== */
#support {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.support-link {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 191, 0, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.support-link:hover {
  border-color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-developer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-developer a {
  color: var(--text-secondary);
}

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

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-divider {
  margin: 0 0.75rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .section-padding-sm {
    padding: 60px 0;
  }

  .mini-grid {
    max-width: 320px;
  }

  .grid-dot {
    width: 3px;
    height: 3px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .hero-scroll-indicator {
    bottom: 24px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}
