/* Polar Zinsmere - hand-written site CSS. No framework. */

:root {
  --accent: #3865ff;
  --accent-2: #22e0ff;
  --accent-hover: #5178ff;
  --accent-tint: rgba(56, 101, 255, .14);
  --bg: #0a0e1f;
  --surface: #10152c;
  --surface-2: #161c38;
  --border: #232a4d;
  --text: #eef1fb;
  --text-muted: #a3aad0;
  --off-white: #f4f6ff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(5,8,20,.35), 0 2px 6px rgba(10,14,40,.3);
  --shadow-md: 0 4px 10px rgba(5,8,24,.35), 0 16px 40px rgba(15,20,55,.45);
  --shadow-lg: 0 12px 32px rgba(5,8,24,.5), 0 30px 70px rgba(10,15,45,.5);
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--off-white); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.2em; color: var(--text-muted); }
strong { color: var(--text); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

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

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .75em;
}
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head .lead { font-size: 1.05rem; }
.lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 1.6em; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.6,.2,1), box-shadow .16s, background .16s, border-color .16s;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #060814; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #060814; }
.btn--secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn--secondary:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.btn--sm { height: 40px; padding: 0 1.2em; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,14,31,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(10,14,31,.97); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; }
.logo { height: 32px; width: auto; }

.main-nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__trigger {
  display: inline-flex; align-items: center; gap: .35em; background: none; border: none; cursor: pointer;
  color: var(--text); font: inherit; font-weight: 500; padding: .6em .8em; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.main-nav__trigger:hover, .main-nav__trigger[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent-2); }
.icon--chevron { width: 16px; height: 16px; transition: transform .15s; }
.main-nav__trigger[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 50;
}
.main-nav__item:last-child .dropdown, .dropdown.dropdown--right { left: auto; right: 0; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.dropdown a:hover, .dropdown a:focus { background: var(--accent-tint); color: var(--accent-2); }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.mobile-nav-trigger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.icon--close { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon--open { display: none; }
.mobile-nav-trigger[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-trigger { display: inline-flex; }
  .site-header__actions .btn--sm { display: none; }
  .mobile-nav { display: block; background: var(--surface); border-bottom: 1px solid var(--border); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav__group { border-top: 1px solid var(--border); padding: .6rem 0; }
  .mobile-nav__group summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
  .mobile-nav__group ul { list-style: none; padding: 0; margin: .4rem 0 0; }
  .mobile-nav__group ul a { display: block; padding: .5rem 0; color: var(--text-muted); }
  .mobile-nav .btn { margin: 1rem 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 1rem; border-bottom: 1px solid var(--border); }
.breadcrumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .5rem; color: var(--border); }
.breadcrumbs li[aria-current] { color: var(--text); }

/* ---------- Sections / backgrounds ---------- */
.section { position: relative; padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.section--tint { background: var(--surface); }
.section--mesh::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(56,101,255,.35) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.section--glow::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 60%; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 20%, rgba(34,224,255,.16), transparent 70%);
}
.section--glow-b::after {
  content: ''; position: absolute; inset: auto -10% -30% -10%; height: 60%; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 80%, rgba(56,101,255,.18), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 6vw, 88px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 55% at 78% 15%, rgba(56,101,255,.35), transparent 65%),
  radial-gradient(50% 50% at 10% 90%, rgba(34,224,255,.18), transparent 65%),
  linear-gradient(180deg, #0a0e1f 0%, #0b1024 100%); }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .85; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero--form-side .hero__inner { grid-template-columns: 1fr .85fr; }
.hero h1 { max-width: 26ch; font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem); }
.hero__offices { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0; flex-wrap: wrap; color: var(--text-muted); font-size: .9rem; }
.hero__offices .flag-mark { border-radius: 4px; box-shadow: var(--shadow-sm); }
.flag-emoji { font-size: 1.4rem; line-height: 1; }
.hero__badges { display: flex; gap: .75rem; margin: 1.4rem 0 0; }
.hero__badge { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; transition: border-color .15s, transform .15s; }
.hero__badge:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent-2); }
.hero__badge .icon { color: var(--accent-2); width: 20px; height: 20px; }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); position: relative; }

