/*
Theme Name: FORM Fitness
Theme URI: https://fitness.davidarm.com
Author: David Arm
Description: A precision fitness tracker coming soon theme. Dark, minimal design with lime accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: form-fitness
*/

/* ==========================================================================
   Base & Variables
   ========================================================================== */

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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --lime: #c6f135;
  --lime-dim: rgba(198,241,53,0.12);
  --white: #f0f0ec;
  --muted: #4a4a4a;
  --border: #1e1e1e;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  overflow: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.6;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.page {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px;
  position: relative;
  overflow: hidden;
}

/* BG ring decorations */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.ring-1 { width: 700px; height: 700px; right: -200px; top: -200px; }
.ring-2 { width: 500px; height: 500px; right: -100px; top: -100px; border-color: #1a1a1a; }
.ring-3 { width: 300px; height: 300px; right: 0px; top: 0px; border-color: #222; }
.ring-4 { width: 900px; height: 900px; right: -280px; top: -280px; border-color: #151515; }

/* Lime accent arc */
.arc {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -200px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--lime);
  border-right-color: var(--lime);
  animation: spin 18s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeUp 0.8s ease both;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--white);
}
.site-logo span {
  color: var(--lime);
}

.badge {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 2px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  animation: fadeUp 0.9s ease 0.15s both;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--lime);
}

.site-main h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.site-main h1 .accent {
  color: var(--lime);
  display: block;
}

.sub {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
  margin: 28px 0 40px;
  letter-spacing: 0.04em;
}

/* Heartbeat SVG line */
.heartbeat-wrap {
  width: min(420px, 90%);
  margin-bottom: 40px;
}
.heartbeat-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.5s ease 0.6s forwards, pulse 3s ease 3.1s infinite;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Stats row */
.stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  width: fit-content;
  margin-bottom: 44px;
  animation: fadeUp 1s ease 0.35s both;
}
.stat {
  padding: 14px 28px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--lime);
  letter-spacing: 0.05em;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 4px;
}

/* Email form */
.notify {
  display: flex;
  gap: 0;
  width: fit-content;
  animation: fadeUp 1s ease 0.5s both;
}
.notify input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 13px 20px;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus { border-color: var(--lime); }
.notify button {
  background: var(--lime);
  border: 1px solid var(--lime);
  color: #0a0a0a;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 13px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.notify button:hover {
  background: transparent;
  color: var(--lime);
}

.success-msg {
  display: none;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  animation: fadeUp 1s ease 0.65s both;
}
.url {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: lowercase;
}
.url span { color: var(--white); }

.features {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.feature-item {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.6;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Countdown
   ========================================================================== */

.countdown {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 10px;
}
.cd-block { text-align: center; }
.cd-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  min-width: 52px;
  display: block;
}
.cd-lbl {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--border);
  line-height: 1;
  padding-bottom: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .page { padding: 20px; }
  .site-main h1 { font-size: clamp(4rem, 18vw, 6rem); }
  .stats { display: none; }
  .notify input { width: 180px; }
  .features { display: none; }
}
