:root {
  --bg: #f5f0e6;
  --bg-2: #eadcc0;
  --ink: #1b1b1b;
  --muted: #5f5a52;
  --accent: #c47a2c;
  --accent-2: #24595f;
  --accent-3: #9c2c1c;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 40px rgba(50, 38, 18, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 20% 20%, #fff5dd 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, #ffe6c7 0%, transparent 45%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  overflow-x: hidden;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.page::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f1c07c 0%, transparent 70%);
  top: -120px;
  right: -140px;
}

.page::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #a0c7c9 0%, transparent 70%);
  bottom: -220px;
  left: -160px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

header {
  padding: 28px 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #f4d1a0 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.profile-trigger:focus {
  outline: 2px solid rgba(196, 122, 44, 0.35);
  border-color: rgba(196, 122, 44, 0.65);
}

.profile-caret {
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 100;
}

.profile-menu a,
.profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: rgba(36, 89, 95, 0.12);
}

.profile:hover .profile-menu,
.profile:focus-within .profile-menu,
.profile[data-open="true"] .profile-menu {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f1b064 100%);
  color: #1a120c;
  box-shadow: 0 12px 22px rgba(196, 122, 44, 0.3);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: var(--line);
}

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

main {
  padding: 32px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.hero-card span {
  color: var(--muted);
  font-weight: 500;
}

.section {
  margin-top: 70px;
}

.section h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

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

.callout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(36, 89, 95, 0.12),
    rgba(196, 122, 44, 0.12)
  );
  border: 1px solid var(--line);
}

.callout h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 0 0 10px;
}

footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

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

.form-card {
  max-width: 560px;
  margin: 0 auto;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(196, 122, 44, 0.35);
  border-color: rgba(196, 122, 44, 0.65);
}

.status {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.status.success {
  border-color: rgba(20, 120, 80, 0.4);
  color: #145b45;
  background: rgba(208, 242, 226, 0.75);
}

.status.error {
  border-color: rgba(160, 40, 20, 0.4);
  color: #8f2a1c;
  background: rgba(253, 226, 221, 0.8);
}

.status.info {
  border-color: rgba(36, 89, 95, 0.4);
  color: #1c4c51;
  background: rgba(208, 234, 236, 0.8);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 89, 95, 0.12);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-block {
  background: #14100b;
  color: #f8e8d0;
  padding: 18px;
  border-radius: 16px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.9rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.usage-cell {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 980px) {
  .hero,
  .callout,
  .twin {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  header {
    padding-bottom: 0;
  }
}
