@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #0a0f1a;
  --panel: #081024;
  --muted: #9aa7b6;
  --text: #e7eef9;
  --accent: #ff8c2b;
  --accent-dark: #e76a00;
  --card: #06101a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #071027 100%);
  min-height: 100vh;
}

.topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav {
  background: transparent;
  padding: 0.8rem 1.25rem;
  position: sticky;
  top: 6px;
  z-index: 50;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand .logo {
  height: 34px;
  width: 34px;
}

.brand .brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

header.hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 3rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin: 2rem auto 0;
  max-width: 1200px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-left {
  flex: 1;
  min-width: 320px;
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.hero-right img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

h1 {
  font-size: 2.8rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  line-height: 1.1;
}

h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin: 1.5rem 0 0.75rem 0;
}

h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 1rem 0 0.5rem 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

p {
  color: var(--text);
  margin: 0.75rem 0;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

main.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
}

section {
  margin-bottom: 2rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
}

ul {
  margin: 0.75rem 0 1rem 1.5rem;
  padding: 0;
  color: var(--muted);
}

ul li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(255, 140, 43, 0.15);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(255, 140, 43, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

form {
  margin: 1rem 0;
}

form label {
  display: block;
  margin: 1rem 0 0.4rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

form input,
form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin: 0 0 1rem 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 140, 43, 0.1);
}

form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 43, 0.2);
}

.hidden {
  display: none;
}

.result {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  -webkit-appearance: none;
  appearance: none;
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.metrics-table th,
.metrics-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-table th {
  color: var(--text);
  font-weight: 600;
  width: 45%;
  background: rgba(255, 255, 255, 0.02);
}

.metrics-table td {
  color: var(--muted);
}

.metrics-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.footer {
  background: rgba(10, 15, 26, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--accent-dark);
}

code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-right {
    width: 100%;
  }
  
  main.container {
    padding: 1rem;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
