/* ==============================
   TRYNIT GROUP — Professional Dark Layout
   Header / Banner alongado, logo centralizado grande
   Inspirado em Linear / Vercel / Stripe dark premium
   ============================== */
:root {
  /* Paleta mais refinada */
  --bg: #03030a;
  --surface: #080812;
  --surface-2: #0d0d1f;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f4f4fa;
  --text-secondary: #b8bdd0;
  --muted: #7d82a0;
  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #4f6ef6 0%, #6d4df2 50%, #00c2ff 100%);
  --grad-primary-2: linear-gradient(180deg, rgba(79,110,246,0.18) 0%, rgba(0,194,255,0.05) 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  --glow-primary: 0 0 0 1px rgba(79,110,246,0.3), 0 20px 50px -12px rgba(79,110,246,0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  animation: pageIn 0.35s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cloak para evitar flash antes do JS rodar */
[data-cloak] { opacity: 0; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* ========== MATRIX EFFECT ========== */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.topbar,
.banner,
.nav-wrap,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ========== TOOLBAR (top strip) ========== */
.topbar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 0;
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text-secondary); }
.topbar a:hover { color: #fff; }
.topbar-sep { color: var(--border-strong); }

/* ========== BANNER / HEADER ========== */
.banner {
  position: relative;
  background-color: #03030a;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #0c1028 0%, #03030a 65%);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow: hidden;
}

/* ===== Grid decorativo sutil ===== */
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at center, black, transparent 70%);
  pointer-events: none;
}

/* ===== glow orbs ===== */
.banner-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.6;
  pointer-events: none;
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -120px;
  background: #6d4df2;
  opacity: 0.35;
}
.glow-2 {
  width: 500px; height: 500px;
  bottom: -180px; right: -100px;
  background: #00c2ff;
  opacity: 0.30;
  animation-delay: -9s;
}

@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 40px) scale(1.08); }
}

.banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner com imagem */
.banner-img {
  width: 100%;
  height: auto;
  object-fit: fill;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}

.banner-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin-top: -6px;
}

/* Logo overlay no topo esquerdo do banner */
.logo-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 50;
  pointer-events: none;
}
.logo-overlay-img {
  height: 120px;
  width: auto;
  display: block;
}

/* ===== NAV abaixo do banner ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(3,3,10,0.75);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.2s;
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Menu mobile button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 20px;
}

/* ========== HERO ========== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Divisor sutil entre hero e banner */
.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* Glows no hero */
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(160px);
}
.glow-a { top: -240px; left: -140px; background: #6d4df2; opacity: 0.30; }
.glow-b { bottom: -280px; right: -180px; background: #00e8a2; opacity: 0.22; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 25%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--grad-surface);
  backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(79,110,246,0.8);
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}
.hero-title .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -12px rgba(79,110,246,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 18px 46px; font-size: 1.05rem; }

/* ========== Stats strip ========== */
.stats-strip {
  display: flex;
  gap: 56px;
  justify-content: center;
  margin-top: 88px;
  flex-wrap: wrap;
  padding: 36px 24px 0;
  border-top: 1px solid var(--border);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-val {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 20%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
}

/* ========== Section / Containers ========== */
.section { padding: 110px 0; }
.section-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 800px;
  line-height: 1.2;
}
.accent { color: var(--accent); }

/* ========== Page Hero ========== */
.page-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 160px 20px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-sub { color: var(--text-secondary); max-width: 640px; margin: 14px auto 0; font-size: 1.15rem; }

/* ========== Features ========== */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--grad-surface), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  transition: 0.35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(79,110,246,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,110,246,0.35);
  box-shadow: 0 24px 70px -20px rgba(79,110,246,0.2);
}
.feature-icon {
  font-size: 2.6rem;
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ========== Gallery ========== */
.gallery { background: var(--bg); }
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.35s cubic-bezier(.2,.8,.2,1);
}
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,65,0.35);
  box-shadow: 0 24px 70px -20px rgba(0,255,65,0.15);
}
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.g-caption {
  padding: 20px 22px;
}
.g-caption h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.g-caption p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== Areas ========== */
.areas { background: var(--surface); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.area-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  transition: 0.35s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,194,255,0.5), transparent);
}
.area-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,232,162,0.35);
  box-shadow: 0 28px 80px -24px rgba(0,232,162,0.15);
}
.area-icon {
  font-size: 3.2rem;
  margin-bottom: 22px;
  display: block;
}
.area-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.area-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}
.card-link {
  margin-top: 24px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover { text-decoration: underline; }

/* ========== Services ========== */
.services { background: var(--bg); }
.service-block { margin-bottom: 80px; }
.service-header { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.service-icon { font-size: 2.8rem; }
.service-title { font-size: 2.2rem; font-weight: 900; color: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.svc-card {
  background: var(--grad-surface), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: 0.3s;
  position: relative;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(109,77,242,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover::after { opacity: 1; }
.svc-card:hover {
  border-color: rgba(109,77,242,0.3);
  transform: translateY(-4px);
  box-shadow: 0 18px 60px -20px rgba(109,77,242,0.2);
}
.svc-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.svc-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ========== CTA ========== */
.cta {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, #0e1230 0%, var(--bg) 70%);
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
.cta-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin-bottom: 18px; }
.cta-sub { color: var(--text-secondary); margin-bottom: 40px; font-size: 1.15rem; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

/* ========== Contact Cards ========== */
.contact-cards { padding: 90px 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.contact-card {
  display: flex;
  gap: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: 0.35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,110,246,0.5), transparent);
}
.contact-card:hover {
  border-color: rgba(79,110,246,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px -20px rgba(79,110,246,0.25);
}
.cc-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.cc-body h3 {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.cc-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.cc-action {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== Form ========== */
.contact-form { background: var(--surface); padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.form-container { max-width: 780px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 44px; }
.form-header h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; color: #fff; }
.form-header p { color: var(--text-secondary); font-size: 1.05rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,110,246,0.1);
}
.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d82a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-actions.full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-note a { color: var(--primary); text-decoration: underline; }

/* ========== Footer ========== */
.site-footer {
  background: #010108;
  border-top: 1px solid var(--border);
  padding: 72px 24px 36px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.footer-logo { font-size: 1.3rem; font-weight: 900; color: #fff; }
.footer-logo .accent { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-desc { color: var(--text-secondary); font-size: 0.95rem; margin-top: 6px; max-width: 500px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-bottom a { color: var(--primary); font-weight: 500; }
.footer-bottom a:hover { text-decoration: underline; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .logo-img { height: 84px; }
  .banner { width: 100%; }
  .stats-strip { gap: 28px; margin-top: 56px; padding-top: 28px; }
  .stat-val { font-size: 2.2rem; }
  .contact-form { padding: 70px 0; }
}

@media (max-width: 520px) {
  .logo-img { height: 68px; }
  .logo-text { font-size: 1.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .stats-strip { flex-direction: column; gap: 18px; }
}