/* Simple two-column hero used on inner pages (heading one side, form other) */
.hero--split .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero--split .hero__inner, .hero__inner { grid-template-columns: 1fr !important; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 1.6rem; transition: transform .18s cubic-bezier(.2,.6,.2,1), box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(56,101,255,.4); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-2); margin-bottom: 1rem; }
.icon-badge .icon { width: 26px; height: 26px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }

.card--flex { display: flex; gap: 1rem; align-items: flex-start; }
.card--flex .icon-badge { margin-bottom: 0; flex-shrink: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--accent-2); font-weight: 600; margin-top: .6rem; transition: gap .15s; }
.link-arrow:hover { gap: .65em; }

/* Numbered step circle (never an oversized numeral) */
.step-circle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #060814; font-weight: 700; font-size: .95rem; margin-bottom: .75rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th { background: var(--surface-2); text-align: left; padding: 14px 16px; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
tbody td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text); font-size: .92rem; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.mark-yes { color: #35e08a; font-weight: 700; }
.mark-no { color: #ff6b7a; font-weight: 700; }

/* ---------- Forms ---------- */
.form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 28px); }
.form-block__eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: .5rem; }
.form-block__intro { color: var(--text-muted); margin-bottom: 1rem; }
.form-legal { font-size: .78rem; color: var(--text-muted); margin-top: .9rem; }
.form-followup { display: flex; align-items: center; gap: .5em; font-size: .85rem; color: var(--accent-2); margin-top: .75rem; }
.form-followup .icon { width: 18px; height: 18px; }

/* formFactory field polish (targets common generic classnames without touching its JS) */
.form-block form input, .form-block form select, .form-block form textarea {
  background: var(--bg) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
  border-radius: 10px !important;
}
.form-block form input:focus, .form-block form select:focus, .form-block form textarea:focus {
  outline: 2px solid var(--accent-2) !important; outline-offset: 1px;
}
.form-block form button[type="submit"], .form-block form input[type="submit"] {
  border-radius: 10px !important;
}

/* ---------- Exchange logo strip ---------- */
.exchange-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; align-items: center; justify-items: center; }
.exchange-logo { height: 22px; width: auto; max-width: 120px; opacity: .9; transition: opacity .15s, transform .15s; }
.exchange-logo:hover { opacity: 1; transform: translateY(-2px); }
@media (min-width: 640px) {
  .exchange-strip { grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
  .exchange-logo { height: 26px; max-width: 140px; }
}
@media (min-width: 960px) {
  .exchange-strip { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Reviews ---------- */
.reviews-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { display: flex; flex-direction: column; gap: .75rem; }
.review-card__head { display: flex; align-items: center; gap: .8rem; }
.review-card__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; }
.review-card__name { font-weight: 600; color: var(--text); }
.review-card__meta { font-size: .8rem; color: var(--text-muted); }
.review-card__stats { display: flex; gap: 1rem; font-size: .82rem; color: var(--accent-2); flex-wrap: wrap; }
.review-note { font-size: .8rem; color: var(--text-muted); margin-top: 2rem; }

/* ---------- Company facts block ---------- */
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.fact-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.fact-item .icon { color: var(--accent-2); margin-bottom: .5rem; }
.fact-item strong { display: block; color: var(--off-white); }

/* ---------- Map ---------- */
.map-embed { border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 720px; aspect-ratio: 16/9; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Calculator decoration ---------- */
.calc-decoration { position: relative; }
.calc-decoration canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; z-index: 0; }
.calc-decoration > .container { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-2); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 4rem; overflow: hidden; }
.site-footer__bg { position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 0%, rgba(56,101,255,.1), transparent 70%); pointer-events: none; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__brand p { font-size: .88rem; }
.site-footer__contact { display: flex; align-items: center; gap: .4em; }
.site-footer__col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer__col a { color: var(--text-muted); font-size: .88rem; }
.site-footer__col a:hover { color: var(--accent-2); }
.site-footer__disclaimer { position: relative; border-top: 1px solid var(--border); padding-block: 1.5rem 2rem; }
.site-footer__disclaimer p { font-size: .78rem; }
.site-footer__legal { color: var(--text-muted); }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.flag-row { display: flex; gap: .5rem; }

.table-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.content-block { max-width: 780px; }
.content-block h2 { margin-top: 2.4rem; }
.content-block h2:first-child { margin-top: 0; }

.disclaimer-box { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; }

@media (max-width: 640px) {
  .hero__inner, .two-col { grid-template-columns: 1fr; }
}
