/* ============================================================
   Overfinity Career — Landing Page Styles
   ============================================================ */

:root {
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --accent: #8b5cf6;
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-alt: #0d0d14;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm { max-width: 800px; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon { font-size: 1.25rem; }
.logo-accent { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%) translateY(-40%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

/* ── Terminal ── */
.hero-terminal {
  max-width: 700px;
  margin: 0 auto;
  background: #0f0f17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161620;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 20px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.terminal-line.visible { opacity: 1; }
.terminal-prompt { color: var(--accent); }
.terminal-cmd { color: var(--primary-light); font-weight: 600; }
.terminal-arg { color: var(--text-muted); }
.terminal-output { color: #4ade80; padding-left: 18px; }

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.feature-card-link {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.feature-card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color 0.2s;
}

.feature-card-link:hover .feature-card-cta {
  color: var(--primary);
}

.features-extra {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--text-muted);
}

/* ── Features Custom (inline) ── */
.features-custom {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.features-custom h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.features-custom > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.features-custom-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.features-custom-pills span {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.features-custom-pills span:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
}

/* ── Value Proposition ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Steps (vertical) ── */
.steps-vertical {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-v {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

/* Vertical connector line */
.step-v:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-v-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-v-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-v-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.step-v-content code {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--primary-light);
  font-family: "SF Mono", "Fira Code", monospace;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: var(--primary); }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Download CTA ── */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(16, 185, 129, 0.05) 100%);
  text-align: center;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.download-badge-icon { font-size: 1.125rem; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.download-card-icon {
  font-size: 2rem;
}

.download-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.download-card-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  transition: opacity 0.2s;
}

.download-card:hover .download-card-btn {
  opacity: 0.9;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links a:not(.btn):not(.lang-toggle) { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .waitlist-input-group { flex-direction: column; }
}
