/* ── Reset & variáveis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:          #08080f;
  --c-bg-2:        #0e0e1a;
  --c-bg-3:        #13131f;
  --c-surface:     #1a1a2e;
  --c-border:      rgba(255,255,255,.08);
  --c-border-glow: rgba(99,179,237,.25);
  --c-text:        #e8e8f0;
  --c-muted:       #7a7a9a;
  --c-accent:      #63b3ed;
  --c-accent-2:    #9f7aea;
  --c-success:     #48bb78;
  --c-error:       #f87171;
  --font-sans:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:     'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --radius:        6px;
  --radius-lg:     12px;
  --max-w:         1100px;
  --transition:    .2s ease;
}

[data-theme="light"] {
  --c-bg:          #f4f4f8;
  --c-bg-2:        #eaeaf0;
  --c-bg-3:        #ffffff;
  --c-surface:     #ffffff;
  --c-border:      rgba(0,0,0,.1);
  --c-border-glow: rgba(99,179,237,.4);
  --c-text:        #1a1a2e;
  --c-muted:       #6b6b8a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-border-glow);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  background: rgba(8,8,15,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .navbar { background: rgba(244,244,248,.9); }

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--c-accent); }
.nav-logo-img { height: 32px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--c-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--c-text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: border-color var(--transition), color var(--transition);
}
.theme-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  width: 34px; height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
    padding: 20px;
    gap: 16px;
  }
  .nav-hamburger { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-accent); color: #08080f; }
.btn-primary:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Page hero (imagem de topo das Pages) ── */
.page-hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .page-hero { height: 180px; }
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,179,237,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.hero h1 em { font-style: normal; color: var(--c-accent); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

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

.hero-visual {
  margin-top: 64px;
  position: relative; z-index: 1;
  width: 100%; max-width: 860px;
}

.hero-mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 0 0 1px var(--c-border), 0 32px 80px rgba(0,0,0,.5), 0 0 60px rgba(99,179,237,.05);
  overflow: hidden;
}

.mockup-bar {
  background: var(--c-bg-3); height: 36px;
  display: flex; align-items: center;
  padding: 0 14px; gap: 7px;
  border-bottom: 1px solid var(--c-border);
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); }
.mockup-dot:nth-child(1) { background: #ff6058; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c940; }

.mockup-body {
  background: var(--c-bg-2); min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}

.mockup-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; color: var(--c-muted);
  font-family: var(--font-mono); font-size: .8rem;
}

.mockup-placeholder svg { opacity: .25; width: 48px; height: 48px; }

/* ── Sections ── */
.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px;
}

.section-header p { color: var(--c-muted); max-width: 480px; margin: 0 auto; }

/* ── Feature cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--c-border-glow); transform: translateY(-2px); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(99,179,237,.1);
  border: 1px solid var(--c-border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}

.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: .875rem; color: var(--c-muted); line-height: 1.6; }

/* ── Stats ── */
.stats-section {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 60px 0;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; text-align: center; }

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; font-family: var(--font-mono);
  color: var(--c-accent); letter-spacing: -.04em; margin-bottom: 6px;
}

.stat-label { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ── CTA ── */
.cta-section { padding: 100px 0; text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.cta-section p { color: var(--c-muted); margin-bottom: 2rem; line-height: 1.6; }

/* ── Contact section (within landing) ── */
.contact-section { padding: 100px 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.contact-copy p { color: var(--c-muted); font-size: .95rem; }

.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 32px;
}

.campo { margin-bottom: 16px; }

label { display: block; font-size: .8rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--c-text);
  font-family: var(--font-sans); font-size: .95rem;
  transition: border-color var(--transition);
}
input:focus, textarea:focus { outline: none; border-color: var(--c-accent); }
textarea { resize: vertical; min-height: 100px; }

.field-error { color: var(--c-error); font-size: .8rem; margin-top: .25rem; }

.ok-banner {
  background: #052e16; border: 1px solid #166534;
  border-radius: var(--radius); padding: 1rem;
  color: var(--c-success); font-size: .9rem;
}

.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.show { display: block; }
.form-success .icon { font-size: 2rem; margin-bottom: 12px; }
.form-success p { color: var(--c-muted); font-size: .9rem; margin-top: 8px; }

/* ── Contacts standalone page ── */
body.contacts-page {
  min-height: 100svh;
  padding-top: 60px;
}

.contacts-page .contact-section { padding: 60px 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--c-border); padding: 40px 0; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.footer-copy { font-size: .8rem; color: var(--c-muted); font-family: var(--font-mono); }

.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: .8rem; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-text); }
