:root {
  --bg: #0b0f14;
  --fg: #e9eef5;
  --muted: #9fb0c0;
  --accent: #58d0ff;
  --edge: #2a3340;
}

* { box-sizing: border-box }

html, body { height: 100% }

body {
  margin: 0;
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% 10%, #13202c 0%, transparent 60%),
    radial-gradient(1200px 600px at 90% 20%, #112638 0%, transparent 60%),
    linear-gradient(180deg, #091017, #0b0f14);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 24px }

.site-header, .site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--edge)
}
.site-footer { border-bottom: none; border-top: 1px solid var(--edge); margin-top: 32px }

.brand { font-weight: 600; font-size: 28px; letter-spacing: 0.5px }
.brand span { color: var(--accent); font-weight: 800 }

.nav a { color: var(--muted); text-decoration: none; margin-left: 16px }
.site-header { display:flex; gap:10px; flex-wrap:wrap }
.site-header .nav { display:flex; gap:10px; flex-wrap:wrap }
.site-header .nav a { margin-left: 0 }
.site-header .btn { padding: 8px 12px }
.nav a.cta { color: var(--fg); border: 1px solid var(--accent); padding: 6px 10px; border-radius: 10px }
.nav a.secondary { opacity: 0.8 }
.nav a.disabled { opacity: 0.5; pointer-events: none }

.hero {
  position: relative; text-align: center; padding: 80px 20px;
  /* Use the local hero placed at site root */
  background: url('/rowducks-hero.jpeg') center/cover no-repeat;
  border-radius: 16px; border: 1px solid var(--edge); color: var(--fg);
}
.hero::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: rgba(0,0,0,.55) }
.hero > * { position: relative }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 10px; text-shadow: 0 2px 6px rgba(0,0,0,.45) }
.hero p { color: #e2efff; margin: 0 0 18px; text-shadow: 0 1px 3px rgba(0,0,0,.55) }

.btn {
  appearance: none; background: transparent; border: 2px solid var(--accent);
  color: var(--fg); padding: 12px 18px; border-radius: 12px; font-weight: 700;
  transition: background .15s ease, color .15s ease, transform .15s ease; cursor: pointer;
}
.btn:hover { background: rgba(88,208,255,.10); transform: translateY(-2px) }
.btn.active { background: var(--accent); color: #051018; border-color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.3) }
.btn.active:hover { background: #4bc1f0 }

/* Always show the Coming Soon badge on disabled buttons (anchors or buttons) */
.btn[disabled]{ position:relative; opacity:.6; cursor:not-allowed; pointer-events:none }
.btn[disabled]::after{ content:"Coming Soon"; position:absolute; top:-10px; right:-10px; font-size:11px; font-weight:700; color:#051018; background:var(--accent); padding:2px 6px; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,.3); white-space:nowrap }
/* Don’t show overlay badge inside the top link bar */
.site-header .btn[disabled]::after{ display:none }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 32px 0 }
.tile { display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid var(--edge); border-radius:16px; padding:18px 8px; text-decoration:none; color:var(--fg); background:rgba(255,255,255,.05); transition: transform .08s ease, border-color .08s ease, background .15s ease }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255,255,255,.1) }
.tile .emoji { font-size:36px; margin-bottom:8px }
.tile .label { font-weight:600 }

/* Utility shells used on the landing */
.section { padding: 48px 0 }
.card { border: 1px solid var(--edge); border-radius: 12px; padding: 20px; background: rgba(255,255,255,.03); max-width: 760px; margin: 0 auto }
.card h2 { margin: 0 0 .5rem }
.card p { margin: 0 0 .75rem }
.card ul { margin: .5rem 0 1rem; padding-left: 1.1rem }
.screenshot { width: 100%; border-radius: 12px; border: 1px solid var(--edge); box-shadow: 0 10px 30px rgba(0,0,0,.25) }
.muted { color: var(--muted) }

/* Large preview beneath the card */
.preview { max-width: 1100px; margin: 8px auto 0 }
.preview .screenshot { width: 100%; height: auto; max-height: clamp(380px, 70vh, 800px); border-radius: 12px; border: 1px solid var(--edge); box-shadow: 0 10px 30px rgba(0,0,0,.25) }
.preview .caption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 8px }

/* Frame ordering like artiFACTS */
.site-frame { display: flex; flex-direction: column }
@media (max-width:700px){
  /* Mobile order: main (wrap) → header → footer */
  .site-frame .wrap { order: 1 }
  .site-frame .site-header { order: 2 }
  .site-frame .site-footer { order: 3 }
}

/* Gallery modal styles (kept for parity, harmless if unused) */
.gallery-modal[hidden]{display:none}
.gallery-modal{position:fixed; inset:0; z-index:60}
.gallery-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter: blur(3px) saturate(120%)}
.gallery-panel{position:relative; margin:4rem auto; max-width:92vw; background:rgba(15,17,21,.55); backdrop-filter: blur(8px) saturate(120%); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:1rem 1.25rem 1.25rem; box-shadow:0 20px 80px rgba(0,0,0,.55)}
.gallery-grid{margin-top:.75rem; display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px}
.gallery-grid figure{margin:0; border-radius:12px; overflow:hidden; background:transparent; border:1px solid rgba(255,255,255,.08)}
.gallery-grid img{width:100%; height:260px; object-fit:cover; display:block}
.gallery-grid figcaption{display:none}
.gallery-grid.single{grid-template-columns:1fr}
.gallery-grid.single img{height:72vh; object-fit:contain; background:rgba(0,0,0,.35); border-radius:12px}

@media (max-width:600px) {
  .hero h1 { font-size: 34px }
  .hero-actions { display:flex; flex-direction:column; align-items:center; gap:10px }
  .hero-actions .btn, .hero-actions .btn.outline { width:100%; max-width:280px; text-align:center }
}

@media (min-width:1100px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); justify-content:center; gap:16px }
  .btn { display:inline-flex; align-items:center; justify-content:center; font-family:inherit; font-size:16px; line-height:1; font-weight:700; padding:12px 18px; border-radius:12px; border:2px solid var(--accent); background:transparent; color:var(--fg); text-decoration:none; cursor:pointer; appearance:none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease }
  .btn:hover, .btn:focus-visible { transform: translateY(-2px); background: rgba(88,208,255,.10); box-shadow: 0 2px 6px rgba(0,0,0,.30); text-decoration:none; outline:none }
  .hero-actions .btn { min-width: 160px }
}

/* Ensure single-column sections center content nicely */
.section .grid { grid-template-columns: 1fr }

/* Bottom menu on mobile: brand left; links stacked on right, right-aligned */
@media (max-width:700px){
  .site-header {
    display: flex;
    align-items: center;            /* align brand and links on center baseline */
    justify-content: space-between; /* brand to left, links group to right */
    gap: 8px;
    flex-wrap: nowrap;
    padding: 12px 16px;
  }
  .site-header .brand { font-size: 22px; flex: 0 0 auto; text-align: left }
  .site-header .nav {
    display: flex;
    flex-direction: column;         /* stacked links */
    align-items: flex-end;          /* right-aligned links */
    gap: 8px;
    flex: 0 0 auto;
  }
  .site-header .nav .btn { padding: 6px 10px; font-size: 14px; white-space: nowrap }
}
