/* ============================================================
   Mana Software — style.css
   Brand: #050A14 base / #00A8FF accent / #E8EDF2 text
   Mobile-first, 360px–1440px, prefers-reduced-motion aware
   ============================================================ */

:root {
  --bg: #050A14;
  --bg-alt: #0A1B33;
  --accent: #00A8FF;
  --text: #E8EDF2;
  --muted: #8FA3B8;
  --glass: rgba(232, 237, 242, 0.05);
  --glass-border: rgba(0, 168, 255, 0.18);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }

a { color: var(--accent); text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(5, 10, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

.nav__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: none;
  gap: 2rem;
}
.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--accent); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s 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); }

.nav__links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 1.25rem 5% 1.5rem;
  background: rgba(5, 10, 20, 0.97);
  border-bottom: 1px solid var(--glass-border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 5% 4rem;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(0, 168, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 75%, rgba(0, 168, 255, 0.1), transparent 70%);
  animation: glowPulse 7s var(--ease) infinite alternate;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner { position: relative; z-index: 2; max-width: 820px; }

.hero__kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #6FD6FF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.35);
}
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 168, 255, 0.55);
}
.btn--ghost {
  color: var(--text);
  border-color: rgba(0, 168, 255, 0.4);
  background: var(--glass);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.25);
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }

.section__kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 168, 255, 0.15);
}

.card__icon {
  font-size: 1.6rem;
  color: var(--accent);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid var(--glass-border);
  margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.price {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 168, 255, 0.12);
}

.price--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.12), rgba(0, 168, 255, 0.03));
  box-shadow: 0 0 40px rgba(0, 168, 255, 0.2);
}

.price__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price h3 { font-size: 1.25rem; }
.price__for { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0 1rem; }
.price__amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.price__amount span { font-size: 1rem; color: var(--muted); font-weight: 500; margin-right: 0.15rem; }

