:root {
    --bg: #0a0a0a; --surface: #111111; --border: #222222;
    --accent: #e8ff47; --accent2: #ff6b35; --accent3: #47c5ff;
    --text: #f0f0f0; --muted: #888;
    --p1: #e8ff47; --p2: #47c5ff; --p3: #ff6b35;
    --nav-h: 60px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.2rem; background: rgba(10,10,10,0.93); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--accent); letter-spacing: 2px; cursor: pointer; }
  .nav-links { display: flex; gap: 1.2rem; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; cursor: pointer; white-space: nowrap; }
  .nav-links a:hover, .nav-links a.active { color: var(--accent); }

  /* Hamburger */
  .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; background: none; border: none; padding: 8px; }
  .hamburger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile Drawer */
  .nav-drawer { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); flex-direction: column; z-index: 199; }
  .nav-drawer.open { display: flex; }
  .nav-drawer a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 1rem 1.4rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: all 0.2s; display: flex; align-items: center; gap: 0.6rem; }
  .nav-drawer a:last-child { border-bottom: none; }
  .nav-drawer a:active, .nav-drawer a.active { color: var(--accent); background: rgba(232,255,71,0.05); }

  /* SECTIONS */
  section { padding: 4rem 1.2rem; max-width: 1100px; margin: 0 auto; }

  /* HERO */
  .hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: calc(var(--nav-h) + 2rem); position: relative; overflow: hidden; max-width: 100% !important; padding-left: 5vw !important; padding-right: 5vw !important; }
  .hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.25; pointer-events: none; }
  .hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(100%, 720px); }
  .hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.2rem; }
  .hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 14vw, 9rem); line-height: 0.9; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.22em; flex-wrap: wrap; }
  .hero h1 span { color: var(--accent); }
  .hero-sub { font-size: clamp(0.88rem, 2.5vw, 1.05rem); color: var(--muted); max-width: 500px; line-height: 1.7; margin-bottom: 2rem; font-weight: 300; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0.8rem; width: fit-content; }
  .hero-stat { background: var(--surface); border: 1px solid var(--border); padding: 0.9rem 1.2rem; border-radius: 8px; }
  .hero-stat .val { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--accent); display: block; }
  .hero-stat .lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .hero-arrow { margin-top: 2.5rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; display: inline-block; }
  @keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

  /* HEADERS */
  .section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--accent); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 0.4rem; }
  .section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1; margin-bottom: 1.8rem; }

  /* PHASES */
  .phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
  .phase-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; position: relative; overflow: hidden; transition: transform 0.2s; }
  .phase-card:active { transform: scale(0.98); }
  .phase-card.p1 { border-top: 3px solid var(--p1); }
  .phase-card.p2 { border-top: 3px solid var(--p2); }
  .phase-card.p3 { border-top: 3px solid var(--p3); }
  .phase-num { font-family: 'Bebas Neue', sans-serif; font-size: 5rem; opacity: 0.07; position: absolute; top: -0.5rem; right: 1rem; line-height: 1; }
  .phase-tag { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 0.4rem; }
  .p1 .phase-tag { color: var(--p1); } .p2 .phase-tag { color: var(--p2); } .p3 .phase-tag { color: var(--p3); }
  .phase-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; margin-bottom: 0.2rem; letter-spacing: 1px; }
  .phase-months { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.8rem; }
  .phase-goals { list-style: none; }
  .phase-goals li { font-size: 0.88rem; color: var(--muted); padding: 0.28rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem; }
  .phase-goals li:last-child { border: none; }
  .phase-goals li::before { content: '→'; font-size: 0.68rem; flex-shrink: 0; }
  .p1 .phase-goals li::before { color: var(--p1); } .p2 .phase-goals li::before { color: var(--p2); } .p3 .phase-goals li::before { color: var(--p3); }

  /* TRACKER */
  .tracker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .tracker-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; }
  .tracker-box h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; margin-bottom: 1.1rem; letter-spacing: 1px; }
  .weight-display { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 1rem; }
  .weight-big { font-family: 'Bebas Neue', sans-serif; font-size: 3.6rem; color: var(--accent); }
  .weight-unit { font-size: 1.1rem; color: var(--muted); }
  .weight-bar-wrap { background: var(--border); border-radius: 100px; height: 8px; margin-bottom: 0.4rem; }
  .weight-bar { width: 0%; height: 8px; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.8s ease; }
  .weight-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; gap: 0.2rem; }
  .weight-input-row { display: flex; gap: 0.5rem; }
  .weight-input-row input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.7rem 0.8rem; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; outline: none; -webkit-appearance: none; }
  .weight-input-row input:focus { border-color: var(--accent); }
  .btn { background: var(--accent); color: #000; border: none; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.82rem; cursor: pointer; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; touch-action: manipulation; }
  .btn:active { opacity: 0.8; }

  .month-selector { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
  .month-btn { background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; touch-action: manipulation; min-width: 42px; text-align: center; }
  .month-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
  .month-target { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem; }
  .month-target .target-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; gap: 0.5rem; }
  .month-target .target-row:last-child { border: none; }
  .month-target .target-val { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; }
  .month-target .target-key { color: var(--muted); flex-shrink: 0; }
  .weight-history { margin-top: 1rem; }
  .weight-history-title { font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem; }
  .weight-history-row { display: flex; justify-content: space-between; padding: 0.22rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
  .weight-history-date { color: var(--muted); }
  .weight-history-value { font-family: 'JetBrains Mono', monospace; color: var(--accent); }

  /* VITALS */
  .vitals-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1.2rem; }
  .vital-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; }
  .vital-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
  .vital-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--accent3); }
  .vital-lbl { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.1rem; }

  /* STEPS */
  .steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; }
  .step-card .s-period { font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.2rem; }
  .step-card .s-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--accent); }
  .step-card .s-sub { font-size: 0.68rem; color: var(--muted); }

  /* WORKOUT */
  .schedule-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
  .tab { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 0.55rem 0.9rem; border-radius: 8px; font-size: 0.78rem; cursor: pointer; font-weight: 500; transition: all 0.2s; touch-action: manipulation; min-height: 44px; }
  .tab.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
  .schedule-panel { display: none; }
  .schedule-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
  .day-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; }
  .day-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; margin-bottom: 0.15rem; letter-spacing: 1px; }
  .day-type { font-size: 0.65rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem; }
  .exercise-list { list-style: none; }
  .exercise-list li { font-size: 0.85rem; color: var(--muted); padding: 0.22rem 0; display: flex; align-items: flex-start; gap: 0.4rem; }
  .exercise-list li::before { content: '•'; color: var(--accent); flex-shrink: 0; }
  .rest-day { color: var(--muted); font-style: italic; font-size: 0.88rem; }

  /* DIET */
  .diet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .meal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; }
  .meal-time { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.3rem; }
  .meal-time-spaced { margin-top: 0.7rem; }
  .meal-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; margin-bottom: 0.6rem; letter-spacing: 1px; }
  .meal-options { list-style: none; }
  .meal-options li { font-size: 0.84rem; color: var(--muted); padding: 0.18rem 0; }
  .option-label { font-size: 0.65rem; color: var(--accent2); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-top: 0.5rem; display: block; }
  .avoid-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
  .avoid-tag { background: rgba(255,107,53,0.12); color: var(--accent2); border: 1px solid rgba(255,107,53,0.3); padding: 0.18rem 0.55rem; border-radius: 100px; font-size: 0.7rem; }

  /* PROTEIN */
  .protein-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.7rem; margin-bottom: 1.5rem; }
  .protein-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem; text-align: center; }
  .protein-icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
  .protein-name { font-size: 0.72rem; color: var(--muted); }

  /* TIMELINE */
  .timeline-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .timeline { position: relative; padding-left: 2rem; }
  .timeline::before { content: ''; position: absolute; left: 0.4rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--p1), var(--p2), var(--p3)); border-radius: 2px; }
  .timeline-item { position: relative; margin-bottom: 1.8rem; }
  .timeline-dot { position: absolute; left: -1.7rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); }
  .timeline-item:nth-child(1) .timeline-dot,.timeline-item:nth-child(2) .timeline-dot { background: var(--p1); }
  .timeline-item:nth-child(3) .timeline-dot,.timeline-item:nth-child(4) .timeline-dot { background: var(--p2); }
  .timeline-item:nth-child(5) .timeline-dot,.timeline-item:nth-child(6) .timeline-dot { background: var(--p3); }
  .timeline-month { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.15rem; }
  .timeline-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; margin-bottom: 0.2rem; letter-spacing: 1px; }
  .timeline-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

  /* RULES */
  .rules-col { display: flex; flex-direction: column; gap: 0.8rem; }
  .rule-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: flex; gap: 0.9rem; align-items: flex-start; }
  .rule-icon { font-size: 1.4rem; flex-shrink: 0; }
  .rule-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; margin-bottom: 0.15rem; letter-spacing: 1px; }
  .rule-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

  /* BANNER */
  .tip-banner { background: linear-gradient(135deg, rgba(232,255,71,0.07), rgba(71,197,255,0.07)); border: 1px solid rgba(232,255,71,0.18); border-radius: 12px; padding: 1.8rem 1.2rem; text-align: center; }
  .tip-banner p { font-size: clamp(0.9rem, 2.5vw, 1.1rem); color: var(--text); line-height: 1.8; max-width: 680px; margin: 0 auto; }
  .tip-banner strong { color: var(--accent); }

  /* MISC */
  .divider { border: none; border-top: 1px solid var(--border); margin: 0; }
  footer { text-align: center; padding: 2.5rem 1.2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.8px; }
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .subhead { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; margin: 1.8rem 0 0.8rem; letter-spacing: 1px; }
  .subhead-flush { margin-top: 0; }

  /* ===== LARGE DESKTOP (>=1200px) ===== */
  @media (min-width: 1200px) {
    html { font-size: 18px; }
    :root { --nav-h: 68px; }
    nav { padding: 0 1.8rem; }
    section { max-width: 1280px; padding: 5rem 1.8rem; }
    .hero { padding-left: 6vw !important; padding-right: 6vw !important; }
    .hero-content { width: min(100%, 1120px); }
    .hero-sub { max-width: 680px; }
    .phases { grid-template-columns: repeat(3, 1fr); }
    .schedule-panel.active { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .diet-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* ===== EXTRA LARGE DESKTOP (>=1600px) ===== */
  @media (min-width: 1600px) {
    html { font-size: 19px; }
    section { max-width: 1440px; }
    .hero-content { width: min(100%, 1280px); }
  }

  /* ===== TABLET (≤900px) ===== */
  @media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .vitals-row { grid-template-columns: repeat(2, 1fr); }
    .timeline-inner { grid-template-columns: 1fr; gap: 2rem; }
  }

  /* ===== MOBILE (≤640px) ===== */
  @media (max-width: 640px) {
    :root { --nav-h: 56px; }
    section { padding: 2.8rem 1rem; }
    .hero { padding-left: 1rem !important; padding-right: 1rem !important; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .hero-stat .val { font-size: 1.9rem; }
    .tracker-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; gap: 0.6rem; }
    .vitals-row { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .phases { grid-template-columns: 1fr; }
    .schedule-panel.active { grid-template-columns: 1fr; }
    .diet-grid { grid-template-columns: 1fr; }
    .protein-grid { grid-template-columns: repeat(3, 1fr); }
    .tab { font-size: 0.75rem; padding: 0.5rem 0.7rem; }
    .weight-big { font-size: 3rem; }
    .tracker-box { padding: 1.1rem; }
  }

  /* ===== TINY (≤360px) ===== */
  @media (max-width: 360px) {
    .hero h1 { font-size: 3rem; }
    .protein-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stat .val { font-size: 1.7rem; }
    .hero-stat { padding: 0.7rem 0.9rem; }
  }
