/* ============================================================
   MYLB Technologies — Global Stylesheet
   ============================================================ */

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

/* ---------- TOKENS ---------- */
:root {
  --bg: #0B0F14;
  --bg2: #080B10;
  --card: #121826;
  --stroke: #1E2636;
  --text: #E6EAF0;
  --muted: #C9D2E0;
  --muted2: #8A97B2;

  --primary: #12244A;
  --accent: #00B4D8;
  --accent2: #2EA8FF;

  --radius: 16px;
  --nav-h: 68px;
}

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

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 40% -10%, rgba(0, 180, 216, .18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(46, 168, 255, .12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit
}

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

/* ---------- LAYOUT HELPERS ---------- */
.container {
  padding: 80px 8%
}

.container.tight {
  padding: 56px 8%
}

/* ---------- TOPBAR / NAV ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  height: var(--nav-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  display: block
}

/* Desktop nav links */
.navlinks {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 40px;
  height: 40px;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  flex-shrink: 0;
  /* iOS Safari resets */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #E6EAF0;
  /* cor explícita — var() pode falhar em Safari antigo */
  border-radius: 2px;
  margin: 3px 0;
  transition: transform .25s, opacity .2s;
  -webkit-transition: -webkit-transform .25s, opacity .2s;
  flex-shrink: 0;
}

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8% 18px;
  border-top: 1px solid var(--stroke);
  background: rgba(11, 15, 20, .96);
}

.mobile-drawer.open {
  display: flex
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  transition: color .18s, border-color .18s, background .18s;
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
}

/* ---------- HERO ---------- */
.hero {
  padding: 92px 8% 72px
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-size: 52px;
  line-height: 1.15;
  margin: 16px 0 18px
}

h2 {
  font-size: 36px;
  margin: 0 0 16px
}

h3 {
  font-size: 20px;
  margin: 0 0 10px
}

p {
  color: var(--muted);
  max-width: 820px;
  font-size: 18px;
  margin: 0 0 14px
}

/* ---------- KICKER ---------- */
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(230, 234, 240, .78);
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #071018;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 12px 32px rgba(0, 180, 216, .15);
  transition: opacity .18s, box-shadow .18s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: .88;
  box-shadow: 0 16px 40px rgba(0, 180, 216, .22)
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04)
}

.btnrow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

/* ---------- CARD ---------- */
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 80%),
    var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
}

.card p {
  font-size: 16px;
  color: rgba(201, 210, 224, .92)
}

/* ---------- MEDIA ---------- */
.media {
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}

.media img {
  width: 100%;
  display: block
}

/* ---------- VIDEO (YouTube embed) ---------- */
.video-container {
  max-width: 760px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #000;
  margin-top: 22px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- ROBOT IMAGE (menor e centralizada) ---------- */
.robot-media {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 72px 8%;
  border-top: 1px solid var(--stroke);
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 65%);
}

/* ---------- BADGES ---------- */
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px
}

.badge {
  font-size: 12px;
  color: rgba(230, 234, 240, .86);
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 28px 8%;
  background: var(--bg2);
  border-top: 1px solid var(--stroke);
  color: var(--muted2);
  font-size: 14px;
  text-align: center;
}

/* ---------- MISC ---------- */
.small {
  font-size: 14px;
  color: var(--muted2)
}

hr.sep {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 18px 0
}

ul.clean {
  margin: 10px 0 0 18px;
  color: var(--muted)
}

/* ---------- FORM STYLES (Contato) ---------- */
.form-wrapper {
  max-width: 640px;
  margin-top: 40px;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #0F1522;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .18s, background .18s;
}

input::placeholder,
textarea::placeholder {
  color: #6C7A99
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #0B1220;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.required {
  color: var(--accent);
  margin-left: 4px
}

.form-note {
  font-size: 13px;
  color: var(--muted2);
  margin-top: 6px
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet: ≤ 980px --- */
@media (max-width: 980px) {
  h1 {
    font-size: 40px
  }

  .split {
    grid-template-columns: 1fr
  }
}

/* --- Mobile: ≤ 768px --- */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop navlinks */
  .nav-toggle {
    display: flex
  }

  .navlinks {
    display: none
  }

  /* Tighter paddings */
  .container {
    padding: 48px 5%
  }

  .container.tight {
    padding: 36px 5%
  }

  .hero {
    padding: 56px 5% 48px
  }

  .section {
    padding: 52px 5%
  }

  .nav {
    padding: 0 5%
  }

  .footer {
    padding: 22px 5%
  }

  .mobile-drawer {
    padding: 12px 5% 18px
  }

  /* Typography */
  h1 {
    font-size: 32px;
    line-height: 1.2
  }

  h2 {
    font-size: 26px
  }

  h3 {
    font-size: 18px
  }

  p {
    font-size: 16px
  }

  /* Buttons full-width on small screens */
  .btnrow {
    flex-direction: column;
    gap: 10px
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center
  }

  /* Grid single column */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px
  }

  /* Split single column */
  .split {
    grid-template-columns: 1fr
  }

  /* Badges wrap nicely */
  .badges {
    gap: 8px
  }

  .badge {
    font-size: 11px
  }
}

/* --- Very small: ≤ 360px --- */
@media (max-width: 360px) {
  h1 {
    font-size: 26px
  }

  h2 {
    font-size: 22px
  }

  .kicker {
    font-size: 11px;
    padding: 6px 10px
  }
}