/* ============================================================
   TradeTech Pulse — Landing Page Styles
   tradetechpulse.com
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg-base: #0C1829;
  --bg-glow: #162B4E;          /* radial gradient centre — "brighter" navy */
  --bg-surface: #132340;       /* card background */
  --bg-input: #0E1D33;         /* input field */

  --accent: #FFB800;
  --accent-hover: #E6A500;
  --accent-dim: rgba(255, 184, 0, 0.12);
  --accent-border: rgba(255, 184, 0, 0.22);
  --accent-glow: rgba(255, 184, 0, 0.22);

  --text-primary: #EDF2F7;
  --text-secondary: #7A9DC4;
  --text-dim: #3B5C7A;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-input: rgba(255, 255, 255, 0.11);

  --radius-card: 20px;
  --radius-input: 10px;
  --radius-btn: 10px;
  --radius-badge: 999px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container-max: 1120px;
  --container-pad: 40px;
}

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

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

/* ---------- BASE ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text-primary);

  /* Richer background: radial spotlight lifts centre off flat black */
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, var(--bg-glow) 0%, transparent 80%);
}

/* Signature element: faint dot grid — evokes a cartographic map/coordinate system */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 184, 0, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ---------- NAV ---------- */
.nav {
  position: relative;
  z-index: 10;
  padding: 30px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-brand {
  color: var(--text-primary);
}

.logo-pulse {
  color: var(--accent);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  outline: none;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: start;
}

/* ---------- HERO LEFT ---------- */
.hero-left {
  padding-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-badge);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.015em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: badge-pulse 2.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.text-yellow {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 430px;
  margin-bottom: 52px;
}

/* ---------- STATS ---------- */
.stats-row {
  display: flex;
  gap: 44px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ---------- BENEFIT LIST ---------- */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Checkmark: inline SVG via data URI */
.benefit-list li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23FFB800' fill-opacity='0.14'/%3E%3Cpolyline points='5,10.5 8.5,14 15,7' stroke='%23FFB800' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- SIGNUP CARD ---------- */
.signup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  position: relative;
}

/* Top accent hairline */
.signup-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  border-radius: 999px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

/* ---------- FORM ---------- */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

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

.form-input:focus {
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.form-input.is-error {
  border-color: rgba(255, 100, 100, 0.5);
}

.form-error {
  font-size: 0.8125rem;
  color: #FF7A7A;
  margin-top: 7px;
  line-height: 1.4;
}

/* ---------- CTA BUTTON ---------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #0C1829;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  margin-bottom: 13px;
  transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

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

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.is-success {
  background: #2A6B4D;
  color: #9EECC6;
  cursor: default;
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------- CARD DIVIDER ---------- */
.card-rule {
  height: 1px;
  background: var(--border-subtle);
  margin: 30px 0;
}

/* ---------- WHAT'S INSIDE ---------- */
.inside-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.inside-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.inside-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-domain {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-domain:hover,
.footer-domain:focus-visible {
  color: var(--text-secondary);
  outline: none;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet: stack layout */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-sub {
    max-width: 100%;
  }
}

/* Mobile: tighten spacing */
@media (max-width: 600px) {
  :root {
    --container-pad: 22px;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .signup-card {
    padding: 32px 24px;
  }

  .signup-card::after {
    left: 28px;
    right: 28px;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 1.9rem;
  }

  .stats-row {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
