/* ---------------------------------------------------------------------------
   Official Vishwateja — Mac apps (dark, flat)
   No gradients: every fill is a solid colour. A deep cool navy base with
   three vivid accents — electric blue, cyan, and the brand gold. The OV mark
   and gold identity carry over from officialvishwateja.com.
   System font stack only; it is what macOS itself renders.
   --------------------------------------------------------------------------- */

:root {
  --bg: #070b16;

  --blue: #2f6bff;
  --blue-deep: #1d4fd8;
  --blue-text: #4d8dff;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --gold-deep: #f59e0b;
  --green: #4ade80;

  --text: #f5f7ff;
  --muted: rgba(226, 232, 252, 0.75);
  --faint: rgba(206, 214, 240, 0.45);
  --ink: #101733;

  --surface: rgba(255, 255, 255, 0.05);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.10);

  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1120px;

  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Backdrop --------------------------------------------------------------- */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* The brand grid, barely-there on dark. */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 88px 88px;
}

/* Flat translucent circles — the brand site's floating rings, recoloured. */
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.orb-a {
  width: 340px; height: 340px;
  top: 10vh; left: -110px;
  background: rgba(47, 107, 255, 0.10);
  border: 1px solid rgba(47, 107, 255, 0.22);
  animation: float-a 24s var(--ease) infinite alternate;
}

.orb-b {
  width: 240px; height: 240px;
  top: 32vh; right: -70px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  animation: float-b 30s var(--ease) infinite alternate;
}

.orb-c {
  width: 170px; height: 170px;
  top: 72vh; left: 24vw;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.18);
  animation: float-c 27s var(--ease) infinite alternate;
}

@keyframes float-a { to { transform: translate3d(60px, 70px, 0); } }
@keyframes float-b { to { transform: translate3d(-50px, 85px, 0); } }
@keyframes float-c { to { transform: translate3d(70px, -60px, 0); } }

/* --- Navigation -------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(var(--maxw), calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), top 0.4s var(--ease);
}

.nav.scrolled {
  top: 10px;
  background: rgba(7, 11, 22, 0.88);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* The OV mark: solid blue rounded square, bold initials. */
.ov-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 18px rgba(47, 107, 255, 0.45);
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: #fff; background: var(--surface-hi); }

.nav-cta {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--gold-deep);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

/* --- Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 190px 24px 90px;
}

.hero-inner { position: relative; max-width: 880px; }

.eyebrow {
  display: inline-block;
  padding: 9px 22px;
  margin-bottom: 30px;
  border: 1px solid rgba(77, 141, 255, 0.45);
  border-radius: var(--r-pill);
  background: rgba(77, 141, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-text);
}

.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* Solid accent words — no gradient fills anywhere. */
.gold { color: var(--blue-text); }
.lilac { color: var(--cyan); }

.lede {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}

.hero-meta {
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--faint);
  display: inline-flex;
  /* Top-aligned, not centred: when the text wraps to two lines, centring
     strands the dot beside the second line instead of the first. */
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.dot {
  margin-top: 7px;       /* optical alignment with the first line of text */
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --- Buttons ------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 36px rgba(251, 191, 36, 0.32);
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-deep);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.45);
}
.btn-gold:active { transform: translateY(0); }

.btn-glass {
  color: #fff;
  background: var(--surface);
  border: 1px solid var(--line);
}
.btn-glass:hover { background: var(--surface-hi); transform: translateY(-2px); }

.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateY(3px); }

/* Solid electric blue — vivid against the navy dark. */
.btn-download {
  width: 100%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 44px rgba(47, 107, 255, 0.4);
}
.btn-download:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
  box-shadow: 0 20px 56px rgba(47, 107, 255, 0.55);
}
.btn-download:active { transform: translateY(0) scale(0.99); }

/* Animated light sweep — transient highlight, not a fill. */
.dl-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.btn-download:hover .dl-shine { animation: sweep 0.85s var(--ease); }
@keyframes sweep {
  0% { left: -60%; opacity: 1; }
  100% { left: 125%; opacity: 1; }
}

.btn-download.is-starting { pointer-events: none; }
.btn-download.is-starting .btn-arrow { animation: drop 0.6s var(--ease); }

@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0; }
  56% { transform: translateY(-14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* --- Sections ------------------------------------------------------------------ */

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head { max-width: 680px; margin-bottom: 56px; }

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
}

.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* --- App cards (home page) --------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.app-card:hover {
  transform: translateY(-5px);
  background: var(--surface-hi);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 68px; height: 68px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease);
}
.app-card:hover .card-icon { transform: scale(1.06) rotate(-2deg); }

.app-card h3 {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.card-tag {
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.card-copy { margin-top: 14px; color: var(--muted); font-size: 0.97rem; }

/* Small facts row — version, size, requirement. */
.card-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.card-facts li {
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
}

.card-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-text);
}
.card-go svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.app-card:hover .card-go svg { transform: translateX(4px); }

/* --- App detail page --------------------------------------------------------------- */