.price ul { list-style: none; display: grid; gap: 0.6rem; margin-top: auto; }
.price li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
}
.price li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Care plans ---------- */
.careplans {
  margin-top: 3rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.careplans h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.careplans__text p { color: var(--muted); margin-bottom: 1.5rem; max-width: 540px; }

.careplans__tiers { display: grid; gap: 1rem; }
.tier {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(5, 10, 20, 0.5);
  border: 1px solid rgba(0, 168, 255, 0.12);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tier:hover { border-color: var(--accent); transform: translateX(4px); }
.tier strong { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; }
.tier span { color: var(--muted); font-size: 0.88rem; }

/* ---------- About ---------- */
.about__copy { max-width: 700px; display: grid; gap: 1.25rem; }
.about__copy p { color: var(--muted); font-size: 1.02rem; }
.about__copy p:first-child { color: var(--text); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section__lead { margin-inline: auto; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact__note { color: var(--muted); font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(0, 168, 255, 0.1);
  padding: 2.5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--muted); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__particles, .hero__scroll { display: none; }
}

/* ---------- Tablet & up ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .careplans__tiers { grid-template-columns: repeat(3, 1fr); }
  .tier { text-align: left; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; position: static; flex-direction: row; background: none; border: none; padding: 0; }
  .nav__toggle { display: none; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .price--featured { grid-row: span 2; }
  .careplans { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; }
  .footer { flex-direction: row; justify-content: space-between; }
}

/* ---- Our Work showcase ---- */
.work { grid-template-columns: repeat(3, 1fr); }
.card--work { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.card--work img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; border-radius: 10px; margin-bottom: var(--space-3, 14px); border: 1px solid rgba(0,168,255,0.25); transition: transform 300ms ease, border-color 300ms ease; }
.card--work:hover img { transform: scale(1.03); border-color: #00A8FF; }
.work__note { margin-top: var(--space-4, 24px); color: #8FA3B8; font-size: 0.9rem; text-align: center; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }

/* ---------- Card-hand pricing ---------- */
.cardhand {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 3.5rem 0 2rem;
  perspective: 1200px;
  min-height: 320px;
}
.handcard {
  --tilt: 0deg;
  position: relative;
  width: 240px;
  min-height: 320px;
  margin: 0 -28px;
  padding: 2.2rem 1.4rem 3rem;
  background: linear-gradient(180deg, rgba(10,27,51,0.9), rgba(5,10,20,0.95));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--fg);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: rotate(var(--tilt)) translateY(var(--lift, 0px));
  transform-origin: 50% 120%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 1;
}
.handcard--web { --tilt: -7deg; }
.handcard--mobile { --tilt: 0deg; z-index: 2; }
.handcard--services { --tilt: 7deg; }
.handcard:hover, .handcard:focus-visible {
  --lift: -26px;
  z-index: 5;
  border-color: rgba(0,168,255,0.55);
  box-shadow: 0 24px 60px rgba(0,168,255,0.18);
}
.handcard__suit { font-size: 1.8rem; color: var(--accent); display: block; margin-bottom: 0.8rem; }
.handcard__title { display: block; font-family: var(--font-display, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 1.25rem; color: var(--fg, #E8EDF2); }
.handcard__sub { display: block; margin-top: 0.25rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA3B8; }
.handcard__teaser {
  display: block; margin-top: 1rem; font-size: 0.92rem; line-height: 1.5; color: var(--muted, #8FA3B8);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.handcard:hover .handcard__teaser, .handcard:focus-visible .handcard__teaser { opacity: 1; transform: none; }
.handcard__hint {
  position: absolute; left: 0; right: 0; bottom: 1rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(0,168,255,0.75);
}

/* expanded state */
.cardhand.is-open { min-height: 0; align-items: flex-start; }
.cardhand.is-open .handcard:not(.is-active) { position: absolute; opacity: 0; pointer-events: none; transform: rotate(var(--tilt)) translateY(60px) scale(0.9); }
.cardhand.is-open .handcard.is-active {
  --tilt: 0deg; --lift: 0px;
  width: min(680px, 92%);
  min-height: 0;
  padding: 1.6rem 1.8rem 1.6rem;
  z-index: 6;
  cursor: default;
  border-color: rgba(0,168,255,0.5);
  box-shadow: 0 30px 80px rgba(0,168,255,0.15);
  text-align: left;
}
.cardhand.is-open .handcard.is-active .handcard__teaser,
.cardhand.is-open .handcard.is-active .handcard__hint { display: none; }
.cardhand.is-open .handcard.is-active .handcard__suit { font-size: 1.3rem; margin-bottom: 0.4rem; }
.cardhand.is-open .handcard.is-active .handcard__title { font-size: 1.2rem; }
.cardhand.is-open .handcard.is-active .handcard__sub { margin-top: 0.15rem; }

/* detail panel — dealt hand of playing cards */
.pricedetail { position: relative; z-index: 4; margin: 1.6rem auto 0; max-width: 100%; }
.pricedetail[hidden] { display: none; }
.pricedetail__close {
  position: absolute; top: -40px; right: 4%;
  background: none; border: 1px solid var(--glass-border); border-radius: 999px;
  color: #8FA3B8; font: inherit; font-size: 0.8rem; padding: 0.35rem 0.9rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pricedetail__close:hover { color: var(--accent, #00A8FF); border-color: rgba(0,168,255,0.5); }
.pricedetail__panel { background: transparent; border: 0; padding: 0; }
.pricedetail__panel h3,
.pricedetail__heading { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.pricedetail__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem; padding: 0 1rem;
}
/* playing-card face */
.pricedetail__item {
  --rot: 0deg;
  position: relative;
  width: 178px; min-height: 250px;
  background: linear-gradient(160deg, #0D2140 0%, #0A1B33 55%, #071426 100%);
  border: 1px solid rgba(0,168,255,0.35);
  border-radius: 14px;
  padding: 2.6rem 1.1rem 1.2rem;
  text-align: center;
  transform: rotate(var(--rot));
  transform-origin: 50% 130%;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center;
}
.pricedetail__item:nth-child(odd) { --rot: -2.5deg; }
.pricedetail__item:nth-child(even) { --rot: 2.5deg; }
.pricedetail__item:hover {
  --rot: 0deg;
  transform: translateY(-14px) scale(1.04);
  border-color: #00A8FF;
  box-shadow: 0 22px 50px rgba(0,168,255,0.22);
  z-index: 2;
}
/* corner index: suit + price, like a real card */
.pricedetail__item::before {
  content: "";
  position: absolute; top: 0.6rem; left: 0.75rem;
  font-size: 1rem; color: #00A8FF;
}
.pricedetail__item::after {
  content: "";
  position: absolute; top: 0.6rem; right: 0.75rem;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.8rem; font-weight: 700; color: #E8EDF2;
  letter-spacing: 0.02em;
}
.pricedetail__item h4 { margin: 0; font-size: 1rem; color: var(--fg, #E8EDF2); order: 2; }
.pricedetail__item h4 em { display: block; font-style: normal; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #00A8FF; margin-top: 2px; }
.pricedetail__item--hot { border-color: #00A8FF; background: linear-gradient(180deg, rgba(0,168,255,0.16), rgba(0,168,255,0.04)); }
.pricedetail__amount {
  order: 1; margin: 0 0 0.4rem;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.15rem; font-weight: 700; color: #00A8FF;
  display: flex; align-items: center; gap: 6px;
}
.pricedetail__amount::before { content: "◈"; color: #00A8FF; font-size: 0.9rem; }
.pricedetail__item p { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted, #8FA3B8); line-height: 1.45; order: 3; }
.pricedetail__cta, .pricedetail__note {
  margin: 1.4rem 0 0; text-align: center; font-size: 0.9rem; color: #8FA3B8;
}
.pricedetail__cta a { color: #00A8FF; text-decoration: none; border-bottom: 1px solid rgba(0,168,255,0.4); }
@media (max-width: 760px) {
  .cardhand { flex-direction: column; align-items: center; gap: 1rem; min-height: 0; }
  .handcard { margin: 0; --tilt: 0deg !important; width: min(320px, 88%); }
  .handcard__teaser { opacity: 1; transform: none; }
  .cardhand.is-open .handcard.is-active { width: 94%; }
}

/* footer privacy note */
.footer__privacy { color: #64748B; font-size: 0.78rem; margin-top: 0.4rem; }
/* launch specials */
.special-badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #00A8FF, #0077CC);
  color: #050A14; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,168,255,0.35);
}
.pricedetail__amount s { color: #8FA3B8; font-weight: 400; font-size: 0.85em; margin-right: 6px; text-decoration-thickness: 2px; }
.pricedetail__amount .now { color: #00A8FF; }
