/* ============================================================
   Rubethyst Lab — style.css
   Paleta rubi→roxo (#FF1E56 → #9C51E0 → #7c3aed) sobre fundo profundo
   ============================================================ */

:root {
  --bg: #0e0618;
  --bg-2: #150a24;
  --panel: #1b0d2e;
  --panel-2: #221237;
  --border: rgba(192, 132, 252, 0.16);
  --text: #efe9f8;
  --muted: #b3a6c9;
  --ruby: #ff2e63;
  --violet: #9c51e0;
  --accent: #c084fc;
  --orange: #f97316;
  --grad: linear-gradient(120deg, #ff2e63 0%, #9c51e0 55%, #7c3aed 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,46,99,.18), rgba(156,81,224,.18));
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

::selection { background: rgba(156, 81, 224, .45); color: #fff; }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 6, 24, .78);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand-gem { flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(255, 30, 86, .35)); }
.brand-name {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em;
  font-size: 1.15rem; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .93rem; transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: .7rem; }
.lang-btn, .menu-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.lang-btn { border-radius: 999px; padding: .32rem .8rem; font-size: .82rem; font-weight: 600; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 38px; border-radius: 10px; align-items: center; }
.menu-btn span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .2s, border-color .2s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(156, 81, 224, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(156, 81, 224, .5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-small { padding: .5rem 1.15rem; font-size: .87rem; }
.btn-block { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8.5rem) 0 5.5rem; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 55% at 78% 28%, rgba(156, 81, 224, .22), transparent 70%),
    radial-gradient(36% 48% at 12% 75%, rgba(255, 46, 99, .13), transparent 70%),
    radial-gradient(50% 60% at 50% 110%, rgba(124, 58, 237, .14), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; position: relative; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  padding: .45rem 1.05rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(192, 132, 252, .07); margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.grad-text {
  font-style: italic; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: 1.13rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-badges { list-style: none; display: flex; gap: 1.6rem; margin-top: 2.6rem; color: var(--muted); font-size: .88rem; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: "◆"; font-size: .6rem; color: var(--orange); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.gem-float { position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 18px 60px rgba(156, 81, 224, .45)); }
.gem-halo {
  position: absolute; inset: -34%; border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 81, 224, .28), transparent 65%);
  animation: pulse 5.5s ease-in-out infinite;
}
.orbit {
  position: absolute; border: 1px dashed rgba(192, 132, 252, .22); border-radius: 50%;
}
.orbit-a { width: 330px; height: 330px; animation: spin 26s linear infinite; }
.orbit-b { width: 430px; height: 430px; animation: spin 44s linear infinite reverse; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }
.scroll-hint span {
  display: block; width: 22px; height: 36px; border: 1.6px solid rgba(179,166,201,.45); border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 3px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0);} 30% {opacity: 1;} 100% { opacity: 0; transform: translateY(10px);} }

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(124, 58, 237, .09), transparent 65%),
    var(--bg-2);
  border-block: 1px solid rgba(192, 132, 252, .08);
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .7rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em;
}

/* ---------- Cards genéricos ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; position: relative; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, .4);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .35), 0 0 0 1px rgba(192, 132, 252, .12);
}
.card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; }

.service-card .card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--accent); margin-bottom: 1.1rem;
}
.ticks { list-style: none; margin-top: 1.05rem; display: grid; gap: .5rem; }
.ticks li { color: var(--muted); font-size: .92rem; display: flex; gap: .55rem; align-items: baseline; }
.ticks li::before { content: "✦"; color: var(--orange); font-size: .78rem; }

/* ---------- Cases ---------- */
.case-thumb {
  height: 130px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.9);
  margin-bottom: 1.15rem; position: relative; overflow: hidden;
}
.case-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 20% 10%, rgba(255,255,255,.16), transparent 55%);
}
.thumb-hein { background: linear-gradient(135deg, #7c1fa0, #c2418f); }
.thumb-solaris { background: linear-gradient(135deg, #ff2e63, #9c51e0); }
.thumb-cardio { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .95rem 0; }
.tags span {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--border); color: var(--accent);
  padding: .22rem .7rem; border-radius: 999px;
}
.case-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .92rem; }
.case-link:hover { text-decoration: underline; }

/* ---------- Reviews ---------- */
.review-card blockquote {
  font-size: .98rem; color: var(--text); margin: .9rem 0 1.15rem; line-height: 1.6;
}
.stars { color: var(--orange); letter-spacing: .18em; font-size: 1rem; }
.review-card figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .88rem; }
.review-card figcaption strong { color: var(--text); }
.review-card figcaption span:not(.chip) { color: var(--muted); }
.chip {
  margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffd9c9; background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .3);
  padding: .18rem .6rem; border-radius: 999px;
}

/* ---------- Processo ---------- */
.timeline {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
}
.timeline li {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; position: relative;
  transition: transform .22s ease, border-color .22s ease;
}
.timeline li:hover { transform: translateY(-3px); border-color: rgba(192,132,252,.38); }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem;
  margin-bottom: .85rem; box-shadow: 0 6px 18px rgba(156, 81, 224, .3);
}
.timeline h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: .3rem; }
.timeline p { color: var(--muted); font-size: .87rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: rgba(192, 132, 252, .55);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(156, 81, 224, .18), transparent 60%),
    linear-gradient(160deg, var(--panel), var(--bg-2));
  box-shadow: 0 18px 54px rgba(124, 58, 237, .25);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.ribbon {
  position: absolute; top: 1.1rem; right: -1px;
  background: var(--grad); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px 0 0 999px;
}
.price { font-family: var(--font-display); font-size: 2.35rem; font-weight: 700; margin: .4rem 0 .2rem; }
.currency { font-size: 1.15rem; vertical-align: super; margin-right: .1rem; color: var(--accent); }
.period { font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }
.price-desc { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 2.2rem; font-size: .93rem; }
.pricing-note strong { color: var(--accent); }

/* ---------- Contato ---------- */
.section-contact {
  background:
    radial-gradient(50% 70% at 20% 20%, rgba(255, 46, 99, .12), transparent 62%),
    radial-gradient(50% 70% at 85% 80%, rgba(124, 58, 237, .16), transparent 65%),
    var(--bg-2);
  border-top: 1px solid rgba(192, 132, 252, .08);
}
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact-cards { display: grid; gap: .95rem; }
.contact-card { display: block; text-decoration: none; padding: 1.15rem 1.4rem; }
.cc-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .2rem;
}
.cc-value { font-weight: 600; font-size: 1.02rem; word-break: break-all; }
.cc-muted { opacity: .65; cursor: default; }
.contact-card:not(.cc-muted):hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.2rem 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; }
.footer-inner > p { color: var(--muted); font-size: .88rem; }
.footer-meta { margin-left: auto; font-size: .82rem !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Mobile-first adjustments ---------- */
@media (max-width: 1020px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 6, 24, .98); border-bottom: 1px solid var(--border);
    padding: .6rem 0; transform: translateY(-130%); transition: transform .3s ease; z-index: 99;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: .85rem 1.6rem; font-size: 1rem; }
  .site-nav a.btn { margin: .6rem 1.6rem; text-align: center; }
  .menu-btn { display: flex; }
  .menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .cards-3, .timeline, .pricing-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-wrap: wrap; gap: .9rem; }
  .footer-meta { margin-left: 0; }
  .price-card.featured { order: -1; }
}
