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

:root {
  --navy: #1B2A4A;
  --orange: #E03A00;
  --navy-light: #2A3E5A;
  --green: #3B6D11;
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --light: #F2F1EE;
  --mid: #888780;
  --dark: #1C1B19;
  --border: rgba(0,0,0,0.1);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 16px;
  color: var(--mid);
  font-weight: 400;
}
.nav-links a:hover { color: var(--dark); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cta:hover { background: #253b6a; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* HERO */
.hero {
  background: var(--white);
  padding: 5rem 2rem 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 868px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(224,58,0,0.12);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero-h1 em {
  color: var(--orange);
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}
.hero-pill {
  font-size: 12px;
  color: var(--mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.btn-primary {
  font-size: 14px;
  font-weight: 500;
  background: var(--orange);
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #c93200; }
.btn-secondary {
  font-size: 14px;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 12px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: rgba(0,0,0,0.25); color: var(--dark); }

/* SECTION */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

.s-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.s-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 640px;
}
.s-body {
  font-size: 16px;
  color: #555;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* VALUE CARDS */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.value-title { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }
.value-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* HOW IT WORKS */
.how-steps { display: flex; flex-direction: column; }
.how-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.how-step:last-child { border-bottom: none; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.step-title { font-size: 16px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.step-desc { font-size: 14px; color: #555; line-height: 1.7; }
.step-badge {
  display: inline-block;
  font-size: 12px;
  background: #FAECE7;
  color: #993C1D;
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 8px;
}
.step-badge-blue { background: #E6F1FB; color: #0C447C; }

/* CLUSTERS */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.cluster-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--white);
}
.cluster-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 1rem; }
.cluster-name { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }
.cluster-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 0.75rem; }
.cluster-rule {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* AI ENGINE */
.intel-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 2rem; }
.intel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.intel-accent { height: 3px; }
.intel-body { padding: 1.5rem; }
.intel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.intel-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.intel-icon svg { width: 16px; height: 16px; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intel-name { font-size: 15px; font-weight: 500; color: var(--navy); }
.intel-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
}
.intel-desc { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 1rem; }
.intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.itag {
  font-size: 12px;
  color: #666;
  background: var(--off-white);
  border-radius: 20px;
  padding: 3px 12px;
}

/* WHY IT WORKS */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.why-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.why-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--navy);
}
.why-icon svg { width: 28px; height: 28px; stroke: var(--navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-title { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.why-desc { font-size: 13px; color: #666; line-height: 1.65; }

/* FOUNDER */
.founder-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  max-width: 720px;
}
.founder-av {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.founder-name { font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 3px; }
.founder-title { font-size: 13px; color: var(--orange); margin-bottom: 0.75rem; }
.founder-bio { font-size: 14px; color: #555; line-height: 1.75; }
.founder-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.fpill {
  font-size: 12px;
  color: #555;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  background: var(--white);
}

/* JOIN BAND */
.join-band {
  background: var(--off-white);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}
.join-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.join-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.join-sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 640px;
}
.join-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.join-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.join-card-title svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.join-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.join-btn {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.join-btn-primary { background: var(--orange); color: var(--white); }
.join-btn-primary:hover { background: #c93200; }
.join-btn-ghost {
  border: 1px solid var(--border);
  color: var(--navy);
}
.join-btn-ghost:hover { border-color: rgba(0,0,0,0.25); color: var(--dark); }

/* FOOTER */
footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
}
.footer-brand span { color: var(--orange); }
.footer-email {
  font-size: 13px;
  color: var(--mid);
}
.footer-email a:hover { color: var(--navy); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero { padding: 3.5rem 1.25rem 0; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-av { display: none; }
  footer { padding: 1.25rem; }
}

/* RESET BUTTON */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button.btn-primary, button.btn-secondary {
  border: none;
  font-family: inherit;
}

button.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
}

/* MODAL / DIALOG STYLES */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: var(--white);
  color: var(--dark);
  overflow: hidden;
  margin: auto;
}

dialog::backdrop {
  background: rgba(12, 20, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off-white);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--mid);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.15s, transform 0.1s;
}

.modal-close:hover {
  color: var(--dark);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  min-height: 48px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 58, 0, 0.25);
  background: var(--off-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

/* Validation UI feedback */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

.error-message {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}

.submit-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--orange);
  color: var(--white);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: #c93200;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  background: var(--off-white);
  color: var(--mid);
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  border-top-color: var(--navy);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success View */
.success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(59, 109, 17, 0.15);
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.success-message {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 320px;
}

/* Dialog Animation */
dialog[open] {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ECOSYSTEM BADGE */
.hero-ecosystem-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
  animation: float 6s ease-in-out infinite;
}
.ecosystem-logo-container {
  width: 100%;
  max-width: 280px;
  background: #0f0b17; /* dark base matching LvlUp Ventures brand image */
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecosystem-logo {
  max-width: 100%;
  height: auto;
  display: block;
}
.ecosystem-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(224, 58, 0, 0.35);
}
.ecosystem-text {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
