/* ============================================
   Gigaton — Sany SY500H Landing Page
   Self-contained design system
   ============================================ */

/* --- TOKENS --- */
:root {
  --base: #0D1117;
  --base-dark: #080C12;
  --accent: #F0A500;
  --accent-dark: #C98900;
  --branco: #E6EDF3;
  --muted: hsl(215, 28%, 8%);
  --muted-fg: hsl(215, 10%, 60%);
  --glass-bg: hsla(215, 28%, 8%, 0.55);
  --glass-border: hsla(215, 10%, 95%, 0.08);

  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --f-h1: clamp(3rem, 1rem + 6vw, 7rem);
  --f-h2: clamp(2rem, 0.8rem + 3.5vw, 3.5rem);
  --f-h3: clamp(1.5rem, 0.6rem + 2vw, 2.2rem);
  --f-body: clamp(1.05rem, 0.85rem + 0.6vw, 1.35rem);
  --f-small: clamp(0.95rem, 0.8rem + 0.4vw, 1.15rem);
  --f-micro: clamp(0.85rem, 0.75rem + 0.3vw, 1rem);

  --pad-body: clamp(1rem, -1.125rem + 6.8vw, 3.125rem);
  --pad-section: clamp(4rem, 2rem + 6vw, 10rem);

  --tr-time: 550ms;
  --bezier: cubic-bezier(0.32, 0, 0.03, 0.99);
  --radius-btn: 100px;
  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-input: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--f-body);
  color: var(--branco);
  background: var(--base);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input { font-family: inherit; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-body);
}

/* --- TYPOGRAPHY --- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--f-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub {
  font-size: var(--f-body);
  color: var(--muted-fg);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all var(--tr-time) var(--bezier);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-accent {
  background: var(--accent);
  color: var(--base);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: scale(1.03);
  box-shadow: 0 0 40px hsla(40, 100%, 50%, 0.25);
}

.btn-lg {
  font-size: clamp(0.95rem, 0.7rem + 0.8vw, 1.2rem);
  padding: 1rem 2.5rem;
}

.btn-full { width: 100%; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 400ms var(--bezier);
}

.site-header.scrolled {
  background: hsla(215, 40%, 6%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem var(--pad-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted-fg);
  letter-spacing: 0.01em;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: tickerBlink 2s ease-in-out infinite;
}

@keyframes tickerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--pad-body) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/sany-sy500h-hero.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, hsla(215, 40%, 6%, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, hsla(215, 40%, 6%, 0.65) 0%, hsla(215, 40%, 4%, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--f-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: wordReveal 0.9s var(--bezier) forwards;
  animation-delay: calc(var(--i) * 0.3s + 0.2s);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-word:last-child {
  color: var(--accent);
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.15rem, 0.8rem + 1vw, 1.5rem);
  color: var(--branco);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-micro {
  font-size: var(--f-body);
  color: var(--branco);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  background: linear-gradient(90deg, var(--accent), var(--branco));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cta { margin-top: 0.5rem; }

.hero-cta .btn-accent {
  position: relative;
}

.hero-cta .btn-accent::before,
.hero-cta .btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.hero-cta .btn-accent::before {
  animation: btnRing 4.5s ease-out infinite;
}

.hero-cta .btn-accent::after {
  animation: btnRing 4.5s ease-out 2.25s infinite;
}

.hero-cta .btn-accent:hover::before,
.hero-cta .btn-accent:hover::after {
  animation: none;
  opacity: 0;
}

@keyframes btnRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.12, 1.5); opacity: 0; }
}

.hero-cta-micro {
  font-size: var(--f-micro);
  color: var(--muted-fg);
  opacity: 0.7;
  margin-top: 1rem;
  line-height: 1.6;
}

/* --- SECTIONS --- */
.section {
  padding: var(--pad-section) 0;
  text-align: center;
}

.section.pain,
.section.specs {
  background: var(--base-dark);
}

