/* Ferrite — Industrial broadcast aesthetic */
/* Fonts: Space Mono (headings/mono), Instrument Serif (display italic) */

:root {
  --bg:         #080808;
  --surface:    #111111;
  --surface2:   #161616;
  --border:     #1e1e1e;
  --border2:    #2a2a2a;
  --text:       #c8c8c8;
  --muted:      #555;
  --faint:      #2a2a2a;
  --accent:     #e84040;
  --accent-dim: #c03030;
  --green:      #4caf50;
  --mono:       'Space Mono', 'JetBrains Mono', monospace;
  --serif:      'Instrument Serif', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 40px; height: 56px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  flex-shrink: 0;
}

.site-nav {
  display: flex; align-items: center;
  gap: 32px; margin-left: auto;
  font-size: 12px; letter-spacing: 1px;
}

.site-nav a { color: var(--muted); transition: color 0.15s; text-transform: uppercase; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 16px; border-radius: 3px;
  transition: background 0.15s;
}
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  min-height: calc(100vh - 56px);
  padding: 80px 40px 80px;
  max-width: 1200px; margin: 0 auto;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, black 0%, transparent 80%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

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

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400; line-height: 1.05;
  color: #fff; margin-bottom: 24px;
}

.hero-title em {
  font-style: italic; color: var(--accent);
}

.hero-sub {
  font-size: 15px; line-height: 1.7;
  color: var(--muted); margin-bottom: 36px;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-compat {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.hero-compat span {
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 3px 10px; border-radius: 3px;
  color: var(--text); font-size: 11px;
}

/* Terminal */
.hero-terminal {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

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

.terminal-bar span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border2);
}
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }

.terminal-title {
  background: none !important;
  width: auto !important; height: auto !important;
  color: var(--muted); font-size: 12px;
  margin-left: auto;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--text);
  background: var(--surface);
}

.t-green  { color: var(--green); }
.t-accent { color: var(--accent); }
.t-muted  { color: var(--muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 4px;
  font-family: var(--mono); font-size: 13px;
  font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

.btn-ghost {
  background: transparent; color: var(--muted);
  border-color: var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--surface); }

.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 14px; width: 100%; margin-top: 8px; }

/* ─── Section titles ─── */
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1; color: #fff;
  margin-bottom: 48px;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ─── Features ─── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface2); }

.feature-icon {
  font-size: 24px; color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px; color: #fff;
  margin-bottom: 10px; letter-spacing: 0.5px;
}

.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─── Platforms ─── */
.platforms {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.platform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s;
}
.platform-card:hover { border-color: var(--accent); }

.platform-os { font-size: 18px; color: #fff; font-weight: 700; }
.platform-arch { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.platform-note {
  font-size: 12px; color: var(--muted); margin-top: 8px;
}
.platform-note code {
  background: var(--surface2); padding: 2px 8px;
  border-radius: 3px; color: var(--text);
}

/* ─── Pricing ─── */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.pricing-sub {
  font-size: 15px; color: var(--muted);
  max-width: 560px; margin-bottom: 48px; line-height: 1.7;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; cursor: pointer;
  transition: border-color 0.15s;
}
.pricing-card:hover { border-color: var(--border2); }
.pricing-card.featured { border-color: var(--accent); }
.pricing-card.selected { border-color: var(--accent); background: var(--surface2); }

.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 14px; border-radius: 3px;
}

.pricing-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.pricing-price { font-size: 40px; color: #fff; font-weight: 700; }
.pricing-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

.pricing-features {
  list-style: none; margin: 8px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.pricing-features li { font-size: 12px; color: var(--muted); }
.pricing-features li::before { margin-right: 4px; }

/* ─── Register ─── */
.register {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.register-card {
  max-width: 640px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px; padding: 48px;
}

.register-card h2 {
  font-family: var(--serif); font-size: 32px;
  font-weight: 400; color: #fff;
  margin-bottom: 8px;
}

.register-sub { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

.form-group label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.optional { color: var(--faint); }

.form-group input, .form-group select {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 4px; padding: 10px 14px;
  color: var(--text); font-family: var(--mono); font-size: 13px;
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group input::placeholder { color: var(--faint); }

.usage-select { display: flex; flex-direction: column; gap: 8px; }
.usage-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 4px;
  border: 1px solid var(--border2);
  cursor: pointer; font-size: 13px;
  transition: border-color 0.15s;
}
.usage-option:hover { border-color: var(--border2); background: var(--surface); }
.usage-option input[type=radio] { accent-color: var(--accent); }
.usage-option:has(input:checked) { border-color: var(--accent); }

.amount-select {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.amount-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--muted); padding: 8px 16px;
  border-radius: 4px; cursor: pointer;
  font-family: var(--mono); font-size: 12px;
  transition: all 0.15s;
}
.amount-btn:hover { border-color: var(--border2); color: var(--text); }
.amount-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(232,64,64,0.08); }

.custom-amount-input {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 4px; overflow: hidden;
}
.currency-prefix {
  padding: 10px 12px; color: var(--accent); font-size: 14px;
  border-right: 1px solid var(--border2);
}
.custom-amount-input input {
  background: transparent; border: none;
  color: var(--text); font-family: var(--mono); font-size: 14px;
  padding: 10px 14px; width: 120px;
}
.custom-amount-input input:focus { outline: none; }

.form-message {
  padding: 12px 16px; border-radius: 4px;
  font-size: 13px; margin-bottom: 12px;
}
.form-message.success { background: #0d1f0d; border: 1px solid #2a4a2a; color: var(--green); }
.form-message.error   { background: #1f0d0d; border: 1px solid #4a2a2a; color: #ff6666; }
.form-message.info    { background: #0d0d1f; border: 1px solid #2a2a4a; color: #7777ff; }

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

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex; gap: 60px; justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo { font-size: 18px; color: var(--accent); letter-spacing: 3px; margin-bottom: 12px; }
.footer-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

.footer-links { display: flex; gap: 48px; }
.footer-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; }
.footer-links a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--faint);
  border-top: 1px solid var(--border); padding-top: 24px;
}

/* ─── Success page ─── */
.page-success { display: flex; flex-direction: column; min-height: 100vh; }

.success-wrap {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 60px 20px;
}

.success-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; padding: 56px 48px;
  max-width: 580px; width: 100%; text-align: center;
}

.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(76,175,80,0.1); border: 2px solid var(--green);
  color: var(--green); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

.success-card h1 {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  color: #fff; margin-bottom: 8px;
}
.success-sub { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.key-display {
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 6px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}

.key-display code {
  font-size: 16px; color: var(--accent); letter-spacing: 2px;
  word-break: break-all; text-align: left;
}

.copy-btn {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--muted); padding: 8px 16px; border-radius: 4px;
  cursor: pointer; font-family: var(--mono); font-size: 12px;
  white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
}
.copy-btn:hover, .copy-btn.copied { border-color: var(--green); color: var(--green); }

.usage-block { margin-bottom: 32px; text-align: left; }
.usage-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.code-block {
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 4px; padding: 16px 20px;
  font-size: 12px; color: var(--muted); overflow-x: auto;
  white-space: pre;
}

.next-steps { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }

.jingle-note { font-size: 12px; color: var(--muted); }
.jingle-note a { color: var(--accent); }
.error-note { color: #ff6666; font-size: 14px; }
.error-note a { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .hero-terminal { display: none; }
  .pricing-grid, .platform-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .register-card { padding: 32px 24px; }
  .site-header { padding: 0 20px; }
  .container { padding: 0 24px; }
}
