/* ============================================
   IRON PULSE — style.css
   Mobile-first. Paleta "Forge".
   ============================================ */

:root {
  --bg: #100d0b;
  --surface: #1a1613;
  --surface-2: #221d19;
  --text: #f0ebe4;
  --muted: #9b9088;
  --accent: #ff4d1c;
  --accent-2: #ffb347;
  --line: rgba(240, 235, 228, 0.08);
  --line-strong: rgba(240, 235, 228, 0.16);

  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --maxw: 1140px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  margin-bottom: 40px;
  max-width: 620px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 11vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

h3 {
  font-size: 1.4rem;
  letter-spacing: 0.8px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hl {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #1a0e08;
}

.btn-primary:hover {
  background: #ff6a40;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.full {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 13, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-accent {
  color: var(--accent);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 77, 28, 0.6);
}

/* ---------- Nav ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: 68px 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 16px 20px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--accent) !important;
  border-bottom: 0 !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 64px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255, 77, 28, 0.18), transparent 55%),
    linear-gradient(rgba(16, 13, 11, 0.82), rgba(16, 13, 11, 0.68)),
    url('assets/victor-freitas-WvDYdXDzkhs-unsplash.jpg') center / cover no-repeat;
}

.hero-inner {
  max-width: 880px;
}

.hero h1 {
  margin: 8px 0 22px;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Signature: pulse line */
.pulse {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.pulse svg {
  width: 100%;
  height: 80px;
  display: block;
}

.pulse-path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 77, 28, 0.5));
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: trace 6.2s var(--ease) forwards, beat 2.6s 3.2s ease-in-out infinite;
}

@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes beat {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.card h3 {
  margin: 14px 0 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  gap: 36px;
}

.split-text h2 {
  margin: 8px 0 18px;
}

.split-text p {
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 48ch;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 16px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.stat dt {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  margin: 8px 0 0;
  color: var(--accent);
}

/* ---------- Quotes ---------- */
.quote-grid {
  display: grid;
  gap: 18px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.quote blockquote {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.quote em {
  color: var(--accent-2);
  font-style: italic;
}

.quote-by {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  gap: 18px;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -30px rgba(255, 77, 28, 0.7);
}

.badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--accent);
  color: #1a0e08;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 22px;
}

.price .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--text);
}

.price .per {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  flex: 1;
}

.price-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff6a55;
}

.error {
  margin: 0;
  min-height: 1em;
  font-size: 0.82rem;
  color: #ff8a73;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-2);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-list a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 16px;
  align-items: center;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
  background: rgba(255, 77, 28, 0.1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #1a0e08;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.reveal[data-dir="left"]   { transform: translateX(-32px); }
.reveal[data-dir="right"]  { transform: translateX(32px); }
.reveal[data-dir="bottom"] { transform: translateY(20px); }

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Stagger za grupe kartica */
.card-grid  .card:nth-child(2),
.quote-grid .quote:nth-child(2),
.price-grid .price-card:nth-child(2) { transition-delay: 0.18s; }

.card-grid  .card:nth-child(3),
.quote-grid .quote:nth-child(3),
.price-grid .price-card:nth-child(3) { transition-delay: 0.36s; }

/* ---------- Free Plan Section ---------- */
.section-free-plan {
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 77, 28, 0.1), transparent),
    var(--bg);
  border-top: 1px solid rgba(255, 77, 28, 0.2);
}

.plan-features {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 77, 28, 0.5);
}

.plan-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
}

.plan-form-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.plan-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1em;
  line-height: 1.5;
}

/* ---------- Social Sidebar ---------- */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.social-link:hover {
  color: var(--accent);
  background: rgba(255, 77, 28, 0.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- TDEE Toggle ---------- */
.tdee-toggle {
  position: fixed;
  right: 20px;
  bottom: 32px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a0e08;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 77, 28, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.tdee-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 77, 28, 0.6);
  background: #ff6a40;
}

.tdee-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- TDEE Overlay ---------- */
.tdee-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.6);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.tdee-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- TDEE Panel ---------- */
.tdee-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(380px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  z-index: 50;
  overflow-y: auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tdee-panel.open {
  transform: translateX(0);
}

.tdee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tdee-header h3 {
  font-size: 1.6rem;
}

.tdee-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tdee-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tdee-close svg {
  width: 16px;
  height: 16px;
}

.tdee-intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

#tdee-form {
  display: grid;
  gap: 18px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding-right: 50px;
}

.unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- TDEE Result ---------- */
.tdee-result {
  display: grid;
  gap: 14px;
}

.tdee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tdee-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}

.tdee-card-main {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.tdee-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.tdee-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  margin: 0 0 4px;
}

.tdee-card-main .tdee-card-value {
  color: var(--accent);
}

.tdee-card-unit {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0;
}

.tdee-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item.open {
  border-color: var(--line-strong);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-btn:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-btn[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  margin: 0;
  height: 0;
  overflow: hidden;
  transition: height 0.35s var(--ease);
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   Responsive — tablet & desktop
   ============================================ */
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
  }
  .footer-copy {
    text-align: center;
  }
}

@media (min-width: 760px) {
  .section {
    padding: 96px 0;
  }
  .card-grid,
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }
  .stats {
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-menu a {
    border: 0;
    padding: 8px 14px;
  }
  .nav-cta {
    border: 1px solid var(--line-strong) !important;
    border-radius: 999px;
    padding: 9px 18px !important;
  }
  .nav-cta:hover {
    border-color: var(--accent) !important;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .pulse-path {
    stroke-dashoffset: 0;
  }
}
