/* ==========================================================================
   DevinHamby.xyz — site styles
   Tokens → base → components → sections → utilities → responsive
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --font-sans: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "Fira Code", ui-monospace, Consolas, "SF Mono", Menlo, monospace;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;

  /* dark (default) — near-black like the logo, cream text, silver + azure */
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #101318;
  --surface-2: #171b22;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.16);
  --text: #f1ede3;
  --text-2: #b4bac6;
  --text-3: #7f8797;
  --accent: #6aa9ff;
  --accent-2: #dfe4ed;
  --accent-ink: #06101c;
  --accent-soft: rgb(106 169 255 / 0.13);
  --glow: rgb(160 190 235 / 0.35);
  --logo-glow: drop-shadow(0 0 14px rgb(255 255 255 / 0.18));
  --success: #34d399;
  --danger: #fb7185;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -16px rgb(0 0 0 / 0.7);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -20px rgb(0 0 0 / 0.8);
  --term-bg: #0a0c11;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --border: rgb(15 20 32 / 0.09);
  --border-strong: rgb(15 20 32 / 0.18);
  --text: #0f1420;
  --text-2: #4b5567;
  --text-3: #6b7486;
  --accent: #1f5fd6;
  --accent-2: #4b5567;
  --accent-ink: #ffffff;
  --accent-soft: rgb(31 95 214 / 0.1);
  --glow: rgb(31 95 214 / 0.22);
  --logo-glow: none;
  --success: #059669;
  --danger: #e11d48;
  --shadow-1: 0 1px 2px rgb(15 23 42 / 0.06), 0 12px 32px -16px rgb(15 23 42 / 0.18);
  --shadow-2: 0 2px 4px rgb(15 23 42 / 0.06), 0 24px 48px -20px rgb(15 23 42 / 0.25);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.25em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--accent);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
  box-shadow: 0 0 0 0 var(--glow);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px -8px var(--glow);
  filter: brightness(1.05);
}

.btn--ghost {
  --btn-bg: transparent;
}

.btn--sm {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 0.85em 1.5em;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

/* theme toggle icons */
.icon--moon {
  display: none;
}

:root[data-theme="light"] .icon--sun {
  display: none;
}

:root[data-theme="light"] .icon--moon {
  display: block;
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: auto;
  height: 40px;
  filter: var(--logo-glow);
}

:root[data-theme="light"] .brand__mark {
  filter: invert(1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav__list a:not(.btn) {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav__list a:not(.btn):hover,
.site-nav__list a:not(.btn).is-active {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.site-nav__cta {
  margin-left: 8px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
}

.icon--close {
  display: none;
}

.nav-open .icon--menu {
  display: none;
}

.nav-open .icon--close {
  display: block;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(60% 50% at 15% 10%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(40% 40% at 85% 25%, color-mix(in srgb, var(--accent-2) 16%, transparent) 0%, transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.9), transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.9), transparent 95%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 8%, transparent);
  }
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.45em;
}

.gradient-text {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 1.6em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points .icon {
  color: var(--success);
}

.hero__visual {
  position: relative;
}

/* terminal card */
.term {
  background: var(--term-bg);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2), 0 0 80px -30px var(--glow);
  color: #c9d2e3;
  overflow: hidden;
  transform: rotate(-1deg);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.03);
}

.term__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4254;
}

.term__dot:nth-child(1) {
  background: #ff5f57;
}

.term__dot:nth-child(2) {
  background: #febc2e;
}

.term__dot:nth-child(3) {
  background: #28c840;
}

.term__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7d889d;
}

.term__body {
  margin: 0;
  padding: 18px 18px 40px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 15.5em;
}

.term__line {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.term__line.is-shown {
  opacity: 1;
  transform: none;
}

.term__line--cmd {
  color: #e9edf5;
}

.term__line--ok {
  color: #34d399;
  font-weight: 600;
}

.term__line--cmd.is-shown::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  background: #22d3ee;
  vertical-align: text-bottom;
  animation: blink 1s steps(2, start) infinite;
}