.app-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 24px 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.back-link svg { width: 15px; height: 15px; }
.back-link:hover { color: #fff; }

.app-hero-inner {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.hero-icon {
  width: 112px; height: 112px;
  border-radius: 25px;
  flex: none;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
}

.app-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.app-tag {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--cyan);
}

.app-lede {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.06rem;
  color: var(--muted);
}

.dl-row { margin-top: 28px; max-width: 380px; }
.dl-meta { margin-top: 11px; text-align: center; font-size: 0.85rem; color: var(--faint); }

/* Specification strip under the hero. */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--line-soft);
  overflow: hidden;
}

.spec-strip > div { padding: 18px 20px; background: #080d19; }
.spec-strip dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.spec-strip dd { margin-top: 5px; font-size: 0.97rem; font-weight: 600; }

/* --- Technology grid ---------------------------------------------------------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tech {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.tech:hover { transform: translateY(-3px); background: var(--surface-hi); }

.tech h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--blue-text); }
.tech p { margin-top: 7px; font-size: 0.9rem; color: var(--muted); }

/* --- Legal (privacy / terms) --------------------------------------------------------- */

.legal-card {
  padding: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.legal-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.legal-date { margin-top: 6px; font-size: 0.86rem; color: var(--faint); }

.legal-card h3 {
  margin-top: 30px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--cyan);
}

.legal-card p { margin-top: 9px; color: var(--muted); font-size: 0.97rem; }
.legal-card strong { color: var(--text); }

.legal-list { list-style: none; margin-top: 12px; display: grid; gap: 9px; }

.legal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-text);
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

/* --- Install steps -------------------------------------------------------------------- */

.install-steps {
  counter-reset: step;
  list-style: none;
  max-width: 560px;
  margin: 26px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  font-size: 0.98rem;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-download.narrow { width: auto; min-width: 260px; }
.inline-link { color: var(--blue-text); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* --- Numbered features ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.step:hover { transform: translateY(-4px); background: var(--surface-hi); border-color: var(--line); }

.num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue-text);
  flex: none;
}

.step h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

/* --- Support band ------------------------------------------------------------------ */

.cta-card {
  text-align: center;
  padding: 72px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cta-badge {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.028em;
  font-weight: 800;
}

.cta-sub { margin-top: 14px; color: var(--muted); }
.cta-actions { margin-top: 30px; display: flex; justify-content: center; }

/* --- Footer ------------------------------------------------------------------------- */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 24px 64px;
  border-top: 1px solid var(--line-soft);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.foot-id { display: flex; align-items: center; gap: 14px; }
.foot-brand { font-weight: 700; letter-spacing: -0.01em; }
.foot-note { font-size: 0.9rem; color: var(--faint); margin-top: 2px; }

.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 0.93rem; color: var(--muted); transition: color 0.25s var(--ease); }
.foot-links a:hover { color: #fff; }

.foot-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--faint);
}

/* --- Scroll reveal ------------------------------------------------------------------- */

/* Scoped to .js so the page is fully visible when scripting is unavailable —
   the animation is an enhancement, never a precondition for reading it. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------------------- */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 12px; padding: 8px 8px 8px 14px; }
  .nav-cta { margin-left: auto; padding: 9px 16px; }
  .nav-brand { font-size: 0.95rem; }

  .hero { min-height: auto; padding: 132px 18px 64px; }
  .eyebrow { margin-bottom: 22px; font-size: 0.84rem; padding: 8px 16px; }
  .lede { margin-top: 22px; }
  .hero-actions { margin-top: 32px; gap: 10px; }
  .hero-meta { margin-top: 28px; font-size: 0.82rem; }

  /* Full-width buttons read better than two half-width pills on a phone. */
  .hero-actions .btn { width: 100%; }

  .section { padding: 62px 18px; }
  .section-head { margin-bottom: 36px; }

  /* Detail pages: stack the icon above the title on a phone. */
  .app-hero { padding: 118px 18px 30px; }
  .app-hero-inner { flex-direction: column; gap: 20px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 19px; }
  .dl-row { max-width: none; }
  .spec-strip { margin-top: 32px; }
  .legal-card { padding: 28px 22px; }
  .app-card { padding: 26px; }
  .btn-download.narrow { width: 100%; min-width: 0; }

  .showcase { padding: 24px 18px; gap: 30px; }
  .app-title { gap: 14px; }
  .app-icon { width: 66px; height: 66px; border-radius: 15px; }
  .app-title h2 { font-size: 1.6rem; }

  .step { padding: 24px; gap: 16px; }
  .cta-card { padding: 48px 22px; }

  .foot-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
  /* The wordmark and the Download pill together exceed the nav at this width,
     so reclaim the margins and tighten both rather than let the pill spill. */
  .nav { width: min(var(--maxw), calc(100% - 20px)); padding: 7px 7px 7px 12px; }
  .nav-brand { font-size: 0.88rem; gap: 8px; }
  .ov-mark { width: 30px; height: 30px; font-size: 0.76rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.86rem; }
}

/* Below this the wordmark cannot fit beside the button at any sane size.
   The OV mark alone still identifies the site. */
@media (max-width: 340px) {
  .nav-brand span:not(.ov-mark) { display: none; }
}

/* --- Reduced motion -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .dot { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