/* --- PROOF / METRICS --- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}

.proof-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--tr-time) var(--bezier);
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: hsla(40, 100%, 50%, 0.2);
  box-shadow: 0 20px 60px hsla(215, 100%, 5%, 0.4);
}

.proof-metric {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.proof-label {
  font-size: var(--f-small);
  color: var(--muted-fg);
  font-weight: 400;
}

/* --- PAIN --- */
.pain-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0;
  list-style: none;
  padding: 0;
}

.pain-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.7rem + 1.2vw, 1.6rem);
  font-weight: 500;
  color: var(--muted-fg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  background: hsla(0, 80%, 20%, 0.06);
  border-left: 3px solid transparent;
  width: 100%;
  max-width: 620px;
  transition: all var(--tr-time) var(--bezier);
}

.pain-item.visible {
  color: var(--branco);
  background: hsla(0, 80%, 20%, 0.12);
  border-left-color: hsl(0, 70%, 55%);
}

.pain-icon {
  font-size: 1.4em;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0.6);
  transition: filter var(--tr-time) var(--bezier);
}

.pain-item.visible .pain-icon {
  filter: none;
}

.pain-text { flex: 1; }

.pain-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(0, 70%, 60%);
  background: hsla(0, 70%, 50%, 0.12);
  padding: 0.2em 0.6em;
  border-radius: 100px;
  opacity: 0;
  transition: opacity var(--tr-time) var(--bezier);
  white-space: nowrap;
}

.pain-item.visible .pain-tag { opacity: 1; }

.pain-close {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
}

.pain-close strong {
  color: var(--accent);
}

/* --- MECHANISM --- */
.mechanism-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .mechanism-cards { grid-template-columns: 1fr 1fr; }
}

.mechanism-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--tr-time) var(--bezier);
}

.mechanism-card:hover {
  transform: translateY(-4px);
  border-color: hsla(40, 100%, 50%, 0.2);
  box-shadow: 0 20px 60px hsla(215, 100%, 5%, 0.4);
}

.mechanism-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.mechanism-card h3 {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mechanism-card p {
  font-size: var(--f-small);
  color: var(--muted-fg);
  line-height: 1.7;
}

.mechanism-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .mechanism-gallery { grid-template-columns: 1fr 1fr; }
}

.mechanism-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

/* --- VIDEO DEMO --- */
.video-demo {
  background: var(--base);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.video-vertical {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--base-dark);
  border: 1px solid var(--glass-border);
  aspect-ratio: 9 / 16;
}

.video-vertical iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-vertical video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 300ms var(--bezier);
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-overlay svg {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* --- SPECS --- */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
}

.specs-group {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.specs-group h3 {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.specs-group table {
  width: 100%;
  border-collapse: collapse;
}

.specs-group tr {
  border-bottom: 1px solid hsla(215, 10%, 95%, 0.04);
}

.specs-group tr:last-child {
  border-bottom: none;
}

.specs-group td {
  padding: 0.5rem 0;
  font-size: var(--f-small);
  vertical-align: top;
}

.specs-group td:first-child {
  color: var(--muted-fg);
  padding-right: 1rem;
}

.specs-group td:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--branco);
  text-align: right;
  white-space: nowrap;
}

/* --- ANCHOR --- */
.anchor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .anchor-grid { grid-template-columns: 1fr 1fr; }
}

.anchor-col {
  padding: 2rem;
  border-radius: var(--radius-card);
}

.anchor-col h3 {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.anchor-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.anchor-col li {
  font-size: var(--f-small);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.anchor-without {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.x-mark {
  color: #ff4d4d;
  font-weight: 700;
  font-size: 0.85em;
  flex-shrink: 0;
}

.anchor-with {
  background: hsla(40, 100%, 50%, 0.05);
  border: 1px solid hsla(40, 100%, 50%, 0.15);
  position: relative;
}

.anchor-glow {
  animation: withGlow 3s ease-in-out infinite alternate;
}

@keyframes withGlow {
  0% {
    box-shadow: 0 0 20px hsla(40, 100%, 50%, 0.05), 0 0 40px hsla(40, 100%, 50%, 0.02);
  }
  100% {
    box-shadow: 0 0 30px hsla(40, 100%, 50%, 0.12), 0 0 60px hsla(40, 100%, 50%, 0.06);
  }
}

.anchor-with h3 { color: var(--accent); }

.check-mark {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9em;
  flex-shrink: 0;
}

.anchor-close {
  font-family: var(--font-display);
  font-size: var(--f-h2);
  font-weight: 700;
  color: var(--accent);
}

/* --- CTA + FORM --- */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, hsla(40, 100%, 50%, 0.06) 0%, transparent 50%),
    var(--base);
}

.lead-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--glass-border);
  background: hsla(215, 28%, 6%, 0.6);
  color: var(--branco);
  font-size: var(--f-body);
  outline: none;
  transition: border-color 300ms var(--bezier);
}

