html {
  height: 100%;
}

.hero--compact {
  min-height: 60vh;
  padding: clamp(3rem, 10vh, 6rem) 0;
}

:root {
  --bg: #ffffff;
  --fg: #101010;
  --accent: #1a1a1a;
  --accent-light: #2e2e2e;
  --muted: #5f5f5f;
  --border: #dadada;
  --radius-lg: 28px;
  --radius-md: 18px;
  --space: clamp(1.25rem, 3vw, 2rem);
  --font-hero: clamp(2.5rem, 5vw, 4.5rem);
  --font-h2: clamp(1.8rem, 3vw, 2.4rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

main {
  width: min(1100px, 90%);
  margin: 0 auto var(--space);
  display: grid;
  gap: var(--space);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.07) 0%,
    rgba(0, 0, 0, 0.01) 45%,
    transparent 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  padding: 0 var(--space);
}

.hero__logo {
  width: clamp(72px, 12vw, 120px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.hero__title {
  font-size: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 32ch;
}

.title-rotator {
  display: inline-flex;
  border-right: 3px solid var(--accent);
  padding-right: 0.15em;
  min-height: 1em;
  white-space: nowrap;
}

.hero__subtitle {
  margin: 0;
  max-width: 45ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hero__cta--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.hero__cta--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 1.35rem;
}

.card h2 {
  margin: 0;
  font-size: var(--font-h2);
}

.card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.input-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  background: #f8f8f8;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 160ms ease;
}

.input-group:focus-within {
  border-color: var(--accent);
}

.input-prefix,
.input-suffix {
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.05);
  font-weight: 500;
  color: var(--muted);
}

.input-group input {
  border: none;
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

.input-group input:focus {
  outline: none;
}

.lookup__result {
  margin: 0;
  display: grid;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.lookup__result div {
  display: grid;
  gap: 0.35rem;
}

.lookup__result dt {
  font-weight: 600;
  color: var(--muted);
}

.lookup__result dd {
  margin: 0;
  font-size: 1.05rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status {
  min-height: 1.4em;
  font-weight: 500;
}

.status.is-success {
  color: #007f5f;
}

.status.is-error {
  color: #b00020;
}

.cart__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.cart__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.02);
  gap: 0.75rem;
}

.cart__item span {
  font-family: "Space Grotesk", monospace;
  letter-spacing: 0.02em;
}

.cart__remove {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.cart__summary {
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  font-weight: 600;
}

.field input[type="text"],
.field input[type="file"] {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
}

.checkout__note {
  margin: 0;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.checkout__note code {
  font-family: "Space Grotesk", monospace;
  padding: 0.2rem 0.4rem;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
}

.footer {
  width: min(1100px, 90%);
  margin: 0 auto clamp(2rem, 6vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 720px) {
  .hero__title {
    text-align: center;
  }

  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group {
    width: 100%;
  }

  .card {
    padding: clamp(1.2rem, 5vw, 1.6rem);
  }
}
