/* ==========================================================================
   DunnasTech — Design tokens
   ========================================================================== */
:root {
  /* Neutral tech base */
  --bg: #0b0c0f;
  --bg-alt: #121317;
  --surface: #17181d;
  --surface-2: #1e2026;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f2efe9;
  --text-soft: #c9c6c0;
  --text-muted: #8b8a87;

  /* Dune-inspired neutral accents */
  --accent: #d8b98a;
  --accent-strong: #e8cda2;
  --accent-2: #9c8b74;
  --accent-soft: rgba(216, 185, 138, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);

  --container-w: 1160px;
  --header-h: 76px;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-weight: 600; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Subtle grain so flat dark surfaces don't read as a flat gradient template */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   Reveal-on-scroll (JS toggles .is-visible)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__bg,
  .logo__mark path,
  .logo__mark circle {
    animation: none !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: #14120d;
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn--full { width: 100%; }
.btn--nav { padding: 10px 20px; font-size: 0.88rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
}
.header.is-scrolled {
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  height: 68px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header .logo__mark path {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: logo-draw 1s var(--ease) 0.2s forwards;
}
.header .logo__mark path:nth-of-type(2) { animation-delay: 0.35s; }
.header .logo__mark circle {
  opacity: 0;
  transform-origin: center;
  animation: logo-dot 0.5s var(--ease) 0.9s forwards;
}
@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes logo-dot {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo__accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; margin: 0 auto; }
.nav__link {
  font-size: 0.94rem;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--bg);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center right;
  animation: hero-zoom 28s var(--ease) infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, transparent 78%, var(--bg-alt) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 12, 15, 0.88) 34%, rgba(11, 12, 15, 0.5) 60%, rgba(11, 12, 15, 0.25) 100%);
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 150px;
}
.hero__content { max-width: 600px; padding-top: 60px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 560px;
  color: var(--text);
}
.hero__title .highlight { color: var(--accent); }

.hero__subtitle {
  margin-top: 24px;
  max-width: 460px;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero__actions .btn--outline { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.hero__actions .btn--outline:hover { border-color: transparent; background: transparent; }

.hero__proof {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.hero__proof .divider { color: var(--border-strong); }

.dunes {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  z-index: 1;
  line-height: 0;
}
.dunes__svg { width: 100%; height: 130px; display: block; }
.dune { opacity: 1; }
.dune--1 { fill: var(--bg-alt); opacity: 0.4; }
.dune--2 { fill: var(--bg-alt); opacity: 0.6; }
.dune--3 { fill: var(--bg-alt); opacity: 0.9; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  max-width: 480px;
  color: var(--text);
}

.section__subtitle {
  max-width: 380px;
  padding-bottom: 4px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section__paragraph {
  margin-top: 18px;
  color: var(--text-soft);
  max-width: 520px;
}

/* ==========================================================================
   Products
   ========================================================================== */
.products {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.product-card__icon--image {
  overflow: hidden;
  padding: 0;
}
.product-card__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card__title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 14px;
}

.product-card__desc {
  color: var(--text-soft);
  margin-bottom: 22px;
}

.product-card__features {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card__features li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.product-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mini-card:hover { border-color: var(--border-strong); transform: translateX(4px); }
.mini-card__number {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.mini-card h4 { color: var(--text); margin-bottom: 6px; font-size: 1.05rem; }
.mini-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Features
   ========================================================================== */
.feature-list {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.feature-row {
  display: grid;
  grid-template-columns: 52px 44px 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}
.feature-row:hover { background: var(--surface); }
.feature-row__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.feature-row__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.feature-row:hover .feature-row__icon { transform: scale(1.08); }
.feature-row__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
}
.feature-row__text h4 { flex: 0 0 200px; color: var(--text); font-size: 1.02rem; }
.feature-row__text p { flex: 1 1 260px; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact__list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.contact__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row select { appearance: none; }

.form-feedback {
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--accent-strong);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 56px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__tagline { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer__nav a {
  position: relative;
  padding: 4px 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.footer__nav a:hover { color: var(--accent); }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__copy { color: var(--text-muted); font-size: 0.82rem; }
.footer__cnpj { color: var(--text-muted); font-size: 0.82rem; margin-top: -8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }

  .section__head { align-items: flex-start; }
}

@media (max-width: 760px) {
  .hero__bg, .hero::before { display: none; }

  .nav, .btn--nav { display: none; }
  .menu-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px 40px;
    background: rgba(11, 12, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

  .section { padding: 84px 0; }
  .hero__proof { gap: 8px; }

  .feature-row { grid-template-columns: 44px 1fr; column-gap: 16px; }
  .feature-row__index { display: none; }
  .feature-row__text { flex-direction: column; gap: 4px; }
  .feature-row__text h4 { flex-basis: auto; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__meta { align-items: center; text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .product-card, .contact__form { padding: 28px; }
  .hero__actions { flex-direction: column; align-items: flex-start; width: 100%; }
}