.form-field input::placeholder { color: var(--muted-fg); opacity: 0.6; }

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(40, 100%, 50%, 0.1);
}

.form-micro {
  font-size: var(--f-micro);
  color: var(--muted-fg);
  text-align: center;
  opacity: 0.6;
  margin-top: 0.5rem;
}

.form-success {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--base);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--muted-fg);
  font-size: var(--f-body);
}

/* --- FOOTER --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: var(--f-micro);
  color: var(--muted-fg);
  opacity: 0.4;
}

.footer-disclaimer {
  font-size: var(--f-micro);
  color: var(--muted-fg);
  opacity: 0.3;
  font-style: italic;
}

/* --- POPUP --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: hsla(215, 40%, 4%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--bezier);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  background: hsla(215, 28%, 8%, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 400ms var(--bezier);
}

.popup-overlay.active .popup-card {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  color: var(--muted-fg);
  font-size: 1.8rem;
  line-height: 1;
  transition: color 300ms;
}

.popup-close:hover { color: var(--branco); }

.popup-title {
  font-family: var(--font-display);
  font-size: var(--f-h3);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.popup-sub {
  font-size: var(--f-small);
  color: var(--muted-fg);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-micro {
  font-size: var(--f-micro);
  color: var(--muted-fg);
  text-align: center;
  opacity: 0.6;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--bezier),
    transform 0.7s var(--bezier);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[style*="--i"] {
  transition-delay: calc(var(--i) * 0.12s);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-word { opacity: 1; transform: none; }
}

/* --- MOBILE REFINEMENTS --- */
@media (max-width: 767px) {
  :root {
    --f-h1: max(2.8rem, 10svw);
    --f-h2: max(1.8rem, 6.5svw);
    --f-h3: max(1.4rem, 5svw);
    --f-body: max(1.05rem, 4svw);
    --f-small: max(0.95rem, 3.5svw);
    --f-micro: max(0.85rem, 3svw);
  }

  .hero { min-height: 90svh; padding-top: 6rem; }
  .hero-sub { font-size: max(1.15rem, 4.5svw); line-height: 1.5; }
  .hero-micro { font-size: max(1rem, 4svw); }
  .hero-cta-micro { font-size: max(0.85rem, 3svw); }
  .btn-accent { font-size: max(1rem, 3.8svw); padding: 1rem 2rem; }
  .section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
  .section-title { font-size: var(--f-h2); }
  .section-subtitle { font-size: var(--f-body); }
  .proof-card { padding: 1.5rem 1rem; }
  .proof-number { font-size: max(2rem, 7svw); }
  .proof-label { font-size: var(--f-small); }
  .pain-text { font-size: var(--f-body); }
  .mechanism-card { padding: 1.5rem; }
  .mechanism-card h3 { font-size: var(--f-h3); }
  .mechanism-card p { font-size: var(--f-body); }
  .anchor-col { padding: 1.5rem; }
  .anchor-item { font-size: var(--f-body); }
  .spec-value { font-size: max(1.1rem, 4svw); }
  .lead-form input,
  .lead-form select,
  .lead-form textarea { font-size: max(1rem, 3.8svw); padding: 0.9rem 1rem; }
  .popup-card { padding: 2rem 1.5rem; }
  .mechanism-gallery img { height: 200px; }
  .header-logo img { height: max(36px, 9svw); }
  .header-ticker { font-size: max(0.75rem, 2.8svw); }
  .footer-logo { height: max(28px, 7svw); }
}
