/* =============================================
   JODBRAIN STUDIO — COMING SOON
   Premium Dark Theme CSS
   ============================================= */

/* === RESET & BASE ========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg:           #080810;
  --bg-2:         #0e0e1a;
  --bg-card:      #11111f;
  --bg-card-h:    #14142a;
  --border:       rgba(255, 255, 255, 0.07);
  --border-h:     rgba(255, 255, 255, 0.14);

  --accent:       #6366f1;
  --accent-2:     #8b5cf6;
  --accent-glow:  rgba(99, 102, 241, 0.25);
  --accent-grad:  linear-gradient(135deg, #6366f1, #8b5cf6);

  --text-1:       #ffffff;
  --text-2:       rgba(255, 255, 255, 0.65);
  --text-3:       rgba(255, 255, 255, 0.35);

  /* Typography */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-gap:  120px;
  --container:    1200px;

  /* Transitions */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast:    cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === UTILITIES ============================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .br-desktop {
    display: none;
  }
}

/* === FADE-UP ANIMATION ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BADGE ================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.badge-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}

.badge-dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* === NAVIGATION ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent-grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  color: var(--text-1);
  border-color: var(--border-h);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
}

/* === HERO ================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-1);
  background: linear-gradient(170deg, #ffffff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 480px;
}

.brand-intro {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float1 8s ease-in-out infinite;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  top: 20%;
  right: 10%;
  animation: float2 10s ease-in-out infinite;
}

.orb-3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  bottom: 20%;
  left: 10%;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -56%) scale(1.08); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-12px, 16px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(10px, -14px); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  border-radius: 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  margin: 0 auto;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero {
    padding: 100px 20px 80px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .subheadline,
  .brand-intro {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    height: 280px;
    order: -1;
  }
  .orb-1 { width: 200px; height: 200px; }
  .orb-2 { width: 140px; height: 140px; }
  .orb-3 { width: 100px; height: 100px; }
}

/* === BUTTONS =============================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 0 0 var(--accent-glow);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 17px 30px;
  font-size: 16px;
  border-radius: 14px;
  margin-top: 4px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

/* === VALUE SECTION ========================= */
.value-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 20px;
}

.value-section h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 72px;
  max-width: 700px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.value-card {
  background: var(--bg-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.3s var(--ease);
}

.value-card:hover {
  background: var(--bg-card-h);
}

.value-card:hover .card-line {
  width: 48px;
  background: var(--accent);
}

.value-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.7;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-1);
}

.value-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.card-line {
  width: 24px;
  height: 2px;
  background: var(--border-h);
  border-radius: 2px;
  margin-top: 8px;
  transition: width 0.4s var(--ease), background 0.4s;
}

@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .value-section {
    padding: 72px 0;
  }
  .value-section h2 {
    margin-bottom: 48px;
  }
  .value-grid {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .value-card {
    padding: 32px 24px;
  }
}

/* === WAITLIST SECTION ====================== */
.waitlist-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.waitlist-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  pointer-events: none;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.form-header p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 360px;
}

/* Form Inputs */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: var(--text-3);
}

.form-group input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

/* Auto-fill styling */
.form-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #11111f inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}

.form-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 20px 0;
}

.form-success.visible {
  display: flex;
}

.success-check {
  width: 64px;
  height: 64px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  animation: popIn 0.4s var(--ease);
}

@keyframes popIn {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .waitlist-section {
    padding: 72px 0;
  }
  .form-wrapper {
    padding: 40px 24px;
    border-radius: 20px;
  }
}

/* === TRUST SECTION ========================= */
.trust-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.trust-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.trust-quote {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.25;
}

.trust-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 480px;
}

.launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .trust-section {
    padding: 72px 0;
  }
}

/* === FOOTER ================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.footer-tagline {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.footer-email {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--text-1);
}

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

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: var(--text-1);
  border-color: var(--border-h);
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-social {
    order: -1;
  }
}

/* === SCROLL REVEAL DELAY HELPERS =========== */
.value-card:nth-child(1) { --delay: 0.05s; }
.value-card:nth-child(2) { --delay: 0.15s; }
.value-card:nth-child(3) { --delay: 0.25s; }
.value-card:nth-child(4) { --delay: 0.35s; }

/* === SELECTION HIGHLIGHT =================== */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}
