:root {
  --ink: #102a2e;
  --ink-soft: #2a4549;
  --teal: #1f6f78;
  --teal-deep: #0e4a52;
  --copper: #b86b45;
  --copper-soft: #d4a084;
  --mist: #e7eef1;
  --mist-2: #d5e3e7;
  --paper: #f4f8f9;
  --white: #ffffff;
  --line: rgba(16, 42, 46, 0.12);
  --shadow: 0 18px 50px rgba(16, 42, 46, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 120, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 107, 69, 0.14), transparent 55%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 45%, #eef4f6 100%);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 249, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--copper);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 74, 82, 0.25);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 74, 82, 0.25) 0%, rgba(16, 42, 46, 0.78) 58%, rgba(16, 42, 46, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08'%3E%3Ccircle cx='80' cy='80' r='54'/%3E%3Ccircle cx='80' cy='80' r='28'/%3E%3Ccircle cx='80' cy='80' r='6' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 30% 40%, #3f8f96 0%, #0e4a52 42%, #102a2e 100%);
  background-size: cover, 140px 140px, cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(16, 42, 46, 0.55));
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--copper-soft);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
  max-width: 22ch;
}

.hero p {
  margin: 0 0 1.6rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
  animation: riseIn 0.8s ease both;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.category-link {
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: riseIn 0.7s ease both;
}

.category-link:nth-child(2) { animation-delay: 0.05s; }
.category-link:nth-child(3) { animation-delay: 0.1s; }
.category-link:nth-child(4) { animation-delay: 0.15s; }
.category-link:nth-child(5) { animation-delay: 0.2s; }
.category-link:nth-child(6) { animation-delay: 0.25s; }

.category-link:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 120, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
}

.category-link .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.category-link h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.category-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.page-hero {
  padding: 3.25rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.detail-layout,
.form-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }

  .form-layout {
    grid-template-columns: 1fr 0.85fr;
    align-items: start;
  }
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem 1.35rem;
}

.panel h2,
.panel h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.meta-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.meta-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-list strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 111, 120, 0.35);
  border-color: var(--teal);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.help {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert-error {
  background: #fde8e4;
  color: #8a2f1d;
  border: 1px solid #f3c4b8;
}

.alert-success {
  background: #e5f5f1;
  color: #14604f;
  border: 1px solid #bfe4d8;
}

.key-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 111, 120, 0.12), rgba(184, 107, 69, 0.12));
  border: 1px dashed rgba(31, 111, 120, 0.35);
}

.key-box code {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
}

.legal {
  max-width: 48rem;
}

.legal h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.legal h3 {
  margin-top: 1.4rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
}

.site-footer p,
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.wave {
  display: inline-block;
  animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 248, 249, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
