/* Nuclear® — Design System
   Rapadura Atômica | GPL
   Paleta: teal #07a0ac / roxo #3f1986 / preto #080C0D
*/

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');
@import url('fontawesome-all.min.css');

/* ── Tokens ── */
:root {
  --bg:          #080C0D;
  --bg-alt:      #0F1618;
  --bg-card:     #141E20;
  --bg-card-hover: #1a2830;
  --border:      rgba(7, 160, 172, 0.15);
  --border-soft: rgba(255, 255, 255, 0.07);

  --teal:        #07a0ac;
  --teal-light:  #01adb0;
  --purple:      #3f1986;
  --magenta:     #a408ae;

  --text:        #f0f0f0;
  --text-muted:  #7a8a8b;
  --text-dim:    rgba(240, 240, 240, 0.45);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-light); }

/* ── Bandeirinhas (mantida do original) ── */
.bandeirinhas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: visible;
}

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 12, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

#nav .nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav .nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

#nav .nav-logo img {
  height: 32px;
  width: auto;
}

#nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

#nav .nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
}

#nav .nav-links a:hover { color: var(--text); }

#nav .nav-cta {
  background: var(--teal);
  color: #080C0D !important;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s !important;
}

#nav .nav-cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  color: #080C0D !important;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(1, 173, 176, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(63, 25, 134, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-logo img.hero-icon {
  height: 80px;
  width: auto;
}

.hero-logo img.hero-wordmark {
  height: 56px;
  width: auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.hero-tagline span {
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid;
}

.badge-gpl {
  color: #4ade80;
  border-color: rgba(74, 222, 128, .3);
  background: rgba(74, 222, 128, .06);
}

.badge-blender {
  color: var(--teal);
  border-color: var(--border);
  background: rgba(7, 160, 172, .06);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: #080C0D;
  box-shadow: 0 0 24px rgba(7, 160, 172, .25);
}

.btn-primary:hover {
  background: var(--teal-light);
  box-shadow: 0 0 32px rgba(1, 173, 176, .35);
  color: #080C0D;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-platforms span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.hero-platforms span i {
  font-size: .85rem;
  opacity: .7;
}

.hero-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 60px rgba(7, 160, 172, .08);
}

.hero-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Section base ── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Features ── */
#features {
  background: var(--bg-alt);
}

.features-header {
  margin-bottom: 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4), 0 0 32px rgba(7,160,172,.06);
}

.feature-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.feature-card:hover .feature-card-media img {
  transform: scale(1.03);
}

.feature-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}

.feature-card-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.feature-card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s;
  align-self: flex-start;
}

.feature-card-link:hover {
  gap: .6rem;
  color: var(--teal-light);
}

/* ── Services ── */
#services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .25s, background .25s;
}

.service-card:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.service-icon {
  width: 40px;
  height: 40px;
  background: rgba(7, 160, 172, .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 1.1rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.service-text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA / Beta ── */
#beta {
  background: var(--bg-alt);
}

.beta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.beta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .beta-form-grid { grid-template-columns: 1fr; }
}

.field-full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .65rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 160, 172, .12);
}

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

.form-submit-row {
  grid-column: 1 / -1;
  margin-top: .5rem;
}

/* ── Contact aside ── */
.beta-contact {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-block-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.contact-block-value {
  font-size: .9rem;
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: color .2s, border-color .2s, background .2s;
}

.social-link:hover {
  color: var(--teal);
  border-color: var(--border);
  background: rgba(7,160,172,.06);
}

/* ── Footer ── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--teal); }

/* ── Internal pages (header) ── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 12, 13, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

#header .header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .header-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

#header .header-logo img {
  height: 28px;
  width: auto;
}

#header nav a {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}

#header nav a:hover { color: var(--text); }

/* ── Internal page content ── */
#page-content {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
}

.page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .5rem;
  position: relative;
  padding-bottom: .75rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
}

.page-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin: 2rem 0;
}

.page-media img {
  width: 100%;
  height: auto;
}

.page-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-body p {
  margin-bottom: 1.5rem;
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3a3d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

.fade-up-delay-1 { animation-delay: .1s; }
.fade-up-delay-2 { animation-delay: .2s; }
.fade-up-delay-3 { animation-delay: .3s; }
.fade-up-delay-4 { animation-delay: .4s; }