.term__line--cmd.is-shown ~ .term__line--cmd.is-shown::after,
.term__line--cmd.is-shown:has(~ .term__line.is-shown)::after {
  display: none;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.hero__chip .icon {
  color: var(--accent);
}

.hero__chip--a {
  top: -16px;
  right: -8px;
  animation: float 6s ease-in-out infinite;
}

.hero__chip--b {
  bottom: -14px;
  left: -10px;
  animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Trust strip -------------------------------------------------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.strip__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip__inner::-webkit-scrollbar {
  display: none;
}

.strip__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.strip__list {
  display: flex;
  gap: 8px;
  list-style: none;
}

.strip__list li {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Sections ----------------------------------------------------- */
.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

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

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.section__lead {
  color: var(--text-2);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Grid + cards ------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

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

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon .icon {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}

.card__list {
  list-style: none;
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.card__list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.card__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.card__list--checks li::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236aa9ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
  transform: translateY(2px);
}

:root[data-theme="light"] .card__list--checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Work / portfolio -------------------------------------------- */
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  padding: 0;
  overflow: hidden;
}

.work-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-card__media img {
  transform: scale(1.03);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}

.work-card__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.work-card .card__list {
  margin-top: 4px;
  margin-bottom: 20px;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 600;
}

.work-card__link .icon {
  transition: transform 0.2s var(--ease);
}

.work-card__link:hover .icon {
  transform: translate(2px, -2px);
}

.work-card__note {
  margin: auto 0 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ---------- Process steps ------------------------------------------------ */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
}

.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}

.step__title {
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}

/* ---------- About -------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* Always a dark panel so the chrome logo looks as designed in both themes. */
.about__card {
  padding: 36px 32px 32px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(90% 55% at 50% 0%, rgb(160 190 235 / 0.16), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 100% 40px,
    #07080b;
  color: #f1ede3;
  text-align: center;
  box-shadow: var(--shadow-2);
}

.about__lockup {
  width: min(100%, 380px);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 26px rgb(255 255 255 / 0.16));
}

.about__facts {
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #b4bac6;
  font-size: 0.95rem;
}

.about__facts li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.about__facts .icon {
  color: var(--success);
}

.about__copy .section__title {
  margin-bottom: 0.6em;
}

.about__copy p {
  color: var(--text-2);
  font-size: 1.05rem;
}

/* ---------- Packages ----------------------------------------------------- */
.card--package {
  padding: 32px 28px;
}

.card--featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background:
    radial-gradient(90% 50% at 50% -10%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.package__for {
  min-height: 3.2em;
}

.card--package .card__list {
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.packages__note {
  text-align: center;
  color: var(--text-2);
  margin: 32px 0 0;
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.faq .section__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-bottom: 0;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}

.faq__item[open] {
  border-color: var(--border-strong);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236aa9ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.25s var(--ease);
}

:root[data-theme="light"] .faq__item summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 20px 18px;
  color: var(--text-2);
}

.faq__body p {
  margin: 0;
}

/* ---------- Contact ------------------------------------------------------ */
.section--contact {
  background:
    radial-gradient(50% 40% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact .section__head {
  text-align: left;
  margin: 0;
}

.contact__intro .section__title {
  margin-bottom: 0.5em;
}

.contact__card {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact__label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.contact__email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact__meta {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.contact__form-wrap {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* ---------- Form --------------------------------------------------------- */
.form {
  display: grid;
  gap: 18px;
}

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

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

.field {
  display: grid;
  gap: 6px;
}

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

.field__opt {
  color: var(--text-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

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

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d889d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

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

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field__error {
  margin: 0;
  min-height: 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.field--trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

.form__consent {
  margin: 0;
  color: var(--text-3);
  font-size: 0.85rem;
  max-width: 40ch;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
}

.form-success {
  text-align: center;
  padding: 24px 8px;
}

.form-success:focus {
  outline: none;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--success);
}

.form-success h3 {
  font-size: 1.4rem;
}

.form-success p {
  color: var(--text-2);
  margin: 0;
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.site-footer__logo {
  display: inline-block;
}

.site-footer__logo img {
  width: 240px;
  height: auto;
  filter: var(--logo-glow);
}

:root[data-theme="light"] .site-footer__logo img {
  filter: invert(1);
}

.site-footer__brand p {
  margin: 16px 0 0;
  max-width: 40ch;
}

.site-footer__heading {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.site-footer__nav ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer__nav a,
.site-footer__contact a {
  color: var(--text);
}

.site-footer__small {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--text-3);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-3);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer--compact .site-footer__bottom {
  border-top: 0;
}

/* ---------- Prose / plain pages ----------------------------------------- */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.2em;
  color: var(--text-2);
}

.prose li {
  margin-bottom: 0.5em;
}

.prose p {
  color: var(--text-2);
}

.prose__meta {
  color: var(--text-3);
  font-size: 0.95rem;
}

.page-plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.plain {
  max-width: 640px;
  padding: 64px 0;
  text-align: center;
}

.plain h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.plain p {
  color: var(--text-2);
}

.plain .btn {
  margin: 4px;
}

.plain__mark {
  width: 260px;
  height: auto;
  margin: 0 auto 24px;
  filter: var(--logo-glow);
}

:root[data-theme="light"] .plain__mark {
  filter: invert(1);
}

.plain__code {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.2em;
}

.plain__list {
  text-align: left;
  display: inline-block;
  color: var(--danger);
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}

/* admin table */
.admin__wrap {
  overflow-x: auto;
  text-align: left;
}

.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin th,
.admin td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin th {
  text-align: left;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
}

.admin__msg {
  white-space: pre-wrap;
  min-width: 280px;
  max-width: 520px;
}

/* ---------- Reveal animation -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.steps .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

.steps .reveal:nth-child(5) {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .term {
    transform: none;
  }
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .form__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__row--3 > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }

  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__list a:not(.btn) {
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .site-nav__cta {
    margin: 10px 0 0;
  }

  .site-nav__cta .btn {
    width: 100%;
    padding: 0.8em;
    font-size: 1rem;
  }

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

  .hero__visual {
    max-width: 560px;
    margin-top: 16px;
  }

  .term {
    transform: none;
  }

  .about,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .faq .section__head {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    height: 34px;
  }

  .brand__name {
    font-size: 0.88rem;
  }

  .brand__sub {
    font-size: 0.52rem;
  }

  .grid--3,
  .grid--2,
  .steps {
    grid-template-columns: 1fr;
  }

  .form__row,
  .form__row--3 {
    grid-template-columns: 1fr;
  }

  .hero__chip {
    display: none;
  }

  .term__body {
    padding-bottom: 20px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .contact__form-wrap {
    padding: 20px;
  }

  .section__head {
    margin-bottom: 28px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 28px;
  }

  .card__badge {
    font-size: 0.7rem;
  }
}

@media print {
  .site-header,
  .hero__bg,
  .hero__visual,
  .site-footer,
  .contact__form-wrap {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
