/* ===== Flor Tecnologia — Design Tokens ===== */
:root {
  --cyan: #00E5FF;
  --blue: #0066FF;
  --violet: #782CFF;
  --navy: #0B0F19;
  --navy-elevated: #10182C;
  --navy-card: #131C33;
  --off-white: #F2F4F7;
  --text-muted: #9AA7C2;
  --border: rgba(242, 244, 247, 0.08);
  --header-bg: rgba(11, 15, 25, 0.55);
  --header-bg-scrolled: rgba(11, 15, 25, 0.9);
  --mobile-nav-bg: rgba(11, 15, 25, 0.98);
  --glow-opacity: 0.35;
  --accent-text: var(--cyan);
  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--violet) 100%);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-glow: 0 0 60px rgba(0, 102, 255, 0.25);
}

/* Light theme overrides */
:root[data-theme="light"] {
  --navy: #F5F7FA;
  --navy-elevated: #EAEEF4;
  --navy-card: #FFFFFF;
  --off-white: #0B0F19;
  --text-muted: #5B6478;
  --border: rgba(11, 15, 25, 0.09);
  --header-bg: rgba(245, 247, 250, 0.7);
  --header-bg-scrolled: rgba(245, 247, 250, 0.92);
  --mobile-nav-bg: rgba(245, 247, 250, 0.98);
  --glow-opacity: 0.16;
  --shadow-glow: 0 0 60px rgba(0, 102, 255, 0.15);
  --accent-text: #006B99;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #061018;
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(120, 44, 255, 0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--off-white);
}
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(242, 244, 247, 0.9)) drop-shadow(0 0 4px rgba(242, 244, 247, 0.45));
  transition: filter 0.3s ease;
}
:root[data-theme="light"] .brand-logo { filter: none; }
.main-nav { display: flex; gap: 24px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--off-white); }
.header-cta { margin-left: auto; }

/* ===== Theme Toggle ===== */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--off-white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 170px 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--glow-opacity);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  background: var(--blue);
  top: -180px; left: -120px;
}
.hero-glow-2 {
  width: 460px; height: 460px;
  background: var(--violet);
  bottom: -220px; right: -100px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 22px;
}
.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-symbol {
  width: min(380px, 90%);
  filter: drop-shadow(0 0 45px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 90px rgba(120, 44, 255, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--navy-elevated); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.section-lead { color: var(--text-muted); font-size: 1.02rem; }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===== Pillars ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-6px); border-color: var(--accent-text); }
.pillar-card h3 { font-size: 1rem; margin-bottom: 10px; }
.pillar-card p { color: var(--text-muted); font-size: 0.88rem; }
.pillar-icon {
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: var(--navy);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
}
.pillar-icon svg { width: 22px; height: 22px; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  margin-bottom: 22px;
  background: var(--navy-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background-clip: padding-box;
  position: relative;
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent-text);
}
.service-card:hover .service-icon svg { stroke: var(--off-white); }

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.portfolio-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(120, 44, 255, 0.12));
  color: var(--accent-text);
}
.portfolio-thumb svg { width: 40px; height: 40px; }
.portfolio-thumb-logo { padding: 26px 32px; background: #0E1526; }
.portfolio-thumb-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.portfolio-thumb-logo img.portfolio-thumb-icon { max-height: 78px; }
.portfolio-body { padding: 22px; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: var(--navy-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.portfolio-body h3 { font-size: 1rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== Partners ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.partner-logo {
  width: 180px;
  height: 90px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--navy-card);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.partner-logo:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-4px); }
.partner-logo img { max-height: 48px; max-width: 80%; }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  border-left: 2px solid var(--border);
  padding-left: 22px;
  position: relative;
}
.process-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-text);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-list { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); }
.contact-list a { font-size: 1rem; transition: color 0.2s ease; }
.contact-list a:hover { color: var(--accent-text); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.social-links a svg { width: 19px; height: 19px; }
.social-links a:hover {
  border-color: transparent;
  color: #061018;
  background: var(--gradient-brand);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-text); }
.form-note { font-size: 0.85rem; color: var(--text-muted); min-height: 18px; }
.form-note.success { color: var(--accent-text); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  background: var(--navy);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-logo {
  height: 26px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 1px rgba(242, 244, 247, 0.9)) drop-shadow(0 0 4px rgba(242, 244, 247, 0.45));
  transition: filter 0.3s ease;
}
:root[data-theme="light"] .footer-logo { filter: none; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; max-width: 320px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--mobile-nav-bg);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .partner-logo { width: 140px; height: 76px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: none; border-top: 2px solid var(--border); padding-left: 0; padding-top: 18px; }
}
