/* ========================
   WAVELENGTH — BRAND INTELLIGENCE
   ======================== */

:root {
  --bg: #0B1628;
  --bg-card: #0F1E36;
  --bg-card-hover: #152742;
  --fg: #E8F0FE;
  --fg-muted: #7A9CC0;
  --accent: #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --tag-bg: rgba(0, 212, 255, 0.1);
  --border: rgba(0, 212, 255, 0.12);
  --danger: #FF6B6B;
  --success: #3DDB8C;
  --warning: #FFB84D;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --max-w: 1160px;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(11, 22, 40, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
}

.wave-1 {
  fill: rgba(0,212,255,0.04);
  animation: wave-drift 8s ease-in-out infinite;
}

.wave-2 {
  fill: rgba(0,212,255,0.03);
  animation: wave-drift 12s ease-in-out infinite reverse;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 120px;
  line-height: 1.4;
}

.stat-div {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === SECTION SHARED === */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* === MONITOR === */
.monitor {
  padding: 100px 32px;
  background: var(--bg);
}

.monitor-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.channel-card:hover {
  border-color: rgba(0,212,255,0.3);
  background: var(--bg-card-hover);
}

.channel-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.channel-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.channel-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.channel-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* === ACTION === */
.action {
  padding: 100px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, #080F1C 100%);
}

.action-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.action-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.action-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-list li strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.action-list li div:last-child {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.action-visual {
  display: flex;
  justify-content: center;
}

.action-terminal {
  width: 100%;
  max-width: 400px;
  background: #0A1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.05);
}

.terminal-bar {
  background: #0D1520;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dot:first-child { background: #FF5F57; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #28CA41; }

.terminal-title {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'DM Mono', 'Courier New', monospace;
  margin-left: 6px;
}

.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.log-entry {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.log-time {
  color: var(--fg-muted);
  min-width: 40px;
  font-size: 11px;
}

.log-msg {
  color: var(--fg-muted);
  line-height: 1.4;
}

.log-alert .log-msg { color: #FF8C8C; }
.log-ok .log-msg { color: #3DDB8C; }

/* === BRIEFING === */
.briefing {
  padding: 100px 32px;
  background: var(--bg);
}

.briefing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.briefing-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 680px;
}

.briefing-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-dim);
}

.briefing-from {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.briefing-date {
  font-size: 13px;
  color: var(--fg-muted);
}

.briefing-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.briefing-section:last-child { border-bottom: none; }

.briefing-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.briefing-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.briefing-item:last-child { margin-bottom: 0; }

.briefing-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
  margin-top: 5px;
}

.briefing-alert .briefing-dot { background: var(--danger); }
.briefing-dot-warn { background: var(--warning); }
.briefing-dot-good { background: var(--success); }
.briefing-dot-neutral { background: var(--fg-muted); }

.briefing-item strong { color: var(--fg); }
.briefing-item a { color: var(--accent); text-decoration: none; }
.briefing-item a:hover { text-decoration: underline; }

/* === PRICING === */
.pricing {
  padding: 100px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, #080F1C 100%);
}

.pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  position: relative;
}

.pricing-popular {
  border-color: var(--accent);
  background: #0D1E35;
  box-shadow: 0 0 40px rgba(0,212,255,0.08);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0B1628;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 48px;
  font-weight: 900;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.price-dollar {
  font-size: 24px;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
  font-weight: 600;
}

.price-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 4px;
}

.plan-desc {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-cta {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* === CLOSING === */
.closing {
  padding: 120px 32px;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}

.closing-wave-art {
  width: 200px;
  margin: 0 auto 40px;
}

.closing-wave-art svg {
  width: 100%;
  height: auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.closing-vision {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--fg);
  font-style: italic;
  line-height: 1.6;
  opacity: 0.7;
}

/* === SIGNUP FORM === */
.signup-form-wrap {
  margin-top: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {}

.signup-input-row {
  display: flex;
  gap: 12px;
  background: rgba(15, 30, 54, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}

.signup-input-row:focus-within {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}

.signup-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
}

.signup-input-row input::placeholder {
  color: var(--fg-muted);
}

.signup-btn {
  background: var(--accent);
  color: #0B1628;
  border: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signup-btn:hover { opacity: 0.88; }
.signup-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.signup-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 22, 40, 0.3);
  border-top-color: #0B1628;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.signup-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.signup-success {
  color: var(--success);
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* === REGISTER FORM === */
.register-wrap {
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.register-form {}

.register-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.register-row input {
  flex: 1;
  min-width: 140px;
  background: rgba(15, 30, 54, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.register-row input::placeholder {
  color: var(--fg-muted);
}

.register-row input:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.register-row-errors {
  min-height: 20px;
  margin-bottom: 6px;
}

.reg-field-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 2px;
}

.register-btn {
  width: 100%;
  background: var(--accent);
  color: #0B1628;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.register-btn:hover:not(:disabled) { opacity: 0.88; }
.register-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.register-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 22, 40, 0.3);
  border-top-color: #0B1628;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.register-privacy {
  color: var(--fg-muted);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

.register-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  display: none;
}

.register-success[style*="flex"] { display: flex; }

.reg-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.reg-success-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 8px;
}

.reg-success-sub {
  color: var(--fg-muted);
  font-size: 14px;
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .channels-grid { grid-template-columns: 1fr; }
  .action-inner { grid-template-columns: 1fr; }
  .action-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-div { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .monitor, .action, .briefing, .pricing, .closing { padding: 80px 20px; }
  .nav { padding: 0 20px; }
  .nav-tagline { display: none; }
  .section-sub { margin-bottom: 40px; }
  .hero-headline { font-size: 36px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
}
