/* ============================================
   BERGAX — style.css
   ============================================ */

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

:root {
  --bg:         #0a0b0d;
  --surface:    #111317;
  --surface2:   #181b1f;
  --surface3:   #1e2126;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.13);
  --ice:        #c8dff0;
  --ice-dim:    rgba(200,223,240,0.45);
  --ice-glow:   rgba(200,223,240,0.07);
  --peak:       #eaf5ff;
  --muted:      rgba(200,223,240,0.32);
  --green:      #4ade80;
  --yellow:     #facc15;
  --danger-col: #e05a3a;
  --font-d:     'Bebas Neue', sans-serif;
  --font-b:     'DM Sans', sans-serif;
  --font-m:     'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font-b);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  justify-content: flex-start;
}

/* ── NAV ───────────────────────────────────── */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-d);
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  color: var(--peak);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-tag {
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s, box-shadow 0.3s;
}
.pulse-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
  animation: blink 2s ease infinite;
}
.pulse-dot.paused { background: var(--yellow); }
.pulse-dot.done   { background: var(--ice); }

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.mountain-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  max-width: 1400px;
  opacity: 0.035;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  animation: fadeUp 0.9s ease both;
}

.tagline-small {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.headline {
  font-family: var(--font-d);
  font-size: clamp(4rem, 11vw, 9rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--peak);
  margin-bottom: 1.8rem;
}

.headline span {
  color: var(--ice);
  opacity: 0.42;
}

.sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 380px;
}

.scroll-cta {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ice-dim);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 0.7rem 1.6rem;
  transition: all 0.2s;
}
.scroll-cta:hover {
  border-color: var(--ice-dim);
  color: var(--peak);
  background: var(--ice-glow);
}

/* ── TOOL SECTION ───────────────────────────── */
.tool-section {
  padding: 0 1.5rem 5rem;
  margin-top: -1px;
  display: flex;
  justify-content: center;
  flex: 1;
}

/* Screenreader-only h1 for SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Subtle mountain silhouette on body bg */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 55vh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpolygon points='600,10 1100,400 100,400' fill='white' opacity='0.022'/%3E%3Cpolygon points='250,100 480,400 20,400' fill='white' opacity='0.018'/%3E%3Cpolygon points='900,70 1180,400 620,400' fill='white' opacity='0.018'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.tool-section, .why-section, footer { position: relative; z-index: 1; }

.tool-wrap {
  width: 100%;
  max-width: 620px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,223,240,0.5) 50%, transparent 100%);
  pointer-events: none;
}

.tool-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-title {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s;
}
.status-dot.active { background: var(--green); box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.status-dot.paused { background: var(--yellow); }
.status-dot.done   { background: var(--ice); }

.tool-body {
  padding: 2rem 1.75rem;
}

/* SETUP */
.task-group { margin-bottom: 2rem; }

.field-label {
  display: block;
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.task-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--peak);
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.01em;
  -webkit-appearance: none;
}
.task-input::placeholder { color: var(--muted); }
.task-input:focus { border-color: rgba(200,223,240,0.3); }

.duration-group { margin-bottom: 2rem; }

.duration-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dur-btn {
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
}
.dur-btn:hover { border-color: var(--ice-dim); color: var(--ice); }
.dur-btn.selected {
  background: var(--ice-glow);
  border-color: rgba(200,223,240,0.5);
  color: var(--peak);
}

