/* ============================================
   FERMION TECH — Design System v2
   Tema: Dark elegante com serifas editoriais
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #07090d;
  --bg-2:      #0c0f16;
  --bg-3:      #111520;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(99,210,234,0.18);

  --text:      #eef0f4;
  --text-2:    #7a8a9e;
  --text-3:    #3a4858;

  --accent:    #63d2ea;
  --accent-2:  #3aa8c4;
  --accent-glow: rgba(99,210,234,0.12);

  --white:     #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    12px;
  --radius-lg: 20px;
  --max-w:     1160px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::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: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---- UTILITIES ---- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,210,234,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--lg { padding: 18px 40px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  background: rgba(7,9,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav__logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  padding: 9px 22px !important;
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-radius: 4px;
  font-weight: 500 !important;
}
.nav__cta:hover { background: var(--white) !important; color: var(--bg) !important; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 130px 40px 100px;
}

.hero__grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,210,234,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,210,234,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: -1;
}

.hero__particle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.6); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero__eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--accent); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

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

/* ---- FERMION ORBIT ---- */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.4s ease both;
}

.fermion__orbit {
  position: relative;
  width: 340px; height: 340px;
}

.fermion__nucleus {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(99,210,234,0.7), 0 0 96px rgba(99,210,234,0.2);
  animation: nucleusPulse 2.5s ease-in-out infinite;
}

@keyframes nucleusPulse {
  0%, 100% { box-shadow: 0 0 48px rgba(99,210,234,0.7), 0 0 96px rgba(99,210,234,0.2); }
  50%       { box-shadow: 0 0 64px rgba(99,210,234,1), 0 0 140px rgba(99,210,234,0.3); }
}

.fermion__ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fermion__ring--1 { width: 130px; height: 130px; animation: spin1 4s linear infinite; }
.fermion__ring--2 { width: 220px; height: 220px; animation: spin2 7s linear infinite reverse; }
.fermion__ring--3 { width: 320px; height: 320px; animation: spin3 11s linear infinite; }

@keyframes spin1 { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin2 { to { transform: translate(-50%, -50%) rotateX(60deg) rotate(360deg); } }
@keyframes spin3 { to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(30deg) rotate(360deg); } }

.fermion__electron {
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
}

/* ---- STATS ---- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 0 48px;
}

.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stats__num em { font-style: normal; font-size: 32px; }

.stats__label {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 160px;
  display: inline-block;
  font-weight: 300;
}

.stats__divider {
  width: 1px; height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SERVIÇOS ---- */
.servicos { padding: 120px 40px; }

.servicos__inner { max-width: var(--max-w); margin: 0 auto; }

.servicos__header { margin-bottom: 64px; }

.servicos__header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card:hover::before { opacity: 1; }

.card--featured {
  background: linear-gradient(135deg, rgba(99,210,234,0.06), var(--bg-2));
  border-color: var(--border-2);
}

.card__icon {
  width: 46px; height: 46px;
  background: var(--accent-glow);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.card__icon svg { width: 20px; height: 20px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 300;
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-2);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---- SOBRE ---- */
.sobre {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sobre__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.sobre__content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 28px;
}

.sobre__content p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
  font-weight: 300;
}

.sobre__founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.sobre__founder-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
}

.sobre__founder-info { display: flex; flex-direction: column; }

.sobre__founder-info strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.sobre__founder-info span {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Visual lado direito */
.sobre__visual { position: relative; }

.sobre__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.sobre__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.sobre__photo-wrap:hover img { filter: grayscale(0%); }

.sobre__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,13,0.6) 0%, transparent 50%);
  pointer-events: none;
}

.sobre__photo-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(7,9,13,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  z-index: 2;
}

.sobre__photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sobre__photo-badge span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- CTA ---- */
.cta {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,210,234,0.05), transparent 70%);
  pointer-events: none;
}

.cta__inner { max-width: 640px; margin: 0 auto; position: relative; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.cta p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

/* ---- CONTATO ---- */
.contato {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contato__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.contato__info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.1;
}

.contato__info p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}

.contato__email {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.contato__email:hover { color: var(--white); }

.contato__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.contato__location svg { width: 15px; height: 15px; }

.contato__form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__group { margin-bottom: 22px; }

.form__group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}

.form__group input,
.form__group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-3); }

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---- FOOTER ---- */
.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner { max-width: var(--max-w); margin: 0 auto; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .hero__sub { margin: 0 auto 44px; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .servicos__grid { grid-template-columns: 1fr 1fr; }
  .sobre__inner { grid-template-columns: 1fr; gap: 60px; }
  .contato__inner { grid-template-columns: 1fr; gap: 56px; }
  .stats__inner { flex-direction: column; gap: 40px; padding: 56px 40px; }
  .stats__divider { width: 60px; height: 1px; }
}

@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .hero { padding: 100px 20px 80px; }
  .servicos { padding: 80px 20px; }
  .servicos__grid { grid-template-columns: 1fr; }
  .sobre { padding: 80px 20px; }
  .cta { padding: 80px 20px; }
  .contato { padding: 80px 20px; }
  .contato__form { padding: 28px; }
  .footer { padding: 40px 20px; }
}
