/* usulnet — Public Website Styles
   Brand: dark-first, #ff6b35 primary, Inter + Space Grotesk */

:root {
  --primary: #ff6b35;
  --primary-light: #ff8c5a;
  --primary-dark: #e55a2b;
  --primary-glow: rgba(255, 107, 53, 0.25);
  --bg: #0a0a0f;
  --bg-card: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #21262d;
  --border: #21262d;
  --border-light: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --success: #22c55e;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

code, pre, .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }

/* ============================== Layout ============================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ============================== Navbar ============================== */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: white;
}

.navbar-logo .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: black;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.navbar-logo span { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; }

.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  padding: 8px 16px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--text-muted); transition: all 0.2s;
}
.navbar-links a:hover { color: white; background: rgba(255,255,255,0.05); }

.navbar-cta {
  display: flex; align-items: center; gap: 12px;
}

/* ============================== Buttons ============================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--border-light); color: white; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: white; border-color: var(--border-light); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ============================== Cards ============================== */

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}

.card-body { padding: 32px; }

.card-highlight { border-color: var(--primary); position: relative; }
.card-highlight::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* ============================== Hero ============================== */

.hero {
  padding: 160px 0 96px; text-align: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 640px; margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px; font-size: 13px;
  background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.2);
  color: var(--primary-light); font-weight: 500; margin-bottom: 24px;
}

/* ============================== Features ============================== */

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card .card-body { padding: 28px; }

.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  background: rgba(255,107,53,0.1); color: var(--primary);
}

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ============================== Pricing ============================== */

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

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card .card-body { padding: 32px; display: flex; flex-direction: column; }

.pricing-edition { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }

.pricing-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }

.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.pricing-price {
  font-size: 42px; font-weight: 800; letter-spacing: -0.02em;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin-bottom: 4px;
}
.pricing-price .currency { font-size: 22px; vertical-align: super; font-weight: 600; }
.pricing-price .period { font-size: 16px; color: var(--text-muted); font-weight: 400; }

.pricing-note { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }

.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before {
  content: '✓'; color: var(--success); font-weight: 700; font-size: 13px;
  flex-shrink: 0; margin-top: 2px;
}
.pricing-features li.disabled { color: var(--text-dim); }
.pricing-features li.disabled::before { content: '—'; color: var(--text-dim); }

/* Popular badge */
.pricing-popular {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 0 0 8px 8px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--primary); color: black;
}

/* ============================== Pricing Calculator ============================== */

.calc-card .card-body { padding: 40px; }

.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.calc-row:last-child { border-bottom: none; }

.calc-label { font-size: 14px; color: var(--text-muted); }
.calc-label strong { color: var(--text); font-weight: 600; }

.calc-control { display: flex; align-items: center; gap: 12px; }

.calc-input {
  width: 80px; text-align: center; padding: 8px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: 8px; color: white; font-size: 16px; font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.calc-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.calc-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  color: var(--text-muted); cursor: pointer; font-size: 18px;
  transition: all 0.15s;
}
.calc-btn:hover { background: var(--border-light); color: white; }

.calc-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px 0 0; margin-top: 8px;
  border-top: 2px solid var(--border);
}

.calc-total-price {
  font-size: 36px; font-weight: 800; color: var(--primary);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.calc-total-price .period { font-size: 16px; color: var(--text-dim); font-weight: 400; }

/* ============================== Footer ============================== */

.footer {
  border-top: 1px solid var(--border); padding: 48px 0;
  margin-top: 32px;
}

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

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

.footer-brand .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: black;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text-muted); }

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

/* ============================== Section headers ============================== */

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ============================== Stat bar ============================== */

.stats-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 40px 0;
}

.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; font-family: 'Space Grotesk', system-ui, sans-serif; }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ============================== Portal (id.usulnet.com) ============================== */

.portal-center {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}

.portal-card { width: 100%; max-width: 420px; }
.portal-card .card-body { padding: 40px; }

.portal-logo {
  text-align: center; margin-bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.portal-logo .logo-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px; color: black;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.portal-logo h1 { font-size: 22px; }
.portal-logo p { font-size: 14px; color: var(--text-muted); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-input {
  width: 100%; padding: 10px 14px; background: var(--bg-elevated);
  border: 1px solid var(--border-light); border-radius: 10px;
  color: white; font-size: 14px; transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: var(--text-dim); }

.form-textarea { resize: vertical; min-height: 100px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ============================== Result / Status ============================== */

.result-card { text-align: center; }
.result-icon { font-size: 56px; margin-bottom: 20px; }
.result-title { font-size: 24px; margin-bottom: 8px; }
.result-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.result-details {
  background: var(--bg-surface); border-radius: 12px; padding: 20px;
  margin-bottom: 28px; text-align: left;
}

.result-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.result-row dt { color: var(--text-dim); }
.result-row dd { color: var(--text); font-weight: 500; }

/* ============================== Alert / Flash ============================== */

.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 20px; display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }

/* ============================== License list (portal) ============================== */

.license-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; background: var(--bg-surface); border-radius: 12px;
  border: 1px solid var(--border); margin-bottom: 12px;
  transition: border-color 0.2s;
}
.license-item:hover { border-color: var(--border-light); }

.license-info { flex: 1; }
.license-id { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.license-edition { font-size: 16px; font-weight: 600; }
.license-meta { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-active { background: rgba(34,197,94,0.1); color: #4ade80; }
.badge-expired { background: rgba(239,68,68,0.1); color: #f87171; }
.badge-biz { background: rgba(59,130,246,0.1); color: #60a5fa; }
.badge-ee { background: rgba(255,107,53,0.1); color: var(--primary); }

/* ============================== Responsive ============================== */

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hero { padding: 120px 0 64px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-bar { gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .calc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
