/* turingtest.club - Styles */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Jost (substitute for Futura), Inter */

:root {
  --deep-base: #1a1a2e;
  --primary-blue: #4a90d9;
  --warm-white: #f5f0e8;
  --accent-gold: #e8b84b;
  --muted-gray: #6c757d;
  --sapphire: #4a90d9;
  --ruby: #d94a6b;
  --emerald: #4ad98a;
  --amethyst: #9b59b6;
  --gold: #e8b84b;
  --font-heading: 'Jost', 'Futura', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--deep-base);
  color: var(--warm-white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--deep-base);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232, 184, 75, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 2px solid var(--warm-white);
}

.btn-outline:hover {
  background: rgba(245, 240, 232, 0.1);
  transform: translateY(-3px);
}

/* ========== HOVER LIFT ========== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #1e2a4a 100%);
}

.bokeh-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 184, 75, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(155, 89, 182, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bokeh-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bokeh-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: bokehFloat 8s ease-in-out infinite;
}

.bc1 { width: 200px; height: 200px; background: var(--primary-blue); top: 10%; left: 5%; animation-delay: 0s; }
.bc2 { width: 150px; height: 150px; background: var(--accent-gold); top: 60%; right: 10%; animation-delay: 1s; }
.bc3 { width: 120px; height: 120px; background: var(--amethyst); bottom: 20%; left: 30%; animation-delay: 2s; }
.bc4 { width: 180px; height: 180px; background: var(--primary-blue); top: 30%; right: 25%; animation-delay: 3s; opacity: 0.2; }
.bc5 { width: 100px; height: 100px; background: var(--accent-gold); top: 70%; left: 60%; animation-delay: 4s; }
.bc6 { width: 160px; height: 160px; background: var(--emerald); bottom: 40%; right: 5%; animation-delay: 5s; opacity: 0.15; }
.bc7 { width: 90px; height: 90px; background: var(--ruby); top: 15%; left: 50%; animation-delay: 2.5s; opacity: 0.2; }
.bc8 { width: 130px; height: 130px; background: var(--amethyst); bottom: 10%; right: 35%; animation-delay: 6s; opacity: 0.15; }

@keyframes bokehFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -15px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent-gold);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245, 240, 232, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(245, 240, 232, 0.4);
  border-bottom: 2px solid rgba(245, 240, 232, 0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== ABOUT ========== */
#about {
  padding: 120px 0;
  background: var(--deep-base);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.about-icon {
  margin-bottom: 24px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--warm-white);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--muted-gray);
  line-height: 1.7;
}

/* ========== TUTORIALS - HEX GRID ========== */
#tutorials {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--deep-base) 0%, #141428 100%);
}

.hex-grid {
  max-width: 900px;
  margin: 0 auto;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: -20px;
}

.hex-row-offset {
  padding-left: 0;
  margin-top: -10px;
}

.hex-module {
  width: 220px;
  cursor: pointer;
}

.hex-shape {
  position: relative;
  width: 100%;
  padding-top: 115%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(245, 240, 232, 0.06);
  border: none;
  transition: background 0.3s ease;
}

.hex-module[data-color='sapphire'] .hex-shape { background: rgba(74, 144, 217, 0.12); }
.hex-module[data-color='ruby'] .hex-shape { background: rgba(217, 74, 107, 0.12); }
.hex-module[data-color='emerald'] .hex-shape { background: rgba(74, 217, 138, 0.12); }
.hex-module[data-color='amethyst'] .hex-shape { background: rgba(155, 89, 182, 0.12); }
.hex-module[data-color='gold'] .hex-shape { background: rgba(232, 184, 75, 0.12); }

.hex-module[data-color='sapphire']:hover .hex-shape { background: rgba(74, 144, 217, 0.25); }
.hex-module[data-color='ruby']:hover .hex-shape { background: rgba(217, 74, 107, 0.25); }
.hex-module[data-color='emerald']:hover .hex-shape { background: rgba(74, 217, 138, 0.25); }
.hex-module[data-color='amethyst']:hover .hex-shape { background: rgba(155, 89, 182, 0.25); }
.hex-module[data-color='gold']:hover .hex-shape { background: rgba(232, 184, 75, 0.25); }

