/* UFOO Landing Page - Terminal Hacker Aesthetic */

:root {
  /* Backgrounds */
  --bg-page: #0C0C0C;
  --bg-card: #1A1A1A;
  --bg-surface: #111111;
  --bg-hover: #252525;

  /* Primary Accent */
  --cyan: #22D3EE;
  --green: #22C55E;

  /* Secondary Accents */
  --orange: #F97316;
  --purple: #A78BFA;
  --blue: #3B82F6;
  --red: #EF4444;
  --yellow: #F59E0B;

  /* Neutral */
  --text-primary: #E5E5E5;
  --text-secondary: #737373;
  --text-dim: #525252;
  --text-muted: #3B3B3B;
  --border: #1F1F1F;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Utility Classes */
.u { color: var(--cyan); font-weight: 600; }
.green { color: var(--green); }
.orange { color: var(--orange); }
.purple { color: var(--purple); }
.white { color: #fff; }
.dim { color: var(--text-dim); }
.success { color: var(--green); }
.highlight { color: var(--cyan); }
.cmd { color: var(--text-secondary); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 700;
}

.logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--green);
  color: var(--bg-page);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 160px 40px 100px;
  background: var(--bg-page);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.ascii-banner {
  color: var(--cyan);
  font-size: 12px;
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 100px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 4px;
}

.badge span:last-child {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.hero-title {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Terminal */
.terminal {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-page);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 6px;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  color: var(--text-dim);
  font-size: 12px;
}

.terminal-content {
  padding: 20px 24px;
}

.terminal-content .line {
  font-size: 14px;
  line-height: 2;
}

.terminal-content .spacer {
  height: 8px;
}

.terminal-content .prompt {
  color: var(--text-dim);
  margin-right: 8px;
}

.hero-note {
  color: var(--text-dim);
  font-size: 13px;
}

/* Sections Common */
section {
  padding: 100px 40px;
}

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

.section-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Features Section */
.features {
  background: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
}

.feature-label {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.feature-label.green { color: var(--green); }
.feature-label.purple { color: var(--purple); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.feature-code {
  background: var(--bg-page);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.feature-code code {
  display: block;
  line-height: 2;
}

.feature-note {
  margin-top: 16px;
  font-size: 13px !important;
  color: var(--text-dim) !important;
}

/* Getting Started */
.getting-started {
  background: var(--bg-page);
}

.steps {
  display: flex;
  gap: 80px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  max-width: 400px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 auto 20px;
}

.step-number.active {
  background: var(--green);
  color: var(--bg-page);
}

.step-code {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.step-code:hover {
  background: var(--bg-hover);
}

.step-code.copied {
  background: var(--green);
  color: var(--bg-page);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Why Section */
.why {
  background: var(--bg-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 16px;
}

.why-icon {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* CTA Section */
.cta {
  background: var(--bg-page);
  text-align: center;
}

.cta h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta > p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 24px 40px;
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 32px;
  transition: background 0.2s;
}

.cta-box:hover {
  background: var(--bg-hover);
}

.cta-box.copied {
  background: var(--green);
}

.cta-box.copied * {
  color: var(--bg-page) !important;
}

.cursor {
  width: 14px;
  height: 28px;
  background: var(--cyan);
  animation: blink 1s infinite;
}

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

.cta-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.cta-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--text-primary);
}

.cta-link.primary {
  color: var(--cyan);
}

/* Footer */
.footer {
  background: var(--bg-surface);
  padding: 60px 40px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 16px;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: var(--bg-card);
  max-width: 1100px;
  margin: 40px auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 42px;
  }

  .section-header h2,
  .cta h2 {
    font-size: 36px;
  }

  .features-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 48px;
  }

  .footer-main {
    flex-direction: column;
    gap: 48px;
  }

  .footer-nav {
    gap: 48px;
  }

  .ascii-banner {
    font-size: 8px;
  }
}

@media (max-width: 600px) {
  .header-content {
    padding: 0 20px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  section {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .ascii-banner {
    display: none;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
