/* ─── Sensyno Design System v2 ────────────────────────────────────────
   Shared tokens, base, components.
   Page-specific styles live in each page's <style> block.
──────────────────────────────────────────────────────────────────────── */

/* 1 · Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 2 · Design Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:        #0A0E1A;
  --bg-elev:   #0F1420;
  --bg-card:   #131828;
  --bg-inset:  #1B2136;

  --border:        rgba(255,255,255,0.06);
  --border-md:     rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.16);
  --border-focus:  rgba(0,229,255,0.5);

  --text:       #F5F5F7;
  --text-dim:   #A0A5B8;
  --text-faint: #5A6076;

  --cyan:          #00E5FF;
  --cyan-glow:     rgba(0,229,255,0.12);
  --cyan-bg:       rgba(0,229,255,0.08);
  --emerald:       #10B981;
  --emerald-glow:  rgba(16,185,129,0.18);
  --emerald-bg:    rgba(16,185,129,0.08);
  --violet:        #7C3AED;
  --violet-bg:     rgba(124,58,237,0.10);

  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;
  --s-9:96px;

  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.65);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.8);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 3 · Base ───────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* 4 · Focus ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* 5 · Container ──────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* 6 · Section base ───────────────────────────────────────────────────── */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

/* 7 · Section label ──────────────────────────────────────────────────── */
.s-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}

/* 8 · Section header ─────────────────────────────────────────────────── */
.s-header { margin-bottom: clamp(36px, 5vw, 56px); }
.s-header--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.s-header h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--s-3);
}
.s-header p { font-size: 17px; color: var(--text-dim); line-height: 1.75; }

/* 9 · Scroll-reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 10 · Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: none !important; }

.btn-primary {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 24px rgba(0,229,255,0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-md);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--r-lg);
  min-height: 52px;
}

/* 11 · Card base ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 12 · Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  background: var(--bg-inset);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  padding: 5px 14px;
}
.badge--cyan    { color: var(--cyan);    background: var(--cyan-bg);    border-color: rgba(0,229,255,0.2);   }
.badge--emerald { color: var(--emerald); background: var(--emerald-bg); border-color: rgba(16,185,129,0.2); }

/* 13 · Navigation ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.75);
  border-bottom: 1px solid var(--border);
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,14,26,0.96);
  border-bottom-color: var(--border-md);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--s-5);
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--r-md);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); background: var(--bg-card); }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  background: none;
  border: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--s-3) 0 var(--s-5);
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--text); }
.nav__mobile .btn {
  margin-top: var(--s-3);
  justify-content: center;
  border-bottom: none;
  padding: 13px 20px;
}
.nav__mobile .btn-whatsapp,
.nav__mobile .btn-whatsapp:hover { color: #fff; }

/* 14 · Form fields ───────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.form-field label { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.form-field input,
.form-field textarea {
  background: var(--bg-inset);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* 15 · Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 0;
  margin-top: var(--s-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--border);
}
.footer__brand-img { height: 28px; width: auto; margin-bottom: var(--s-3); display: block; }
.footer__tagline {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: var(--s-4);
}
/* Registered business entity — legal name + registered address */
.footer__entity {
  font-style: normal;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: var(--s-4);
}
.footer__legal-name {
  display: block;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.footer__entity--wide {
  max-width: none;
  margin-bottom: 0;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border);
}
.footer__entity--wide a { color: var(--text-dim); transition: color 0.15s; }
.footer__entity--wide a:hover { color: var(--cyan); }
.footer__entity-sep { color: var(--text-faint); padding: 0 var(--s-1); }

.footer__contact { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__contact a {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-dim);
  padding: 3px 0;
  transition: color 0.15s;
}
.footer__contact a:hover { color: var(--cyan); }
.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-3);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s-1); }
.footer__links a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) 0;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer__legal { display: flex; gap: var(--s-5); }
.footer__legal a { color: var(--text-faint); transition: color 0.15s; }
.footer__legal a:hover { color: var(--text-dim); }

/* 16 · Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
/* Nav collapses to the hamburger before links + WhatsApp button stop fitting */
@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; margin-left: auto; }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width: 640px) {
  .footer { margin-top: var(--s-8); }
  .footer__bottom { flex-direction: column; gap: var(--s-2); align-items: flex-start; }
  .footer__bottom span { font-size: 11px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* Global overflow guard */
html, body { overflow-x: hidden; }

/* 17 · Floating WhatsApp button (every page) ─────────────────────────── */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.wa-float:focus-visible { outline-offset: 4px; border-radius: 50%; }
/* Keep the footer's right-aligned legal links clear of the floating button */
@media (min-width: 641px) { .footer__bottom { padding-right: 80px; } }
