/* ================================================================
   fy.studio — Global Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg-base:        #000000;
  --bg-card:        #0c0c0c;
  --bg-subtle:      #111111;
  --border:         #1a1a1a;
  --border-hover:   rgba(0, 229, 160, 0.2);
  --text-primary:   #ffffff;
  --text-muted:     #71717a;
  --text-code:      #a1a1aa;
  --accent:         #00e5a0;
  --accent-glow:    rgba(0, 229, 160, 0.06);
  --shadow:         rgba(0, 229, 160, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ── Typography ─────────────────────────────────────────────── */
.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #000000;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-cta {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-cta:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #000000;
}

.btn-disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform 300ms ease;
}

#navbar.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo .logo-fy {
  color: var(--text-primary);
}

.nav-logo .logo-studio {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 200ms ease;
}

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

.nav-cta {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, var(--accent-glow), transparent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 229, 160, 0.3);
  background: rgba(0, 229, 160, 0.06);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  transition: all 200ms ease;
}

.hero-badge:hover {
  background: rgba(0, 229, 160, 0.1);
  border-color: rgba(0, 229, 160, 0.5);
}

/* H1 */
.hero-h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-align: center;
}

.hero-h1 span {
  display: block;
}

/* Subheadline */
.hero-sub {
  max-width: 520px;
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Terminal Card ───────────────────────────────────────────── */
.terminal-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red   { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  margin-left: 4px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 220px;
}

.terminal-line {
  display: block;
  opacity: 0;
  white-space: pre;
}

.terminal-line.visible {
  opacity: 1;
}

.terminal-line .t-muted  { color: var(--text-muted); }
.terminal-line .t-accent { color: var(--accent); }
.terminal-line .t-primary { color: var(--text-primary); }

/* Cursor blink */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Section Shared ─────────────────────────────────────────── */
.section {
  padding: 120px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-header p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-muted);
}

/* ── Feature Cards ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 300ms ease, transform 300ms ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ───────────────────────────────────────────── */
#how-it-works {
  padding: 120px 0;
}

.timeline-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline-line {
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 160, 0.3);
  background: var(--bg-card);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
}

/* ── Testimonials / Marquee ─────────────────────────────────── */
#testimonials {
  padding: 80px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.marquee-track--left {
  animation: marquee-left 35s linear infinite;
}

.marquee-track--right {
  animation: marquee-right 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 300px;
  flex-shrink: 0;
  transition: border-color 300ms ease;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.testimonial-author {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.testimonial-handle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Projects Section ───────────────────────────────────────── */
#projects {
  padding: 120px 0;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 300ms ease, transform 300ms ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.project-card--dimmed {
  opacity: 0.5;
}

.project-card--dimmed:hover {
  transform: none;
  border-color: var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

.badge--active {
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.2);
  color: var(--accent);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.badge--soon {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Sponsors CTA ───────────────────────────────────────────── */
#sponsors-cta {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

#sponsors-cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

#sponsors-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 200ms ease;
}

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

.footer-copy {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .timeline-line {
    display: none;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }

  .step-title { margin-top: 0; }
  .step-desc { max-width: none; }

  .nav-links {
    display: none;
  }

  #sponsors-cta h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-h1 {
    font-size: clamp(36px, 12vw, 60px);
  }

  .section {
    padding: 80px 0;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
