:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7faff 0%, #eef2ff 40%, #ffffff 100%);
  color: #0f172a;
}

.hero {
  background: radial-gradient(circle at 10% 20%, #0ea5e9 0%, #312e81 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 1.6rem clamp(2.5rem, 5vw, 4rem);
}

.hero__content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  margin: 0 auto 1.8rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  background: #f0f9ff;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.3);
}

.container {
  max-width: 1080px;
  margin: -3rem auto 4rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
}

.panel__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  color: #111827;
}

.panel__intro {
  margin-top: 0.4rem;
  color: #475569;
  font-size: 0.98rem;
}

.calc-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 1.6rem;
}

.calc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.calc-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: #1e293b;
}

.field {
  margin-bottom: 1rem;
}

.field-group {
  display: flex;
  gap: 0.85rem;
}

.field-group .field {
  flex: 1;
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7deea;
  padding: 0.65rem 0.85rem;
  font-size: 0.98rem;
  background: #f8fafc;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #fff;
}

.btn {
  width: 100%;
  margin-top: 0.5rem;
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f8fafc;
}

.calc-table th,
.calc-table td {
  border: 1px solid #e2e8f0;
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.calc-table th {
  width: 58%;
  background: #eff4ff;
  color: #1e293b;
  font-weight: 600;
}

.calc-table td {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color: #0f172a;
  font-size: 0.96rem;
}

.drop-zone {
  margin-top: 1.2rem;
  border: 1px dashed #38bdf8;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  color: #0f172a;
  background: rgba(56, 189, 248, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drop-zone.is-active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.2);
}

.hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.source-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
}

.source-list li {
  margin-bottom: 0.5rem;
}

.footer {
  text-align: center;
  color: #475569;
  padding: 2.4rem 1rem 3rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .field-group {
    flex-direction: column;
  }
  .hero__content {
    text-align: left;
  }
  .panel {
    padding: 1.4rem;
  }
}
