/* Chess Clock marketing site — dark instrument look, teal accents, matches the app. */

:root {
  --bg:        #0c0e0f;
  --bg-soft:   #15181a;
  --card:      #1b1f21;
  --ink:       #ece8e1;
  --soft:      #9a958c;
  --line:      rgba(255, 255, 255, 0.08);
  --teal:      #4cb3a9;
  --teal-lite: #6fd3c8;
  --teal-deep: #0d7680;
  --lcd:       #c7d2bd;
  --radius:    18px;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--teal-lite); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; max-width: var(--maxw); margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav nav a { color: var(--soft); margin-left: 22px; font-size: 15px; }
.nav nav a:first-child { margin-left: 0; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 60px 0 44px;
  background:
    radial-gradient(circle at 50% 22%, rgba(76, 179, 169, 0.20), transparent 58%),
    linear-gradient(180deg, #16191b 0%, var(--bg) 72%);
  border-bottom: 1px solid var(--line);
}

/* The chess king, engraved into the dark plastic behind the hero — the welcome-screen motif.
   Layered text-shadows fake the recess: a faint lit lower lip, a darker upper shadow. */
.king-inlay {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  font-size: min(78vw, 540px); line-height: 1;
  z-index: 0; pointer-events: none; user-select: none;
  color: rgba(111, 211, 200, 0.05);
  text-shadow:
    0 3px 2px rgba(255, 255, 255, 0.045),
    0 -2px 3px rgba(0, 0, 0, 0.6);
  filter: blur(0.4px);
}

.hero .wrap { position: relative; z-index: 1; }
.hero img.appicon { width: 92px; height: 92px; border-radius: 21px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.hero h1 {
  font-size: clamp(34px, 7vw, 62px); letter-spacing: -0.025em; line-height: 1.05;
  margin: 24px 0 10px; font-weight: 700;
}
.hero .dek { font-size: clamp(17px, 2.4vw, 22px); color: var(--soft); max-width: 560px; margin: 0 auto 30px; }

/* ---- App Store badge ---- */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 22px 12px 18px; border-radius: 13px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.appstore:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }
.appstore svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.appstore .lines { text-align: left; line-height: 1.1; }
.appstore .lines small { display: block; font-size: 11px; opacity: 0.85; letter-spacing: 0.02em; }
.appstore .lines strong { display: block; font-size: 19px; font-weight: 600; }
.hint { display: block; margin-top: 14px; font-size: 13px; color: var(--soft); }

/* ---- hero shot ---- */
.hero-shot { margin: 46px auto 0; max-width: 920px; }
.hero-shot img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

/* ---- features ---- */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; text-align: center; margin: 0 0 8px; }
section .sub { text-align: center; color: var(--soft); max-width: 560px; margin: 0 auto 44px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.feature .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
  background: rgba(76, 179, 169, 0.12); color: var(--teal-lite);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--soft); font-size: 15px; }

/* ---- footer ---- */
footer { padding: 48px 0 64px; text-align: center; color: var(--soft); font-size: 14px; border-top: 1px solid var(--line); }
footer .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink); font-weight: 600; }
footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
footer nav a { margin: 0 12px; color: var(--soft); }
footer nav a:hover { color: var(--ink); text-decoration: none; }
footer .copy { margin-top: 18px; opacity: 0.7; }

/* ---- article (privacy page) ---- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.article h1 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 4px; }
.article .meta { color: var(--soft); margin-top: 0; font-size: 15px; }
.article h2 { font-size: 21px; margin-top: 38px; }
.article p, .article li { color: #d8d3ca; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; }

/* ---- mobile ---- */
@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .nav .brand img { width: 30px; height: 30px; }
  .nav nav a { margin-left: 16px; }
  .hero { padding: 40px 0 32px; }
  .hero img.appicon { width: 78px; height: 78px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  .king-inlay { top: 34%; }
}
