/* Conex — Landing Page Styles */

:root {
  --bg:        #08091a;
  --surface:   #0f1428;
  --border:    #1e2544;
  --accent:    #4f8ef7;
  --accent-hi: #7ab0ff;
  --text:      #e8eaf6;
  --muted:     #7a82a8;
  --cta:       #4f8ef7;
  --cta-hi:    #3b7ae8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 26, 0.9);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-cta {
  background: var(--cta);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--cta-hi); }

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.3);
  color: var(--accent-hi);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #e8eaf6 0%, #a8b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.hero-form input[type="email"]::placeholder { color: var(--muted); }
.hero-form input[type="email"]:focus { border-color: var(--accent); }
.hero-form button {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.hero-form button:hover { background: var(--cta-hi); transform: translateY(-1px); }
.hero-form button:active { transform: translateY(0); }
.hero-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---- DIVIDER ---- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- FEATURES ---- */
.features {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
  line-height: 1.65;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(79, 142, 247, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.step {
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.35);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-hi);
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- FOUNDER ---- */
.founder {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: inline-block;
  text-align: left;
  max-width: 560px;
  width: 100%;
}
.founder-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.founder-bio {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.founder-cred {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---- CTA ---- */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  min-width: 240px;
  transition: border-color 0.15s;
}
.cta-form input[type="email"]::placeholder { color: var(--muted); }
.cta-form input[type="email"]:focus { border-color: var(--accent); }
.cta-form button {
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cta-form button:hover { background: var(--cta-hi); transform: translateY(-1px); }
.cta-form button:active { transform: translateY(0); }

/* ---- SUCCESS / ERROR STATES ---- */
.success-msg {
  color: #34d399;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}
.error-msg {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .features, .how { padding: 3.5rem 1.25rem; }
  .cta-section { padding: 4rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}