.hex-module[data-color='sapphire'] { color: var(--sapphire); }
.hex-module[data-color='ruby'] { color: var(--ruby); }
.hex-module[data-color='emerald'] { color: var(--emerald); }
.hex-module[data-color='amethyst'] { color: var(--amethyst); }
.hex-module[data-color='gold'] { color: var(--gold); }

.hex-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.hex-icon {
  margin-bottom: 12px;
}

.hex-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 6px;
}

.module-count {
  font-size: 0.8rem;
  color: var(--muted-gray);
  font-weight: 400;
}

/* ========== DEMO ========== */
#demo {
  padding: 120px 0;
  background: var(--deep-base);
}

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

.demo-prompt {
  background: rgba(74, 144, 217, 0.08);
  border: 1px solid rgba(74, 144, 217, 0.2);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 32px;
}

.prompt-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.demo-prompt p {
  font-size: 1.15rem;
  color: var(--warm-white);
  font-style: italic;
}

.demo-responses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.response-card {
  background: rgba(245, 240, 232, 0.04);
  border: 2px solid rgba(245, 240, 232, 0.08);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.response-card:hover {
  border-color: var(--accent-gold);
}

.response-card.selected {
  border-color: var(--accent-gold);
  background: rgba(232, 184, 75, 0.08);
}

.response-card.correct {
  border-color: var(--emerald);
  background: rgba(74, 217, 138, 0.08);
}

.response-card.incorrect {
  border-color: var(--ruby);
  background: rgba(217, 74, 107, 0.08);
}

.response-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-gray);
  margin-bottom: 12px;
}

.response-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.8);
}

.demo-result {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(245, 240, 232, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(245, 240, 232, 0.08);
}

.demo-result.visible {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.result-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.result-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--warm-white);
}

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

/* ========== STATS ========== */
#stats {
  padding: 80px 0;
  background: linear-gradient(180deg, #141428 0%, var(--deep-base) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-gray);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ========== COMMUNITY ========== */
#community {
  padding: 120px 0;
  background: var(--deep-base);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.community-card {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.community-hex-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.sapphire-bg { background: var(--sapphire); }
.gold-bg { background: var(--accent-gold); }
.emerald-bg { background: var(--emerald); }

.community-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--warm-white);
}

.community-card p {
  font-size: 0.95rem;
  color: var(--muted-gray);
  line-height: 1.7;
}

/* ========== CTA ========== */
#cta {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #1e2a4a 50%, #1a1a2e 100%);
  overflow: hidden;
}

.cta-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-bokeh .bokeh-circle {
  filter: blur(50px);
  opacity: 0.2;
}

.cta-bc1 { width: 200px; height: 200px; background: var(--primary-blue); top: 10%; left: 10%; animation-delay: 0s; }
.cta-bc2 { width: 150px; height: 150px; background: var(--accent-gold); bottom: 10%; right: 15%; animation-delay: 2s; }
.cta-bc3 { width: 120px; height: 120px; background: var(--amethyst); top: 50%; right: 30%; animation-delay: 4s; }
.cta-bc4 { width: 100px; height: 100px; background: var(--emerald); bottom: 30%; left: 25%; animation-delay: 1s; }

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--muted-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cta-form input[type='email'] {
  padding: 14px 20px;
  border-radius: 6px;
  border: 2px solid rgba(245, 240, 232, 0.15);
  background: rgba(245, 240, 232, 0.06);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 1rem;
  min-width: 280px;
  outline: none;
  transition: border-color 0.3s ease;
}

.cta-form input[type='email']:focus {
  border-color: var(--primary-blue);
}

.cta-form input[type='email']::placeholder {
  color: var(--muted-gray);
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted-gray);
}

/* ========== FOOTER ========== */
#footer {
  padding: 80px 0 40px;
  background: #0d0d1a;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted-gray);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--warm-white);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted-gray);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid,
  .community-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hex-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hex-module {
    width: 160px;
  }

  .demo-responses {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hex-module {
    width: 140px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cta-form {
    flex-direction: column;
    align-items: center;
  }

  .cta-form input[type='email'] {
    min-width: unset;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
