:root {
  --bg: #070a16;
  --bg-deep: #040610;
  --surface: rgba(14, 20, 41, .82);
  --surface-strong: rgba(18, 25, 49, .96);
  --surface-soft: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f8f9ff;
  --muted: #bbc3d8;
  --gold: #ffd96a;
  --gold-deep: #e5b83f;
  --violet: #b39aff;
  --aqua: #65e0ee;
  --mint: #7be4bd;
  --danger: #ff8b95;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(125, 92, 255, .20), transparent 31rem),
    radial-gradient(circle at 92% 22%, rgba(62, 205, 223, .15), transparent 34rem),
    linear-gradient(rgba(4, 7, 18, .80), rgba(4, 7, 18, .95)),
    url('/assets/visionwise-earth-background.webp') center top / cover fixed,
    var(--bg-deep);
  font: 16px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.85) .7px, transparent .7px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.astro-hero-phone {
    position: relative;
    z-index: 1;
    max-width: 154px;
    width: 85%;
    transform: rotate(3deg);
    filter: drop-shadow(0 30px 40px #0008);
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: 10px; color: #080b19; background: var(--gold); font-weight: 800; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(5, 8, 19, .78); backdrop-filter: blur(22px) saturate(1.25); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.24rem; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #080b19; background: linear-gradient(145deg, #fff2ae, var(--gold-deep)); box-shadow: 0 8px 30px rgba(255, 217, 106, .23); font-size: 1rem; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.site-nav a { padding: 8px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.09); }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.language-switch a { min-width: 37px; padding: 5px 8px; border-radius: 999px; color: var(--muted); text-align: center; text-decoration: none; font-size: .76rem; font-weight: 900; }
.language-switch a[aria-current="true"] { color: #080b19; background: var(--gold); }
.menu-button { display: none; align-items: center; gap: 7px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.05); font-weight: 800; }

main { overflow: clip; }
.hero, .subhero { position: relative; padding: clamp(76px, 10vw, 132px) 0 clamp(62px, 8vw, 98px); text-align: center; }
.hero::after, .subhero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 80vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(36px, 7vw, 84px); text-align: left; }
.hero-copy { max-width: 760px; }
.hero-copy.centered { width: 100%; max-width: var(--max); margin-inline: auto; text-align: center; }
.hero-brand, .hero-kicker, .eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-brand { font-size: clamp(1.1rem, 2.2vw, 1.65rem); letter-spacing: .2em; }
h1, h2, h3 { line-height: 1.11; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.55rem, 6vw, 5.7rem); letter-spacing: -.06em; }
.subhero h1 { max-width: 980px; margin-inline: auto; }
.hero-grid h1 { max-width: 760px; }
.hero h1 em, .subhero h1 em { color: var(--gold); font-style: normal; }
.subhero.astro h1 em { color: var(--violet); }
.subhero.tides h1 em { color: var(--aqua); }
.subhero.calendar h1 em { color: var(--mint); }
.hero-lead, .hero p, .subhero p, .hero-subtitle { max-width: 780px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.3rem); }
.hero-grid .hero-lead { margin-inline: 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-grid .hero-actions { justify-content: flex-start; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.055); text-decoration: none; font-weight: 850; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.10); }
.button-primary { border-color: var(--gold); color: #0b0d17; background: linear-gradient(135deg, #ffe69a, var(--gold)); box-shadow: 0 12px 36px rgba(255, 217, 106, .18); }
.button-primary:hover { background: #ffe69a; box-shadow: 0 16px 40px rgba(255, 217, 106, .27); }
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-device { position: relative; z-index: 2; width: min(255px, 76%); padding: 8px; border: 1px solid rgba(255,255,255,.21); border-radius: 34px; background: linear-gradient(145deg,
 rgba(255,255,255,.16), rgba(255,255,255,.04)); box-shadow: var(--shadow); transform: rotate(3deg); }
.hero-device:hover {box-shadow:0 0 40px 0 #b202ab40;}
.hero-device-calendar { position: relative; z-index: 2; width: min(165px, 76%); padding: 8px; border: 1px solid rgba(255,255,255,.21); border-radius: 34px; background: linear-gradient(145deg,
 rgba(255,255,255,.16), rgba(255,255,255,.04)); box-shadow: var(--shadow); transform: rotate(3deg); }
.hero-device-calendar:hover {box-shadow:0 0 40px 0 #b202ab40;}

.hero-device img { display: block; width: 100%; max-height: 490px; object-fit: cover; object-position: top; border-radius: 27px; }
.hero-orbit { position: absolute; width: min(440px, 95%); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: inset 0 0 80px rgba(93, 112, 255, .12); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--gold); box-shadow: 0 0 28px currentColor; }
.hero-orbit::before { width: 12px; height: 12px; top: 17%; right: 8%; }
.hero-orbit::after { width: 8px; height: 8px; left: 6%; bottom: 24%; color: var(--aqua); background: currentColor; }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.055); }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .section > .wrap > h2, .legal h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.045em; }
.section-heading p, .section > .wrap > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-heading p + p, .section > .wrap > p + p { margin-top: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-height: 250px; display: flex; flex-direction: column; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: linear-gradient(145deg, rgba(20,28,57,.92), rgba(10,15,32,.88)); box-shadow: 0 18px 60px rgba(0,0,0,.18); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.product-card::after { content: ""; position: absolute; width: 260px; height: 260px; top: -130px; right: -90px; border-radius: 50%; background: currentColor; opacity: .12; filter: blur(2px); }
.product-card:hover { transform: translateY(-5px); border-color: currentColor; }
.product-card.astro { color: var(--violet); }
.product-card.tides { color: var(--aqua); }
.product-card.calendar { color: var(--mint); }
.product-card h3 { margin: auto 0 10px; color: var(--text); font-size: 1.7rem; letter-spacing: -.035em; }
.product-card p { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }
.product-link { color: var(--text); font-weight: 850; }
.badge { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; padding: 6px 10px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); font-size: .73rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.feature-grid, .values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card, .value-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(18,25,49,.88), rgba(10,15,31,.78)); box-shadow: 0 16px 50px rgba(0,0,0,.12); }
.content-card h2, .content-card h3 { margin: 0 0 14px; }
.content-card h3 { font-size: 1.34rem; }
.content-card p, .content-card li, .value-card p, .legal p, .legal li { color: var(--muted); }
.content-card a { color: var(--gold); font-weight: 750; }
.content-card ul, .legal ul { margin: 0; padding-left: 1.25rem; }
.content-card li + li, .legal li + li { margin-top: 8px; }
.value-card strong { display: block; margin-bottom: 9px; font-size: 1.08rem; }
.notice { margin: 28px 0 0; padding: 20px 23px; border: 1px solid rgba(255,217,106,.28); border-left: 4px solid var(--gold); border-radius: 8px 18px 18px 8px; color: var(--muted); background: rgba(255,217,106,.075); }
.notice p { margin: 0; }
.feature-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 18px 20px 18px 50px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--surface); }
.feature-list li::before { content: "✓"; position: absolute; left: 18px; color: var(--mint); font-weight: 900; }
details { margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,19,39,.78); }
summary { position: relative; padding: 19px 52px 19px 21px; cursor: pointer; list-style: none; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 21px 20px; color: var(--muted); }
.media-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.media-grid a { width: clamp(120px, 14vw, 172px); padding: 5px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: 0 16px 45px rgba(0,0,0,.20); transition: transform .2s ease, border-color .2s ease; }
.media-grid a:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.media-grid img { display: block; width: 100%; aspect-ratio: 9 / 19; border-radius: 15px; object-fit: cover; object-position: top; }
.legal { max-width: 900px; }
.legal > h2 { margin-top: 52px; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.legal > h2:first-of-type { margin-top: 38px; }
.legal a { color: var(--gold); }
.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid rgba(101,224,238,.30); border-radius: 22px; background: rgba(101,224,238,.075); }

.site-footer { padding: 52px 0 24px; border-top: 1px solid var(--line); background: rgba(4,7,17,.82); backdrop-filter: blur(12px); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .85fr; gap: 42px; }
.footer-brand p { max-width: 420px; margin: 16px 0 0; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: rgba(5,8,19,.98); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 11px 14px; border-radius: 12px; }
  .menu-button { display: inline-flex; }
  .language-switch { margin-left: 0; }
}
@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-copy { margin-inline: auto; }
  .hero-grid .hero-lead { margin-inline: auto; }
  .hero-grid .hero-actions { justify-content: center; }
  .hero-visual { min-height: 400px; }
  .product-grid, .values { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 218px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .header-inner { gap: 10px; min-height: 68px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 31px; height: 31px; }
  .menu-button span:last-child { display: none; }
  .site-nav { top: 68px; padding-inline: 12px; }
  .hero, .subhero { padding-top: 58px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-device { width: 210px; }
  .section { padding-block: 58px; }
  .content-card, .value-card, .product-card { border-radius: 20px; }
  .media-grid { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 12px; }
  .media-grid a { flex: 0 0 145px; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .copyright { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.legacy-language-controls { display: none !important; }

.content-card a.button-primary, .status-panel a.button-primary { color: #0b0d17; }
