/* ============================================================
   Vert Studio 3D — design tokens & primitives (LIGHT MODE)
   Brand gradient: #00BBFF → #734FFC → #E300FF (cyan → purple → magenta)
   Headings & primary controls use firm, hard-edged offset shadows.
   ============================================================ */

:root {
  /* Light palette */
  --bg: #ffffff;
  --bg-1: #fafafc;
  --bg-2: #f4f4f7;
  --bg-3: #ebebf0;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --border: #e6e6ec;
  --border-strong: #c8c8d2;
  --text: #0a0a14;
  --text-2: #4a4a55;
  --muted: #777783;

  /* Brand gradient — sRGB fallback for older browsers */
  --c-cyan:    #00BBFF;
  --c-purple:  #734FFC;
  --c-magenta: #E300FF;
  --accent-grad:      linear-gradient(120deg, var(--c-cyan) 0%, var(--c-purple) 50%, var(--c-magenta) 100%);
  --accent-grad-soft: linear-gradient(120deg, rgba(0,187,255,.12), rgba(115,79,252,.12) 50%, rgba(227,0,255,.12));

  /* Firm shadows — small offset, zero blur, no spread (text-shadow has none) */
  --tshadow-sm: 2px 2px 0 rgba(115, 79, 252, 0.18);
  --tshadow-md: 3px 3px 0 rgba(115, 79, 252, 0.20);
  --tshadow-lg: 5px 5px 0 rgba(115, 79, 252, 0.22);
  --bshadow-sm: 3px 3px 0 rgba(10, 10, 20, 0.10);
  --bshadow-md: 4px 4px 0 rgba(10, 10, 20, 0.12);
  --bshadow-purple: 4px 4px 0 rgba(115, 79, 252, 0.18);
  --bshadow-cyan:   4px 4px 0 rgba(0, 187, 255, 0.18);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1180px;
  --container-narrow: 760px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Use perceptual interpolation when available — eliminates the muddy/dark
   midpoint between cyan and purple that plain sRGB produces, which is the
   "edge dip" you saw. Supported in Chrome 111+, Firefox 113+, Safari 16.4+. */
@supports (background: linear-gradient(in oklch, red, blue)) {
  :root {
    --accent-grad:      linear-gradient(120deg in oklch, var(--c-cyan), var(--c-purple), var(--c-magenta));
    --accent-grad-soft: linear-gradient(120deg in oklch, rgba(0,187,255,.16), rgba(115,79,252,.16), rgba(227,0,255,.16));
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 .4em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.04;
  text-shadow: var(--tshadow-md);
}
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  text-shadow: var(--tshadow-sm);
}
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--text-2); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

::selection { background: rgba(115, 79, 252, .25); color: var(--text); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: var(--container-narrow); }
.muted { color: var(--muted); }
.prewrap { white-space: pre-wrap; }
.sr-only { position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

/* Gradient text — used for accent words. Drop-shadow gives the firm shadow
   while the text fill stays gradient. */
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 rgba(115, 79, 252, 0.18));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .25s var(--ease), border-color .15s var(--ease), color .15s;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  color: var(--text);
}
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--sm { padding: 7px 12px; font-size: .85rem; }

.btn--primary {
  color: #ffffff;
  background: var(--accent-grad);
  background-size: 180% 100%;
  background-position: 0% 0%;
  border-color: transparent;
  box-shadow: var(--bshadow-purple);
}
.btn--primary:hover {
  background-position: 100% 0%;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(115, 79, 252, 0.22);
  color: #ffffff;
}
.btn--primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(115, 79, 252, 0.20);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--bshadow-sm);
}
.btn--ghost:hover {
  background: var(--surface-2);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(10, 10, 20, 0.12);
}
.btn--ghost:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(10, 10, 20, 0.10);
}

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form--narrow { max-width: 520px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-weight: 600; color: var(--text); font-size: .9rem; }
.form__hint { color: var(--muted); font-size: .82rem; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.form__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.form--inline { display: inline-flex; align-items: center; gap: 8px; flex-direction: row; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-purple);
  box-shadow: 3px 3px 0 rgba(115, 79, 252, 0.16);
  transform: translate(-1px, -1px);
}
input[type=file] {
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
}
textarea { resize: vertical; min-height: 110px; }
select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 18px; box-shadow: var(--bshadow-sm); }
.alert--error { background: #fff1f2; border-color: #fda4af; color: #9f1239; }
.alert--ok    { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.alert ul { margin: 6px 0 0 18px; }

/* ---------- status pills ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  box-shadow: 2px 2px 0 rgba(10, 10, 20, 0.06);
}
.status-pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
}
.status--received          { color: #1e293b; }
.status--received::before          { background: #64748b; }
.status--in_evaluation     { color: #92400e; }
.status--in_evaluation::before     { background: #f59e0b; }
.status--awaiting_response { color: #b91c1c; }
.status--awaiting_response::before { background: #ef4444; }
.status--in_production     { color: #1d4ed8; }
.status--in_production::before     { background: var(--c-cyan); }
.status--print_completed   { color: #6b21a8; }
.status--print_completed::before   { background: var(--c-purple); }
.status--shipped           { color: #a21caf; }
.status--shipped::before           { background: var(--c-magenta); }
.status--arrived           { color: #166534; }
.status--arrived::before           { background: #22c55e; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); font-size: .72rem; color: var(--muted); }
.badge--ok   { color: #065f46; border-color: #6ee7b7; background: #ecfdf5; }
.badge--warn { color: #9f1239; border-color: #fda4af; background: #fff1f2; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--detail { grid-template-columns: 1.4fr 1fr; gap: 28px; }
.grid--narrow { max-width: var(--container-narrow); margin: 0 auto; }

@media (max-width: 880px) {
  .grid--2, .grid--3, .grid--detail { grid-template-columns: 1fr; }
}

/* ---------- back link / misc ---------- */
.back-link { display: inline-block; color: var(--muted); margin-bottom: 20px; font-size: .9rem; }
.back-link:hover { color: var(--text); }

.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-shadow: var(--tshadow-sm);
}
.section__eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 2px 2px 0 rgba(10, 10, 20, 0.06);
}
.inline-form { display: inline-block; }
.link-lg { color: var(--text); font-size: 1.15rem; border-bottom: 2px solid var(--c-purple); }

/* ---------- language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(10, 10, 20, 0.06);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active {
  background: var(--accent-grad);
  color: #fff;
}