.custom-dur {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.custom-dur input {
  width: 72px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--peak);
  font-family: var(--font-m);
  font-size: 0.78rem;
  padding: 0.42rem 0.6rem;
  outline: none;
  text-align: center;
  -webkit-appearance: none;
}
.custom-dur input:focus { border-color: rgba(200,223,240,0.3); }
.custom-dur span {
  font-family: var(--font-m);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.start-btn {
  width: 100%;
  background: var(--ice-glow);
  border: 1px solid rgba(200,223,240,0.4);
  border-radius: 2px;
  color: var(--peak);
  font-family: var(--font-d);
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.start-btn:hover { background: rgba(200,223,240,0.12); }
.start-btn:active { transform: scale(0.99); }

/* ACTIVE VIEW */
.active-task {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.25rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.timer-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.timer-big {
  font-family: var(--font-d);
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  letter-spacing: 0.06em;
  color: var(--peak);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.colon {
  display: inline-block;
  animation: colonBlink 1s step-end infinite;
}
@keyframes colonBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.mountain-stage { margin-bottom: 2rem; }

.mtn-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 0.75rem;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.25rem;
}

.progress-track {
  flex: 1;
  height: 1.5px;
  background: var(--border2);
  border-radius: 1px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ice);
  border-radius: 1px;
  width: 0%;
  transition: width 1s linear;
}

.progress-pct {
  font-family: var(--font-m);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  min-width: 34px;
  text-align: right;
}

.session-controls {
  display: flex;
  gap: 0.6rem;
}

/* SUMMIT VIEW */
.summit-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 0 1.5rem;
}

.summit-word {
  font-family: var(--font-d);
  font-size: 4.5rem;
  letter-spacing: 0.12em;
  color: var(--peak);
  animation: summitPulse 2.5s ease infinite;
}

@keyframes summitPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.summit-label {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.summit-task {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--ice-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* BUTTONS */
.ctrl-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}
.ctrl-btn:hover { border-color: var(--ice-dim); color: var(--ice); }
.ctrl-btn.primary {
  background: var(--ice-glow);
  border-color: rgba(200,223,240,0.4);
  color: var(--peak);
}
.ctrl-btn.primary:hover { background: rgba(200,223,240,0.12); }
.ctrl-btn.danger { border-color: rgba(224,90,58,0.35); color: rgba(224,90,58,0.7); }
.ctrl-btn.danger:hover { background: rgba(224,90,58,0.08); border-color: var(--danger-col); color: var(--danger-col); }
.ctrl-btn.wide { width: 100%; max-width: 260px; flex: none; }

/* STATS */
.stats-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1;
  padding: 1.1rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--font-d);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--peak);
  line-height: 1;
}

.stat-lbl {
  font-family: var(--font-m);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── WHY SECTION ────────────────────────────── */
.why-section {
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
}

.why-inner {
  max-width: 900px;
  margin: 0 auto;
}

.why-label {
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.why-num {
  font-family: var(--font-d);
  font-size: 3rem;
  color: rgba(200,223,240,0.1);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.why-title {
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--peak);
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.why-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.72;
  font-weight: 300;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-d);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: rgba(200,223,240,0.25);
}

.footer-tag {
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── PARTICLES ──────────────────────────────── */
.particle {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  color: var(--ice);
  animation: particleFall 3.5s ease-in forwards;
  top: -20px;
  z-index: 999;
  user-select: none;
}

@keyframes particleFall {
  0%   { opacity: 0.9; transform: translateY(0) rotate(0deg) scale(1); }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg) scale(0.5); }
}

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 1.2rem 1.25rem; }
  .nav-tag { display: none; }
  .hero { min-height: 65vh; padding: 5rem 1.25rem 3rem; }
  .tool-body { padding: 1.5rem 1.25rem; }
  .stat { padding: 1rem; }
  footer { padding: 1.5rem 1.25rem; }
  .why-section { padding: 4rem 1.25rem; }
}

/* ══════════════════════════════════════════
   BREAK SCREEN
══════════════════════════════════════════ */
.break-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 2rem;
  gap: 1.25rem;
}

.break-label {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 280px;
  line-height: 1.6;
}

.break-track-wrap {
  width: 100%;
  padding: 0 1rem;
}

.break-track {
  width: 100%;
  height: 1.5px;
  background: var(--border2);
  border-radius: 1px;
  overflow: hidden;
}

.break-fill {
  height: 100%;
  background: rgba(200,223,240,0.35);
  border-radius: 1px;
  width: 0%;
  transition: width 1s linear;
}

.break-hint {
  font-family: var(--font-m);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: rgba(200,223,240,0.18);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SHARE CARD
══════════════════════════════════════════ */
.share-card {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 1.25rem;
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.share-label {
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.share-text {
  font-family: var(--font-m);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--ice);
  white-space: pre-wrap;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: 0.02em;
  user-select: all;
}

/* Summit actions row */
.summit-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.25rem;
}
