:root {
  --bg: #0b1220;
  --bg-light: #111a2c;
  --surface: #172236;
  --accent: #ff9f1c;
  --accent-dark: #e07b00;
  --accent-soft: #ffedd1;
  --text: #f5f7fb;
  --muted: #9aa6bf;
  --success: #22c55e;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.header {
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.btn {
  padding: 14px 24px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

.btn-outline:hover {
  background: rgba(255, 159, 28, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 48px 0 80px;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: #7a4500;
  font-weight: 700;
  padding: 8px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat {
  background: var(--bg-light);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 24px;
}

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

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature h4 {
  margin-bottom: 12px;
}

.feature p {
  color: var(--muted);
  line-height: 1.5;
}

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-wrapper h2 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

input {
  width: 100%;
  padding: 12px 14px;
  background: #0f1829;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

.helper {
  color: var(--muted);
  font-size: 0.85rem;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-left: 3px solid;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
}

.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0c1424;
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar nav {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.sidebar a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.main {
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--surface);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin-bottom: 12px;
}

.contract-form {
  background: var(--surface);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contract-form h3 {
  margin-bottom: 16px;
}

.footer {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}
