/* arcanvm.app -- the frame every page shares.
 *
 * Colours are the app's tokens (packages/design_system/lib/src/tokens.dart):
 * a deep dark ground, cyan as the one accent, gold for the wordmark and the
 * compass alone. Body text is the system face; Cormorant Garamond, the face
 * of the wordmark, also sets the page headings. Self-hosted, no third party.
 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0A0A0F;
  --ink-raised: #101017;
  --ink-high: #16161F;
  --hairline: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.12);
  --accent: #00D4FF;
  --accent-deep: #3B82F6;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --on-accent: #05070A;
  --text: #EAECF2;
  --text-2: #C5CBD8;
  --text-3: #9DA8BA;
  --gold: #E5C158;
  --gold-dim: rgba(229, 193, 88, 0.12);
  --gold-edge: rgba(229, 193, 88, 0.28);
  --gold-glow: rgba(229, 193, 88, 0.08);
  --warning: #FBBF24;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --wrap: 68rem;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #7FE9FF; }

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

img { max-width: 100%; height: auto; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Header: glass over the page, like the app's own chrome. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 4.2rem;
  position: relative;
}
.header-spacer {
  flex: 1;
}
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header-language:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.wordmark:hover { color: #FFF2B2; }
.wordmark-dot { font-family: var(--sans); font-size: 0.6em; opacity: 0.75; }
.wordmark-compass { height: 1.18em; width: auto; }

.header-cta {
  padding: 0.45rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.header-cta:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(229, 193, 88, 0.3);
}
.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(22rem, 100%);
  background: rgba(14, 16, 24, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--edge);
  border-top: 1px solid rgba(229, 193, 88, 0.35);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.7);
  z-index: 100;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.18s;
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta { color: var(--accent); font-weight: 600; }
.site-nav .nav-language { color: var(--gold); }

@media (max-width: 36rem) {
  .wordmark { font-size: 1.22rem; }
  .header-cta { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
  .site-nav { left: 0; right: 0; width: 100%; border-radius: 16px; }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #00D4FF 0%, #0284C7 60%, #1E3A8A 100%);
  color: #030712;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.button-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #030712;
}
.button-store { min-width: 14rem; }
.button-store[data-pending] { color: var(--text-2); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

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

/* Inquiry bottom-sheet modal dialog */
.inquiry-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 34rem;
  width: min(100% - 2rem, 34rem);
  margin: auto;
  color: var(--text);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.8), 0 0 0 1px var(--edge);
}
.inquiry-dialog::backdrop {
  background: rgba(4, 6, 8, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.inquiry-sheet {
  background: var(--ink-raised);
  padding: 1.8rem 2rem 2.2rem;
  border: 1px solid var(--edge);
  border-radius: 28px;
}
.inquiry-handle {
  width: 2.6rem;
  height: 4px;
  background: var(--edge);
  border-radius: 999px;
  margin: 0 auto 1.2rem;
}
.inquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.inquiry-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}
.inquiry-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inquiry-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
.inquiry-lead {
  margin-top: 0.6rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.5;
}
.inquiry-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.inquiry-form .field {
  display: grid;
  gap: 0.35rem;
}
.inquiry-form label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
}
.inquiry-form input {
  background: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.inquiry-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.inquiry-actions button {
  cursor: pointer;
}
.inquiry-feedback {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}
@media (max-width: 44rem) {
  .inquiry-dialog {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: fixed;
    bottom: 0;
  }
  .inquiry-sheet {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1.5rem 1.3rem 2rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.2rem 0 2.6rem;
  color: var(--text-2);
  font-size: 0.95rem;
  text-align: center;
}
.footer-note {
  max-width: 36rem;
  margin: 0 auto 0.9rem;
  color: var(--text-3);
  font-size: 0.92rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin: 0.6rem 0 0.9rem;
}
.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-small {
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}
