@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-glow: rgba(13, 148, 136, 0.12);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --error: #dc2626;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.site-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
}

@media (max-width: 768px) {
  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }
}

/* ── Main ── */
.site-main {
  flex: 1;
}

.site-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-container--narrow {
  max-width: 720px;
}

/* ── Hero (home) ── */
.site-hero-section {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.site-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(20, 184, 166, 0.06), transparent);
  pointer-events: none;
}

.site-hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .site-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.site-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.site-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.site-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 32rem;
  line-height: 1.7;
}

.site-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.site-hero-card__tiles {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.site-tile {
  width: 48px;
  height: 72px;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border: 2px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.site-tile:nth-child(2) {
  transform: translateY(-8px);
}

.site-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Sections ── */
.site-section {
  padding: 4rem 0;
}

.site-section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.site-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.site-section-title h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-section-title p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 32rem;
}

.site-features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .site-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-feature:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.site-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.site-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Page header (inner pages) ── */
.site-page-head {
  padding: 3rem 0 2rem;
  text-align: center;
}

.site-page-head h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-page-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* ── Content card ── */
.site-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .site-card {
    padding: 1.5rem 1.25rem;
  }
}

.site-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-card h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.site-card h2:first-of-type {
  margin-top: 0;
}

.site-card h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.site-card p,
.site-card li {
  color: var(--text-soft);
}

.site-card ul,
.site-card ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.site-card li {
  margin-bottom: 0.35rem;
}

.site-callout {
  background: var(--accent-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-callout--warn {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.site-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.site-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
}

.site-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ── Buttons ── */
.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.site-btn:active {
  transform: scale(0.98);
}

.site-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.site-btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.site-btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.site-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.site-btn--danger {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.site-btn--danger:hover {
  background: #fee2e2;
  text-decoration: none;
}

/* ── Forms ── */
.site-form label {
  display: block;
  margin-bottom: 1.1rem;
}

.site-form span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.site-form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.site-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  display: none;
}

.site-alert.is-visible {
  display: block;
}

.site-alert--success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.site-alert--error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.55;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__bottom a {
  color: var(--muted);
}
