/* Shared tokens + primitives for go.ilandtech.com (welcome page and dashboard). DESIGN.md v1.1. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2?v=60c06664b5") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2?v=6ee678c33f") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-raised: #121b2d;
  --bg-raised-2: #18233a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f1e8;
  --text-2: #b4bac6;
  --text-3: #8b93a3;
  --gold: #d8b47a;
  --gold-bright: #f0d29b;
  --gold-deep: #b8925a;
  --gold-wash: rgba(216, 180, 122, 0.12);
  --gold-line: rgba(240, 210, 155, 0.5);
  --sea: #7fc8c2;
  --sea-wash: rgba(127, 200, 194, 0.14);
  --danger: #f08a7e;
  --danger-wash: rgba(240, 138, 126, 0.12);
  --on-gold: #0b1220;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.7);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: 20px;
  --col: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.display { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; }
.eyebrow { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* Ambient light: two very slow, soft glows (champagne + sea-glass). */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; will-change: transform; }
.ambient span:first-child {
  top: -55vmax; left: -35vmax;
  background: radial-gradient(closest-side, rgba(216, 180, 122, 0.2), rgba(216, 180, 122, 0) 70%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.ambient span:last-child {
  right: -45vmax; bottom: -60vmax;
  background: radial-gradient(closest-side, rgba(127, 200, 194, 0.13), rgba(127, 200, 194, 0) 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.05); } }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 240ms var(--ease-out), opacity 240ms var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-primary {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 30px -14px rgba(216, 180, 122, 0.75);
}
.btn-primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 38px -14px rgba(216, 180, 122, 0.9); }
.btn-primary:disabled { color: var(--text-3); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.btn-quiet { color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.07); }
.btn-danger { color: #1b0f0d; background: var(--danger); }
.btn .icon { width: 20px; height: 20px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .ambient span { animation: none !important; }
}
