/* ==========================================================================
   Syno Studios — synostudios.com
   Apple-esque design system: system type, generous whitespace, alternating
   light/dark product sections, translucent nav, gradient accents.
   ========================================================================== */

:root {
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;

  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --bg-dark: #000000;
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-on-dark: #f5f5f7;
  --ink-on-dark-secondary: #a1a1a6;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --link: #0071e3;

  --grad-runwars: linear-gradient(120deg, #ff375f 0%, #ff9f0a 100%);
  --grad-caddygo: linear-gradient(120deg, #30d158 0%, #64d2ff 100%);
  --grad-studio: linear-gradient(120deg, #5e5ce6 0%, #64d2ff 55%, #30d158 100%);

  --radius-card: 28px;
  --radius-pill: 980px;
  --nav-height: 52px;
  --content-width: 1024px;
  --narrow-width: 720px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(0, 113, 227, 0.25); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(251, 251, 253, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .logo-mark { width: 22px; height: 22px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: rgba(29, 29, 31, 0.82);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 620px) {
  .nav-links { gap: 18px; }
  .nav-links .nav-hide-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

.section {
  padding: 110px 22px;
  position: relative;
}
.section--tight { padding: 80px 22px; }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.section--dark .muted { color: var(--ink-on-dark-secondary); }

.container { max-width: var(--content-width); margin: 0 auto; }
.container--narrow { max-width: var(--narrow-width); margin: 0 auto; }
.section > .container,
.section > .container--narrow,
.hero > .container { position: relative; z-index: 1; }

/* Ambient orbs: blurred gradient assets that drift on scroll (data-parallax). */
.orb-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  will-change: transform;
}
.orb--indigo { background: radial-gradient(circle, #5e5ce6 0%, transparent 70%); }
.orb--sky    { background: radial-gradient(circle, #64d2ff 0%, transparent 70%); }
.orb--green  { background: radial-gradient(circle, #30d158 0%, transparent 70%); }
.orb--red    { background: radial-gradient(circle, #ff375f 0%, transparent 70%); }
.orb--orange { background: radial-gradient(circle, #ff9f0a 0%, transparent 70%); }
.section--dark .orb { opacity: 0.22; }

.center { text-align: center; }
.muted { color: var(--ink-secondary); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.headline {
  margin: 0 0 12px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline--section {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.018em;
}

.subhead {
  margin: 0 auto 30px;
  max-width: 640px;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--grad-studio);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--runwars { background-image: var(--grad-runwars); }
.gradient-text--caddygo { background-image: var(--grad-caddygo); }

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: scale(1.02); }

.btn--primary {
  background: var(--link);
  color: #fff;
}
.btn--primary:hover { background: #0077ed; }

.btn--ghost {
  border: 1px solid currentColor;
  color: var(--link);
}
.section--dark .btn--ghost { color: var(--ink-on-dark); }

.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill--soon {
  background: rgba(0, 113, 227, 0.12);
  color: var(--link);
}
.section--dark .pill--soon {
  background: rgba(100, 210, 255, 0.16);
  color: #64d2ff;
}

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

.hero {
  padding: 140px 22px 120px;
  text-align: center;
  background: var(--bg-white);
  position: relative;
}

.hero .subhead { color: var(--ink-secondary); }

/* --------------------------------------------------------------------------
   App showcase sections
   -------------------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.showcase--flip .showcase-copy { order: 2; }
.showcase--flip .showcase-art { order: 1; }

.showcase-copy .headline--section { margin-bottom: 16px; }
.showcase-copy p {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.showcase-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 17px;
}

.link-arrow::after { content: " \203A"; }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .showcase--flip .showcase-copy { order: 1; }
  .showcase--flip .showcase-art { order: 2; }
  .showcase-links { justify-content: center; }
}

/* Phone mockup art */
.phone-frame {
  display: block;
  margin: 0 auto;
  width: min(320px, 78vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

/* --------------------------------------------------------------------------
   App icons
   -------------------------------------------------------------------------- */

.app-icon {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.app-icon--lg { width: 128px; height: 128px; border-radius: 30px; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 680px) {
  .card-grid--2x2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 38px 32px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.section--dark .card {
  background: #161617;
  box-shadow: none;
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.section--dark .card p { color: var(--ink-on-dark-secondary); }

.card .glyph {
  width: 44px;
  height: 44px;
  display: block;
}

/* --------------------------------------------------------------------------
   Prose pages (privacy, terms)
   -------------------------------------------------------------------------- */

.prose {
  padding: 90px 22px 120px;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
}
.prose .doc-meta {
  color: var(--ink-secondary);
  font-size: 15px;
  margin-bottom: 44px;
}
.prose h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.6;
  color: #424245;
}
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Support page
   -------------------------------------------------------------------------- */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.support-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 44px 34px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.support-card h3 {
  margin: 20px 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.support-card p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.faq {
  max-width: var(--narrow-width);
  margin: 64px auto 0;
  text-align: left;
}
.faq h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-secondary);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-secondary); margin: 12px 0 0; }

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

.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--hairline);
  padding: 34px 22px;
  font-size: 12px;
  color: var(--ink-secondary);
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.footer-links li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--hairline);
  margin: 0 14px;
  vertical-align: -1px;
}
.footer-links a { color: #424245; }
.footer p { margin: 4px 0; }

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered reveal: direct children rise one after another. */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.revealed > * { opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .orb { display: none; }
}

/* No-JS fallback: never hide content when site.js doesn't run. */
.no-js .reveal,
.no-js .reveal-stagger > * { opacity: 1; transform: none; }
