/* =========================================================
   Umbrela Tecnologia — Design System
   ========================================================= */

:root {
  --bg: #060814;
  --bg-alt: #0a0e1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef0fb;
  --text-dim: #9aa2c0;
  --text-faint: #6b7396;

  --violet: #7c5cff;
  --blue: #4d8dff;
  --cyan: #33e6d8;
  --pink: #ff5cb8;

  --grad-primary: linear-gradient(120deg, var(--violet), var(--blue) 55%, var(--cyan));
  --grad-text: linear-gradient(100deg, #b9a8ff 0%, #8fb4ff 40%, #63e9d8 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;

  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px -20px rgba(76, 60, 200, 0.45);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p { color: var(--text-dim); margin: 0 0 1em; }

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- background fx ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, #000 30%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: var(--violet); animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; top: 10%; right: -160px; background: var(--blue); animation: float2 26s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: var(--cyan); opacity: .28; animation: float3 30s ease-in-out infinite; }

@keyframes float1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(60px, 80px); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-70px, 60px); } }
@keyframes float3 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(40px, -60px); } }

/* ---------- progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(6, 8, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, .55));
}

.logo-text em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav a {
  font-size: .92rem;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--grad-primary);
  transition: width .25s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav a.active { color: var(--text); }
.nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
  background: var(--grad-primary);
  color: #06070f;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(124, 92, 255, .8); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: .85rem; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- eyebrow / section head ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .5; transform: scale(1.4);} }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 1.02rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 120px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .82rem; color: var(--text-faint); }

/* device mock */

.hero-visual { position: relative; }

.device-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(.4deg); }
}

.device-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(closest-side, rgba(124,92,255,.35), transparent 70%);
  pointer-events: none;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  position: relative;
}
.device-header span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: .5;
}
.device-header span:nth-child(1) { background: #ff5f57; opacity: .8; }
.device-header span:nth-child(2) { background: #febc2e; opacity: .8; }
.device-header span:nth-child(3) { background: #28c840; opacity: .8; }
.device-url {
  margin-left: 12px;
  font-size: .75rem;
  color: var(--text-faint);
  font-family: 'Space Grotesk', monospace;
}

.device-body {
  position: relative;
  padding: 28px 24px 60px;
  font-family: 'Space Grotesk', monospace;
  font-size: .92rem;
  min-height: 320px;
}

.code-line { color: var(--text-dim); margin-bottom: 10px; white-space: pre; }
.code-line.indent { padding-left: 24px; }
.tk-kw { color: var(--pink); }
.tk-var { color: var(--cyan); }
.tk-fn { color: var(--blue); }
.tk-key { color: #d6d0ff; }
.tk-str { color: var(--cyan); }
.cursor { animation: blink 1s step-start infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  right: -60px;
  bottom: -60px;
}
.r1 { width: 220px; height: 220px; animation: spin 18s linear infinite; }
.r2 { width: 300px; height: 300px; right: -100px; bottom: -100px; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.d1 { right: 30px; bottom: 130px; background: var(--violet); color: var(--violet); }
.d2 { right: 90px; bottom: 30px; background: var(--cyan); color: var(--cyan); }
.d3 { right: -10px; bottom: 70px; background: var(--blue); color: var(--blue); }

/* marquee */

.marquee {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  color: var(--text-faint);
  letter-spacing: .03em;
}
.marquee-track span:nth-child(odd) { color: var(--text-dim); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections / cards ---------- */

.section { position: relative; z-index: 1; padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 10%, rgba(255,255,255,.015) 90%, transparent); }
.section-first { padding-top: 160px; }

.page-header {
  position: relative;
  z-index: 1;
  padding: 160px 0 40px;
  text-align: center;
}
.page-header .eyebrow { justify-content: center; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 700px; margin-left: auto; margin-right: auto; }
.page-header p { max-width: 600px; margin: 0 auto; font-size: 1.02rem; }

.grid { display: grid; gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 20px 50px -24px rgba(124, 92, 255, .5);
}

.services-grid { grid-template-columns: repeat(3, 1fr); }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--grad-primary);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.6);
}

.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: .93rem; margin: 0; }

/* products */

.products-grid { grid-template-columns: repeat(4, 1fr); }

.product-card { padding: 0; overflow: hidden; }
.product-media {
  position: relative;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(51,230,216,.12));
  border-bottom: 1px solid var(--border);
}
.product-glyph { font-size: 2.6rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6,8,20,.55);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.product-body { padding: 24px; }
.product-body h3 { font-size: 1.1rem; }
.product-body p { font-size: .88rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-tags li {
  font-size: .74rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.products-note {
  text-align: center;
  margin-top: 40px;
  font-size: .95rem;
}
.products-note a { color: var(--cyan); font-weight: 600; }

/* about / story */

.story-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.story-text p { color: var(--text); margin-bottom: 1.3em; }
.story-text p:last-child { margin-bottom: 0; }

.capability-grid { grid-template-columns: repeat(3, 1fr); }

.capability {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--text);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.capability:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.capability-icon { font-size: 1.3rem; flex-shrink: 0; }

.value-list { margin-top: 4px; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.value-list li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.step-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .8;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .88rem; margin: 0; }

/* testimonials */

.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card p { font-size: .96rem; color: var(--text); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #06070f;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .78rem; color: var(--text-faint); }

/* contact */

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.contact-info {
  padding: 56px 48px;
  background: linear-gradient(160deg, rgba(124,92,255,.14), transparent 60%);
  border-right: 1px solid var(--border);
}
.contact-info h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }

.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-details a, .contact-details span {
  display: flex; align-items: center; gap: 12px;
  font-size: .92rem;
  color: var(--text-dim);
  transition: color .2s;
}
.contact-details a:hover { color: var(--cyan); }
.ci-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-form { padding: 56px 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,92,255,.2);
}
.field select { appearance: none; cursor: pointer; }
.field select option {
  background-color: #10142a;
  color: var(--text);
}

.form-note {
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--cyan);
  min-height: 1.2em;
}

/* footer */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { margin: 0; font-size: .85rem; color: var(--text-faint); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .85rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(6,8,20,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .header.nav-open .nav a { padding: 10px 0; width: 100%; }
  .header.nav-open .header-cta { display: inline-flex; }

  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .services-grid, .products-grid, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 36px 24px; }
  .capability-grid { grid-template-columns: 1fr; }
}
