@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f2f4f8;
  --text: #171a21;
  --accent: #0d5c75;
  --accent-2: #ee6c4d;
  --card: #ffffff;
  --border: #dde3ee;
  --ink-soft: #4c5466;
  --highlight: #f7e6c4;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f7f5f1 0%, #eef2f6 60%, #f6f7fb 100%);
  color: var(--text);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 2rem 0;
}

.container.narrow {
  width: min(520px, 90%);
}

.container.wide {
  width: min(1200px, 92%);
}

.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav a,
.nav .link {
  margin-left: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}



.inline {
  display: inline;
}

.link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.card.hero {
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 2.5rem;
  background:
    radial-gradient(circle at 20% 20%, #fef5e4 0%, transparent 45%),
    radial-gradient(circle at 90% 0%, #dceef6 0%, transparent 45%),
    var(--card);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
}

label {
  font-weight: 600;
}

input, button, select, textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 1rem;
  width: 100%;
  background: white;
}

select {
  appearance: none;
  position: relative;
  z-index: 2;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.card {
  position: relative;
  overflow: visible;
}

button, .button {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  width: auto;
}

.button.small {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.button.danger {
  background: #c43131;
}

.alert {
  background: #ffe2e2;
  color: #7d1a1a;
  padding: 0.8rem 1rem;
  border-radius: 6px;
}

.success {
  background: #e6f8ea;
  color: #1d5f2a;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.truncate {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hint {
  color: #5a6270;
}

.hero-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-art {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-art-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hero-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-tile {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.icon-section {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.icon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 14px;
  background: #fff6ed;
  border: 1px solid #f5d9c6;
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.site-footer {
  margin-top: 3rem;
  background: #101827;
  color: #e2e8f0;
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.accent-card {
  background: #eef7f2;
  border: 1px solid #cfe4d8;
  border-radius: 16px;
  padding: 1.4rem;
}

.steps {
  display: grid;
  gap: 0.8rem;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.toggle {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  font-weight: 600;
}

.toggle.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.metric-label {
  color: #5a6270;
  font-size: 0.95rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.chart-card canvas {
  width: 100%;
  display: block;
}

.analytics-bar {
  background: #e9eef6;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.analytics-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

@media (max-width: 960px) {
  .site-header .container,
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav a,
  .nav .link {
    margin-left: 0;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card.hero {
    padding: 2rem;
  }


}

@media (max-width: 720px) {
  .container,
  .container.wide,
  .container.narrow {
    width: min(100%, 92%);
    padding: 1.5rem 0;
  }

  .site-nav {
    position: static;
  }

  .hero-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .icon-section {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .toggle-group {
    gap: 0.4rem;
  }

  table thead {
    display: none;
  }

  table, tbody, tr, td {
    display: block;
    width: 100%;
  }

  table tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: var(--card);
  }

  table td {
    border: none;
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }

  .truncate {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .footer-wrap,
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }


}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .button,
  button {
    width: 100%;
    text-align: center;
  }
}
