:root {
  --bg: #f2f6f0;
  --bg-soft: #ecf3ea;
  --ink: #142227;
  --muted: #58707b;
  --brand: #0f8b8d;
  --brand-strong: #0a6f70;
  --accent: #f08e52;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --line: #d6e0d7;
  --ok-bg: #e5f5eb;
  --ok-ink: #1f6f45;
  --warn-bg: #fff3df;
  --warn-ink: #815a1a;
  --draft-bg: #e9eef2;
  --draft-ink: #425462;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 18px 50px rgba(19, 35, 41, 0.13);
  --shadow-md: 0 10px 28px rgba(19, 35, 41, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #d8eee2 0%, transparent 34%),
    radial-gradient(circle at 86% 20%, #f9e2d0 0%, transparent 36%),
    linear-gradient(150deg, #f9fbf8 0%, #edf3ec 100%);
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(19, 35, 41, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 41, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 75%);
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(214, 224, 215, 0.88);
  background: rgba(248, 251, 248, 0.82);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--brand), #16a8ab);
  box-shadow: 0 0 0 6px rgba(15, 139, 141, 0.16);
}

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

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle::before {
  transform: translateY(-5px);
}

.menu-toggle::after {
  transform: translateY(5px);
  margin-top: -2px;
}

.site-header.nav-open .menu-toggle span {
  opacity: 0;
}

.site-header.nav-open .menu-toggle::before {
  transform: translateY(2px) rotate(45deg);
}

.site-header.nav-open .menu-toggle::after {
  transform: translateY(0) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #f4ffff;
  background: linear-gradient(130deg, var(--brand), #12a1a3);
  box-shadow: 0 11px 24px rgba(15, 139, 141, 0.3);
}

.btn-danger {
  color: #fff4f4;
  background: linear-gradient(130deg, #b53f3f, #d65555);
  box-shadow: 0 11px 24px rgba(181, 63, 63, 0.28);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.page-main {
  padding: 62px 0 80px;
}

.page-hero {
  display: grid;
  gap: 24px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid #b9dfd7;
  background: #e8f6f1;
  color: #226b69;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.page-subtitle {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  max-width: 58ch;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.quick-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.quick-stat strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.section {
  margin-top: 56px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 62ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.22rem;
  margin: 8px 0;
}

.card p {
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 139, 141, 0.3);
  background: linear-gradient(145deg, rgba(15, 139, 141, 0.16), rgba(240, 142, 82, 0.22));
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cdd8cd;
  background: #f6faf6;
  color: #3c4f58;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 12px;
}

.timeline li {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.time-dot {
  margin-top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), #11a4a7);
  box-shadow: 0 0 0 5px rgba(15, 139, 141, 0.16);
}

.timeline h4 {
  font-family: "Sora", sans-serif;
  font-size: 1.04rem;
  margin-bottom: 2px;
}

.timeline p {
  color: var(--muted);
}

.cta-band {
  background: linear-gradient(130deg, #12313a, #1b4f5e);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 34px);
  color: #f0fbff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-band h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 3.1vw, 2.05rem);
  margin-bottom: 4px;
}

.cta-band p {
  color: #b8d4dd;
}

.cta-band .btn {
  background: linear-gradient(130deg, var(--accent), #f6a66f);
  color: #1f3138;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.surface-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.surface-panel h3,
.surface-panel h4 {
  font-family: "Sora", sans-serif;
  margin-bottom: 8px;
}

.surface-panel p,
.surface-panel li {
  color: var(--muted);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 18px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: #3f525c;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.project-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-live {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.status-planning {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.status-draft {
  background: var(--draft-bg);
  color: var(--draft-ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 16px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  border: 1px solid #cad8ce;
  background: #fcfffc;
  border-radius: 12px;
  padding: 10px 12px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.notice {
  border-radius: 12px;
  border: 1px solid #bae6c7;
  background: #edfaf1;
  color: #225d3f;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-weight: 600;
}

.notice-error {
  border-color: #f2b8b8;
  background: #fff2f2;
  color: #7f2727;
}

.notice-info {
  border-color: #b9d8f2;
  background: #eef6ff;
  color: #27507f;
}

.auth-shell {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 28px);
}

.auth-card h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.auth-card .form-grid {
  margin-bottom: 0;
}

.auth-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.auth-links a {
  color: var(--brand-strong);
  font-weight: 700;
}

.account-overview {
  display: grid;
  gap: 14px;
}

.account-row {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 12px;
}

.account-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 4px;
}

.account-value {
  font-weight: 700;
}

.inline-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

[data-auth][hidden],
[data-auth-cta][hidden] {
  display: none !important;
}

.site-footer {
  border-top: 1px solid rgba(20, 34, 39, 0.12);
  margin-top: 66px;
  padding: 24px 0 38px;
  color: #61737d;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .quick-stats,
  .project-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 65px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: grid;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .site-header.nav-open .main-nav {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    border-bottom: 0;
    border-radius: 10px;
    padding: 10px 10px;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: #edf7f7;
  }

  .nav-cta {
    justify-self: end;
    padding: 10px 14px;
  }
}

@media (max-width: 720px) {
  .page-main {
    padding-top: 44px;
  }

  .card-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
