@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #181818;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --text:      #f0f0f0;
  --muted:     #888;
  --faint:     #444;
  --accent:    #7F77DD;
  --accent2:   #AFA9EC;
  --blue:      #378ADD;
  --blue-bg:   rgba(55,138,221,0.12);
  --teal:      #1D9E75;
  --teal-bg:   rgba(29,158,117,0.12);
  --amber:     #EF9F27;
  --amber-bg:  rgba(239,159,39,0.12);
  --purple:    #7F77DD;
  --purple-bg: rgba(127,119,221,0.12);
  --radius:    14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}
.nav-logo .accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 9px 20px;
  border: 0.5px solid var(--border2);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-cta:hover { background: var(--bg3); border-color: var(--border2); }

.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--text);
}

/* HERO */
.hero {
  padding: 120px 48px 96px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 28px;
}

.hero-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 96px);
  letter-spacing: -6px;
  line-height: 0.95;
  margin-bottom: 12px;
  display: block;
}
.hero-logo .rd   { color: var(--text); }
.hero-logo .labs { color: var(--accent); }

.hero-line {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 32px;
}

.hero p {
  font-size: 18px; font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 44px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 999px;
  cursor: pointer; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 400;
  padding: 13px 28px;
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border2);
  border-radius: 999px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

/* PRODUTOS */
.products {
  padding: 96px 48px;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 0.5px solid var(--border);
}

.section-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card {
  background: var(--bg2);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: background 0.2s;
  border: none;
}
.product-card:hover { background: var(--bg3); }

.product-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px; font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}

.product-tag {
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.product-link {
  font-size: 12px; color: var(--faint);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s;
}
.product-link:hover { color: var(--muted); }

/* SOBRE */
.about {
  border-top: 0.5px solid var(--border);
  padding: 96px 48px;
}
.about-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; gap: 56px; align-items: flex-start;
}

.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--purple-bg);
  border: 0.5px solid rgba(127,119,221,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent2);
  flex-shrink: 0;
}

.about-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.about-content p {
  font-size: 15px; font-weight: 300;
  color: var(--muted); line-height: 1.75;
}

/* CONTATO */
.contact {
  border-top: 0.5px solid var(--border);
  padding: 96px 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.contact > p {
  font-size: 15px; font-weight: 300;
  color: var(--muted); margin-bottom: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }

.contact-form input,
.contact-form textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300;
  padding: 13px 16px;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 120px; resize: vertical; }

.form-success {
  display: none; padding: 16px;
  background: var(--teal-bg);
  color: var(--teal);
  border-radius: var(--radius-sm);
  font-size: 14px; text-align: center;
  border: 0.5px solid rgba(29,158,117,0.2);
}

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--muted);
}
.footer-logo .accent { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--faint); }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 0.5px solid var(--border);
    padding: 24px 20px; gap: 20px;
  }
  .hero { padding: 72px 24px 60px; }
  .hero-logo { letter-spacing: -3px; }
  .products { padding: 60px 0; }
  .products-grid { border-radius: 0; border-left: none; border-right: none; }
  .product-card { padding: 28px 24px; }
  .about { padding: 60px 24px; }
  .about-inner { flex-direction: column; gap: 28px; }
  .contact { padding: 60px 24px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
