/* VyomStack site. Colours come from the Khel Pitara logo: navy, marigold and cream. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../fonts/inter_regular.ttf") format("truetype"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../fonts/inter_semibold.ttf") format("truetype"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("../fonts/inter_bold.ttf") format("truetype"); }

:root {
  --navy: #221d52;
  --navy-raised: #2f2968;
  --marigold: #f59e0b;
  --cream: #ffe8c8;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1f1c33;
  --muted: #5d5a70;
  --line: #e6e1d8;
  --accent: #b4560a;
  --tint-red: #fbe3e3;
  --tint-green: #dff3e6;
  --tint-blue: #e2e8fa;
  --tint-yellow: #fdf4c9;
  --radius: 20px;
  --width: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111f;
    --surface: #1d1b30;
    --text: #f3f1f8;
    --muted: #aeabc0;
    --line: #322f4a;
    --accent: #f7b13c;
    --tint-red: #3a2230;
    --tint-green: #1c3430;
    --tint-blue: #232b4d;
    --tint-yellow: #3a3320;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--width)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Header and footer */
.site-header { background: var(--navy); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cream); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--marigold); font-weight: 700; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-nav a:hover { color: var(--marigold); }

.site-footer { background: var(--navy); color: var(--cream); padding: 44px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--cream); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }

/* Heroes */
.hero { background: var(--navy); color: var(--cream); padding: clamp(40px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--marigold); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-top: 20px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }

/* A faint night sky, for "vyom" */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--cream), transparent),
    radial-gradient(1.5px 1.5px at 28% 68%, var(--cream), transparent),
    radial-gradient(1px 1px at 44% 14%, var(--cream), transparent),
    radial-gradient(2px 2px at 62% 38%, var(--marigold), transparent),
    radial-gradient(1px 1px at 74% 78%, var(--cream), transparent),
    radial-gradient(1.5px 1.5px at 88% 18%, var(--cream), transparent),
    radial-gradient(1px 1px at 94% 58%, var(--cream), transparent),
    radial-gradient(1.5px 1.5px at 6% 84%, var(--marigold), transparent);
  opacity: 0.6;
}

.product-hero .wrap { display: grid; gap: 32px; align-items: center; }
.product-hero .art { width: min(100%, 420px); margin-inline: auto; }
@media (min-width: 860px) {
  .product-hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--marigold); color: #241a00; }
.btn-primary:hover { background: #ffb22e; }
.btn-ghost { color: var(--cream); border: 1.5px solid rgba(255, 232, 200, 0.5); }
.btn-ghost:hover { border-color: var(--cream); }
.status-pill { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 14px; background: var(--navy-raised); color: var(--cream); font-weight: 600; }

.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-weight: 600; }
.promises li::before { content: "\2713"; color: var(--marigold); margin-right: 8px; font-weight: 700; }

/* Sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: block; color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 10px; }

/* Product cards on the home page */
.product-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .product-grid { grid-template-columns: 2fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-card { display: grid; gap: 24px; align-items: center; text-decoration: none; color: inherit; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.product-card:hover, .product-card:focus-visible { border-color: var(--marigold); transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(20, 17, 46, 0.18); }
@media (prefers-reduced-motion: reduce) {
  .product-card { transition: border-color 0.18s; }
  .product-card:hover, .product-card:focus-visible { transform: none; }
}
.product-card .thumb { background: var(--navy); border-radius: 16px; padding: 18px; }
.product-card .thumb img { width: min(100%, 240px); margin-inline: auto; }
.product-card p { color: var(--muted); margin-top: 8px; }
.product-card .more { display: block; margin-top: 14px; color: var(--accent); font-weight: 600; }
.trust-pill { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--tint-green); color: var(--text); font-size: 0.86rem; font-weight: 600; }
@media (min-width: 560px) { .product-card { grid-template-columns: 240px 1fr; } }
.next-card { border-style: dashed; background: transparent; display: flex; flex-direction: column; justify-content: center; }
.next-card p { color: var(--muted); margin-top: 8px; }

.columns-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .columns-3 { grid-template-columns: repeat(3, 1fr); } }
.columns-3 h3 { margin-bottom: 8px; }
.columns-3 p { color: var(--muted); }

/* Phone frames. The crop hides the emulator's status bar. */
.phone { background: #14112e; padding: 8px; border-radius: 30px; box-shadow: 0 18px 40px rgba(20, 17, 46, 0.25); width: min(100%, 290px); margin-inline: auto; }
.phone img { width: 100%; aspect-ratio: 1080 / 2300; object-fit: cover; object-position: bottom; border-radius: 22px; }

/* One game per row, alternating on wide screens */
.game { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.game + .game { border-top: 1px solid var(--line); }
.game h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.game p { color: var(--muted); }
.game ul { margin: 14px 0 0; padding-left: 20px; }
.game li { margin-top: 6px; }
@media (min-width: 760px) {
  .game { grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px 0; }
  .game:nth-of-type(even) .phone { order: -1; }
}

/* A row of screenshots that scrolls on small screens */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 28px; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.language-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }
.language-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.language-list span { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { border-radius: 16px; padding: 20px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: 0.97rem; color: var(--muted); }
.tint-red { background: var(--tint-red); }
.tint-green { background: var(--tint-green); }
.tint-blue { background: var(--tint-blue); }
.tint-yellow { background: var(--tint-yellow); }

.privacy-band { background: var(--navy); color: var(--cream); }
.privacy-band h2 { color: #fff; }
.privacy-band a { color: var(--marigold); font-weight: 600; }
.privacy-band .eyebrow { color: var(--marigold); }
.privacy-band .section-head p { color: var(--cream); }
.section-text { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; }
.faq details p { padding: 0 0 14px; color: var(--muted); }

/* Long text pages */
.prose { max-width: 44em; padding: clamp(36px, 6vw, 64px) 0; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose .updated { color: var(--muted); margin-top: 10px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; letter-spacing: -0.01em; }
.prose p + p { margin-top: 12px; }
.prose .summary { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--tint-yellow); font-weight: 600; }

.center { text-align: center; }
.not-found { padding: 88px 0; }
.not-found p { margin: 14px 0 24px; color: var(--muted); }
