/* ============================================================
   SNergie Landing — Redesign 2026
   Mobile-first · Tesla aesthetic · WhatsApp-focused
   Palette: #080d16 bg · #f5c42c accent · Outfit font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bg:         #080d16;
  --surface:    #0d1420;
  --surface-2:  #131c2b;
  --border:     rgba(255, 255, 255, 0.07);
  --accent:     #f5c42c;
  --accent-dim: rgba(245, 196, 44, 0.10);
  --text:       #e4eaf6;
  --text-dim:   #66768f;
  --radius:     14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
strong { font-weight: 700; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── WhatsApp button ── */
.btn-wa {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #080d16;
  padding: 18px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.btn-wa:hover  { opacity: 0.88; transform: translateY(-2px); }
.btn-wa:active { transform: translateY(0); opacity: 1; }

/* ── QR block (hidden on mobile) ── */
.qr-block {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-img {
  border-radius: 8px;
  border: 2px solid rgba(245, 196, 44, 0.25);
  background: #fff;
  padding: 5px;
}
.qr-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── CTA wrap (button + qr) ── */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Header ── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 0;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img  { height: 30px; width: auto; }

/* ══════════════════════════════════════════════════════════ HERO */
.hero {
  position: relative;
  min-height: 100svh;          /* safe-area aware */
  display: flex;
  align-items: center;
  text-align: center;
  padding: 110px 0 80px;
  overflow: hidden;
}

/* Diagonal grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 196, 44, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 196, 44, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Radial golden glow */
.hero-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(245, 196, 44, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 196, 44, 0.30);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── Hero entry animations (CSS only, no JS) ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.anim-1 { animation: slideUp 0.7s ease both; animation-delay: 0.10s; }
.anim-2 { animation: slideUp 0.7s ease both; animation-delay: 0.26s; }
.anim-3 { animation: slideUp 0.7s ease both; animation-delay: 0.42s; }
.anim-4 { animation: slideUp 0.7s ease both; animation-delay: 0.58s; }

/* ══════════════════════════════════════════════════════ USE CASES */
.use-cases {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cards-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.use-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.use-card:hover {
  border-color: rgba(245, 196, 44, 0.30);
  transform: translateY(-2px);
}

.use-icon  { font-size: 2rem; display: block; margin-bottom: 14px; }
.use-title {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.use-line {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════ CHAT SECTION */
.chat-section {
  padding: 96px 0;
  background: var(--bg);
}

.chat-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.chat-text h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-top: 12px;
}

/* Phone frame (CSS-only) */
.phone-frame {
  width: 280px;
  background: var(--surface-2);
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-notch {
  width: 72px;
  height: 18px;
  background: #080d16;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.chat-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 196, 44, 0.06);
}
.chat-avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #080d16;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.chat-name   { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.chat-status { font-size: 0.62rem; color: #25d366; margin-top: 1px; }

.chat-messages {
  padding: 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.msg {
  font-size: 0.77rem;
  line-height: 1.55;
  padding: 9px 12px 16px;
  border-radius: 14px;
  max-width: 86%;
  position: relative;
}
.msg p + p { margin-top: 3px; }

.msg-in {
  background: #1b2436;
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg-in strong { color: var(--accent); }

.msg-out {
  background: rgba(245, 196, 44, 0.13);
  color: var(--text);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  text-align: right;
}

.msg-time {
  display: block;
  font-size: 0.58rem;
  color: var(--text-dim);
  position: absolute;
  bottom: 4px;
  right: 10px;
  line-height: 1;
}

/* ════════════════════════════════════════════ DASHBOARD TEASER */
.dash-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.dash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.dash-text h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dash-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.dash-link:hover { opacity: 0.72; }

.dash-visual { width: 100%; }

.dash-placeholder {
  background: var(--bg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════ REPEAT CTA */
.cta-section {
  padding: 96px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-inner { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.cta-section .cta-wrap { align-items: center; }

/* ════════════════════════════════════════════════════ FOOTER */
.site-footer {
  padding: 26px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ════════════════════════════════════════ SCROLL FADE-IN
   Progressive enhancement: without JS everything is visible.
   JS adds .js-anim to <body>, enabling the hidden initial state. */
.fade-in {
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-anim .fade-in {
  opacity: 0;
  transform: translateY(22px);
}
.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ════════════════════════════════════════════ RESPONSIVE */

/* Mobile only (<640px): tighter section padding */
@media (max-width: 639px) {
  .use-cases    { padding: 52px 0; }
  .chat-section { padding: 60px 0; }
  .dash-section { padding: 52px 0; }
  .cta-section  { padding: 60px 0; }
  .hero         { padding-bottom: 64px; }

  /* Full-width CTA wrap */
  .cta-wrap { width: 100%; }

  /* Reduce chat-inner gap on mobile */
  .chat-inner { gap: 36px; }
}

/* Tablet+ (640px) */
@media (min-width: 640px) {
  .cards-row {
    flex-direction: row;
    gap: 18px;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
  /* Show QR */
  .qr-block { display: flex; }

  /* CTA: button + QR side by side */
  .cta-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: auto;
  }

  /* btn-wa: natural width on desktop */
  .btn-wa {
    display: inline-flex;
    width: auto;
    font-size: 1.05rem;
    padding: 17px 34px;
  }

  /* Chat: side by side */
  .chat-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }
  .chat-text { flex: 1; max-width: 440px; }
  .phone-wrap { flex: 0 0 auto; }

  /* Dashboard: side by side */
  .dash-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }
  .dash-text { flex: 1; max-width: 440px; }
  .dash-visual { flex: 0 0 360px; }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
  .hero h1 { font-size: 4.6rem; }
}
