:root {
  --bg: #070712;
  --bg-soft: #0d1020;
  --text: #f8fbff;
  --muted: #aab6d3;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --cyan: #41e8ff;
  --blue: #5474ff;
  --violet: #a855f7;
  --gold: #ffd56a;
  --green: #25d366;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(65, 232, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(168, 85, 247, 0.2), transparent 30rem),
    linear-gradient(135deg, #060711 0%, #101629 52%, #070712 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at top, black, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04));
  mix-blend-mode: overlay;
}

.page-shell {
  position: relative;
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 16px 34px;
}

.ambient {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  left: -8rem;
  background: var(--cyan);
}

.ambient-two {
  right: -9rem;
  top: 34%;
  background: var(--violet);
}

.ambient-three {
  left: 34%;
  bottom: -12rem;
  background: var(--blue);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 14px 32px;
  text-align: center;
  animation: riseIn 700ms ease both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 213, 106, 0.38);
  border-radius: 999px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffe6a0;
  background: linear-gradient(145deg, rgba(255, 213, 106, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 40px rgba(255, 213, 106, 0.12);
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3rem, 12vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 4%, #b8f7ff 34%, #d8c3ff 64%, #ffe29a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 48px rgba(65, 232, 255, 0.22);
}

.developer {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.14rem);
}

.developer strong {
  color: #ffffff;
  font-weight: 800;
}

.intro {
  width: min(100%, 660px);
  color: rgba(234, 241, 255, 0.75);
  font-size: clamp(0.95rem, 2.3vw, 1.08rem);
}

.whatsapp-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 20px;
  border: 1px solid rgba(37, 211, 102, 0.48);
  border-radius: 999px;
  color: #ecfff4;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.24), rgba(37, 211, 102, 0.08));
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: transform 520ms ease;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.8);
  box-shadow: 0 24px 56px rgba(37, 211, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.whatsapp-button:hover::before {
  transform: translateX(110%);
}

.whatsapp-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16), 0 0 24px rgba(37, 211, 102, 0.78);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 26px);
  width: min(100%, 900px);
  margin: 8px auto 0;
  perspective: 1200px;
}

.tool-card {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  min-height: 154px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 20px);
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 28% 18%, rgba(65, 232, 255, 0.18), transparent 42%),
    rgba(9, 13, 27, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
  animation: cardIn 650ms ease both;
}

.tool-card:nth-child(1) { animation-delay: 70ms; }
.tool-card:nth-child(2) { animation-delay: 120ms; }
.tool-card:nth-child(3) { animation-delay: 170ms; }
.tool-card:nth-child(4) { animation-delay: 220ms; }
.tool-card:nth-child(5) { animation-delay: 270ms; }
.tool-card:nth-child(6) { animation-delay: 320ms; }
.tool-card:nth-child(7) { animation-delay: 370ms; }
.tool-card:nth-child(8) { animation-delay: 420ms; }
.tool-card:nth-child(9) { animation-delay: 470ms; }
.tool-card:nth-child(10) { animation-delay: 520ms; }

.tool-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(65, 232, 255, 0.76), rgba(168, 85, 247, 0.24), rgba(255, 213, 106, 0.64));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 260ms ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 42%;
  left: 5%;
  bottom: -32%;
  border-radius: 50%;
  background: rgba(65, 232, 255, 0.24);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 28% 18%, rgba(65, 232, 255, 0.24), transparent 44%),
    rgba(13, 19, 39, 0.86);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.54), 0 0 42px rgba(65, 232, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.tool-card:hover::before,
.tool-card:focus-visible::before,
.tool-card:hover::after,
.tool-card:focus-visible::after {
  opacity: 1;
}

.tool-card:focus-visible {
  outline: 3px solid rgba(65, 232, 255, 0.55);
  outline-offset: 4px;
}

.shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.22), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover .shine {
  opacity: 1;
}

.icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(74px, 18vw, 126px);
  height: clamp(74px, 18vw, 126px);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 34px rgba(0, 0, 0, 0.24);
  transform: translateZ(42px);
}

.icon-wrap::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 64%);
}

.icon-wrap img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: saturate(1.15) contrast(1.08) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 18px rgba(65, 232, 255, 0.18));
  transform: translateZ(28px) rotateX(4deg) rotateY(-5deg);
  transition: transform 260ms ease, filter 260ms ease;
}

.tool-card:hover .icon-wrap img,
.tool-card:focus-visible .icon-wrap img {
  transform: translateZ(54px) rotateX(0deg) rotateY(0deg) scale(1.08);
  filter: saturate(1.28) contrast(1.12) drop-shadow(0 22px 24px rgba(0, 0, 0, 0.44)) drop-shadow(0 0 26px rgba(65, 232, 255, 0.3));
}

.tool-name {
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(0.86rem, 2.7vw, 1.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  transform: translateZ(34px);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 42px 0 4px;
  color: rgba(234, 241, 255, 0.58);
  font-size: 0.9rem;
  text-align: center;
}

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 760px) {
  .page-shell {
    padding: 42px 30px 44px;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 44px;
  }

  .tool-card {
    min-height: 240px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tools-grid {
    gap: 10px;
  }

  .tool-card {
    min-height: 142px;
    border-radius: 22px;
  }

  .icon-wrap {
    border-radius: 21px;
  }
}

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