:root {
  --bg: #08090c;
  --bg-elev: #10131a;
  --surface: #161b24;
  --surface-hover: #1c2330;
  --text: #f3efe6;
  --muted: #9aa3b2;
  --accent: #d4a54a;
  --accent-dim: #b8892e;
  --accent-soft: rgba(212, 165, 74, 0.14);
  --steel: #6ea8ff;
  --steel-dim: #3d7de0;
  --danger: #e55353;
  --ok: #3ecf8e;
  --border: #2a3344;
  --header-h: 4.25rem;
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(212, 165, 74, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(62, 125, 224, 0.08) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #1a1408;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.2rem;
}

nav a,
nav button.link {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

nav a:hover,
nav button.link:hover { color: var(--text); }

nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

nav button.link { color: var(--muted); }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 18rem;
  margin: 0 0.15rem 0 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
}

.account-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.account-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-email {
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-name + .account-email {
  font-size: 0.68rem;
  color: var(--muted);
}

.account-role {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(212, 165, 74, 0.35);
}

.app {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

.app.is-hero {
  max-width: none;
  padding: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

p.lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 42rem;
  line-height: 1.6;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

button.primary {
  background: var(--accent);
  color: #1a1408;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button.primary:hover { background: var(--accent-dim); color: #fff; }

button.secondary,
a.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  margin-right: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

button.secondary:hover,
a.button.secondary:hover { border-color: var(--accent); color: var(--accent); }

.status {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.status.pending { color: #f0c040; }
.status.approved { color: var(--ok); }
.status.denied { color: var(--danger); }
.status.soon { color: #f0c040; border-color: rgba(240, 192, 64, 0.35); }
.status.internal { color: var(--accent); border-color: rgba(212, 165, 74, 0.4); }

.error {
  color: var(--danger);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.steps {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.steps li { margin: 0 0 0.55rem; }

.steps strong { color: var(--text); font-weight: 600; }

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-row h3 { margin: 0; font-size: 1.05rem; font-family: var(--font-display); }

.page-head { margin-bottom: 1.75rem; }

.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 3.5rem;
  overflow: hidden;
}

.hero-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 165, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 74, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 10%, transparent 72%);
}

.hero-orb {
  pointer-events: none;
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -6rem;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 74, 0.16) 0%, transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
  max-width: 14ch;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 0 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.session-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.session-note strong { color: var(--text); }

.hero-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 58rem;
  margin: 3.5rem auto 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.rail-item {
  background: rgba(16, 19, 26, 0.92);
  padding: 1.15rem 1.25rem;
}

.rail-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.rail-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #1a1408;
}

.btn-primary:hover { background: var(--accent-dim); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
  opacity: 0.75;
}

.btn-steel {
  background: var(--steel);
  color: #071018;
}

.btn-steel:hover { background: var(--steel-dim); color: #fff; }

/* --- Softwares catalog --- */
.catalog-section { margin-top: 0; }

.section-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  gap: 1.15rem;
}

.sku-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sku-card:hover {
  border-color: rgba(212, 165, 74, 0.45);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.sku-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.sku-icon svg { width: 1.35rem; height: 1.35rem; }

.sku-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sku-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.sku-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.85rem 0 1rem;
  flex: 1;
}

.sku-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.sku-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.sku-actions { margin-top: auto; }

.catalog-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 1.25rem 0 0;
}

.login-wrap {
  max-width: 26rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.75rem 2rem;
  text-align: center;
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.15rem;
  }

  nav { justify-content: flex-start; }

  .account-chip { max-width: 100%; }

  .hero { padding: 2.5rem 1.15rem 2.25rem; min-height: auto; }

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

  .product-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sku-card { transition: none; }
  .sku-card:hover { transform: none; }
}

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

/* --- Legal pages (Amethyst Yield Terms of Service / Privacy Policy) --- */
.legal-page {
  padding-top: 2rem;
}

.legal-doc {
  max-width: 56rem;
}

.legal-doc .legal-updated {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(212, 165, 74, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legal-doc h2 {
  color: var(--text);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 3rem 0 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.legal-doc h3 {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.72;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 0 0 0.5rem;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--accent-dim);
}

.legal-doc code {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--accent);
  white-space: nowrap;
}

.legal-doc .scope-uri {
  margin: 0.25rem 0 1.25rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow-x: auto;
}

.legal-doc .scope-uri code {
  background: none;
  border: none;
  padding: 0;
}

.legal-footer-links {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.legal-footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-legal {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.product-legal a {
  color: var(--accent);
  text-decoration: none;
}

.product-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
