/* Golf Course Wallpapers — site styles */

:root {
  --bg:      #0c110e;
  --bg-alt:  #111814;
  --card:    #16201a;
  --line:    #24312a;
  --ink:     #eef3ef;
  --ink-dim: #a3b3aa;
  --ink-mut: #78877e;
  --green:   #4ea87a;
  --green-hi:#6cc697;
  --radius:  14px;
  --wrap:    1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: #ffffff10;
  border: 1px solid var(--line);
  padding: .1em .42em;
  border-radius: 5px;
  white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage { position: absolute; inset: 0; z-index: -2; background: #000; }

.hero-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
}
.hero-layer.visible { opacity: 1; }
.hero-layer img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.hero-layer.animate img { animation: drift var(--dur, 32s) linear forwards; }

@keyframes drift {
  from { transform: scale(var(--s0, 1)) translate3d(var(--x0, 0), var(--y0, 0), 0); }
  to   { transform: scale(var(--s1, 1.08)) translate3d(var(--x1, 0), var(--y1, 0), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-layer.animate img { animation: none; transform: scale(1.02); }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #0c110ecc 0%, #0c110e40 26%, #0c110e26 52%, #0c110ee6 100%),
    linear-gradient(90deg, #0c110ea6 0%, transparent 62%);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 24px;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
}
/* Wordmark: the domain is the brand, so the TLD carries the accent. */
.mark, .mark-sm {
  font-weight: 650;
  letter-spacing: -.022em;
  color: var(--ink);
  font-size: 1.02rem;
}
.mark { text-decoration: none; }
.mark:hover { text-decoration: none; opacity: .88; }
.mark span, .mark-sm span { color: var(--green); }
.mark-sm { font-size: .98rem; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-gh {
  border: 1px solid #ffffff2e; border-radius: 999px;
  padding: 6px 15px; color: var(--ink) !important;
}
.nav-gh:hover { background: #ffffff14; }

.hero-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
  padding: 48px 24px 64px;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.033em;
  font-weight: 700;
  text-shadow: 0 2px 26px #00000073;
}

.lede {
  margin-top: 20px;
  max-width: 47ch;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: #dbe6de;
  text-shadow: 0 1px 14px #00000080;
}

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: flex; flex-direction: column; gap: 1px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid #ffffff33;
  background: #0c110e9e;
  backdrop-filter: blur(9px);
  color: var(--ink);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #0c110ec4; border-color: #ffffff52; }
.btn span { font-weight: 620; font-size: 1rem; }
.btn em { font-style: normal; font-size: 12.5px; color: var(--ink-mut); }

.btn-primary {
  background: var(--green); border-color: transparent; color: #05130c;
}
.btn-primary:hover { background: var(--green-hi); }
.btn-primary em { color: #05130cad; }

.cta-phone {
  margin-top: 18px;
  font-size: 14px; color: var(--ink-dim);
  text-shadow: 0 1px 10px #00000080;
}
.cta-phone a { color: var(--ink); border-bottom: 1px solid #ffffff3d; }
.cta-phone a:hover { text-decoration: none; border-bottom-color: var(--green); }
.cta-phone em { font-style: normal; color: var(--ink-mut); font-size: 12.5px; }
.cta-phone span { margin: 0 8px; color: var(--ink-mut); }

.dim { color: var(--ink-mut); }

.facts {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  list-style: none; margin-top: 34px;
  font-size: 14px; color: var(--ink-dim);
}
.facts b { color: var(--ink); font-size: 17px; margin-right: 5px; }

/* Sits bottom-LEFT on purpose: the photograph already carries its own credit
   burned into the bottom-right corner, and the two would overlap. */
.hero-credit {
  position: absolute; left: 24px; bottom: 18px;
  text-align: left; font-size: 12px; line-height: 1.45;
  color: #ffffffb0; text-shadow: 0 1px 6px #000000a6;
  pointer-events: none;
  transition: opacity .9s ease;
}
.hero-credit.fading { opacity: 0; }
.hero-credit b { display: block; font-weight: 560; color: #fffffff0; font-size: 13px; }

/* ── sections ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.15rem);
  letter-spacing: -.022em; font-weight: 680;
}
h3 {
  font-size: 1.02rem; font-weight: 640;
  margin: 26px 0 10px; color: var(--ink);
}
.sub { color: var(--ink-dim); margin-top: 12px; max-width: 62ch; }

/* ── tabs ───────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin: 30px 0 22px; flex-wrap: wrap; }
.tab {
  font: inherit; font-size: 14.5px; font-weight: 540;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.tab:hover { color: var(--ink); border-color: #33443a; }
.tab.is-on { background: var(--green); border-color: transparent; color: #05130c; }

.panel { display: none; }
.panel.is-on { display: block; animation: fadeup .3s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.steps { margin: 0 0 4px 20px; display: grid; gap: 11px; max-width: 68ch; }
.steps li { color: #cfdcd4; }
.steps b { color: var(--ink); font-weight: 600; }

.note {
  margin-top: 18px; padding: 14px 17px;
  background: #ffffff08; border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  font-size: 14.3px; color: var(--ink-dim); max-width: 70ch;
}
.note b { color: var(--ink); }

.callout {
  margin: 20px 0; padding: 18px 20px;
  background: #4ea87a14; border: 1px solid #4ea87a3d;
  border-radius: 12px; color: #d3e3da;
}
.callout b { color: #fff; }

.section p + p { margin-top: 14px; }
.narrow p { color: var(--ink-dim); }

/* ── live section ───────────────────────────────────── */
.live-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.live-demo { position: sticky; top: 28px; }

.frame {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #050907;
  box-shadow: 0 22px 60px #00000066;
}
.frame-bar {
  display: flex; gap: 6px; padding: 10px 13px;
  background: #101713; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3a32; }
.frame-screen { position: relative; aspect-ratio: 16 / 10; background: #000; }
.frame-screen .hero-layer img { object-fit: cover; }
.frame-cap {
  margin-top: 12px; font-size: 13px; color: var(--ink-mut); text-align: center;
}

/* ── gallery ────────────────────────────────────────── */
.grid {
  margin-top: 34px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid figure {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.grid figure:hover { transform: translateY(-3px); border-color: #35473c; }
.grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.grid figcaption { padding: 13px 15px 15px; }
.grid figcaption b { display: block; font-size: 14.6px; font-weight: 600; }
.grid figcaption span { font-size: 13px; color: var(--ink-mut); }

/* ── phone mockups ──────────────────────────────────── */
.phones {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 26px;
}
.phone { width: 180px; }
.phone-screen {
  display: block; position: relative;
  border-radius: 24px; overflow: hidden;
  border: 2px solid #2e3d35;
  background: #000;
  box-shadow: 0 14px 34px #00000059;
  transition: transform .18s ease, border-color .18s ease;
}
.phone-screen::after {           /* dynamic-island style pill */
  content: ""; position: absolute; top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 8px; border-radius: 99px;
  background: #000; opacity: .82;
}
.phone:hover .phone-screen { transform: translateY(-4px); border-color: #43584c; }
.phone img { display: block; width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; }
.phone figcaption {
  margin-top: 11px; text-align: center;
  font-size: 13px; color: var(--ink-dim);
}

@media (max-width: 620px) {
  .phones { gap: 16px; justify-content: center; }
  .phone { width: 136px; }
}

/* ── footer ─────────────────────────────────────────── */
.footer { padding: 46px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-in {
  display: flex; justify-content: space-between; align-items: center;
  gap: 26px; flex-wrap: wrap;
}
.footer p { font-size: 13.4px; color: var(--ink-mut); margin-top: 5px; max-width: 52ch; }
.footer-links { display: flex; gap: 24px; font-size: 14.5px; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .live-grid { grid-template-columns: 1fr; gap: 40px; }
  .live-demo { position: static; }
  .nav-links { gap: 15px; font-size: 13.6px; }
  .section { padding: 62px 0; }
  .hero-credit { display: none; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .facts { gap: 10px 22px; }
}
