:root {
  --bg: #070712;
  --text: #f8fbff;
  --muted: #aab6d3;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #41e8ff;
  --blue: #5474ff;
  --violet: #a855f7;
  --gold: #ffd56a;
  --green: #25d366;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  --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.2), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(168, 85, 247, 0.18), 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.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 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.05), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035));
  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(62px);
  opacity: 0.14;
  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 520ms 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.1);
}

.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 44px rgba(65, 232, 255, 0.18);
}

.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.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.whatsapp-button:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.8);
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.18), 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;
}

.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(13px, 2.8vw, 24px);
  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.13), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 28% 18%, rgba(65, 232, 255, 0.16), transparent 42%),
    rgba(9, 13, 27, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
  animation: cardIn 460ms ease both;
}

@supports (backdrop-filter: blur(8px)) {
  .tool-card,
  .feedback-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.tool-card:nth-child(1) { animation-delay: 40ms; }
.tool-card:nth-child(2) { animation-delay: 70ms; }
.tool-card:nth-child(3) { animation-delay: 100ms; }
.tool-card:nth-child(4) { animation-delay: 130ms; }
.tool-card:nth-child(5) { animation-delay: 160ms; }
.tool-card:nth-child(6) { animation-delay: 190ms; }
.tool-card:nth-child(7) { animation-delay: 220ms; }
.tool-card:nth-child(8) { animation-delay: 250ms; }
.tool-card:nth-child(9) { animation-delay: 280ms; }
.tool-card:nth-child(10) { animation-delay: 310ms; }

.tool-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(65, 232, 255, 0.72), rgba(168, 85, 247, 0.22), rgba(255, 213, 106, 0.58));
  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 190ms ease;
}

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

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 28% 18%, rgba(65, 232, 255, 0.2), transparent 44%),
    rgba(13, 19, 39, 0.84);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45), 0 0 34px rgba(65, 232, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.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 50% 25%, rgba(255, 255, 255, 0.18), transparent 35%);
  opacity: 0;
  transition: opacity 160ms ease;
}

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

.icon-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(88px, 22vw, 154px);
  height: clamp(88px, 22vw, 154px);
  transform: translateZ(0);
}

.icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.08) drop-shadow(0 18px 18px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 16px rgba(65, 232, 255, 0.16));
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, filter 180ms ease;
}

.tool-card:hover .icon-wrap img,
.tool-card:focus-visible .icon-wrap img {
  transform: translateY(-2px) scale(1.055);
  filter: saturate(1.24) contrast(1.1) drop-shadow(0 20px 20px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 22px rgba(65, 232, 255, 0.25));
}

.tool-name {
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", "Space Grotesk", Inter, sans-serif;
  font-size: clamp(0.92rem, 2.85vw, 1.18rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.feedback-panel {
  position: relative;
  display: grid;
  gap: 24px;
  width: min(100%, 900px);
  margin: clamp(32px, 7vw, 72px) auto 0;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 10% 0%, rgba(65, 232, 255, 0.16), transparent 44%),
    rgba(9, 13, 27, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.feedback-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(65, 232, 255, 0.58), rgba(255, 213, 106, 0.22), rgba(168, 85, 247, 0.48));
  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;
  pointer-events: none;
}

.feedback-copy,
.feedback-form {
  position: relative;
  z-index: 1;
}

.feedback-copy h2 {
  margin-top: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.feedback-copy p:last-child {
  width: min(100%, 560px);
  margin-top: 14px;
  color: rgba(234, 241, 255, 0.72);
  font-size: 1rem;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  color: rgba(234, 241, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 15px 16px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: 500 1rem Inter, sans-serif;
  outline: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 142px;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(234, 241, 255, 0.38);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: rgba(65, 232, 255, 0.62);
  background: rgba(3, 7, 18, 0.56);
  box-shadow: 0 0 0 4px rgba(65, 232, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feedback-form button {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  color: #06101b;
  cursor: pointer;
  font: 900 1rem Inter, sans-serif;
  background: linear-gradient(135deg, #41e8ff, #ffd56a);
  box-shadow: 0 18px 40px rgba(65, 232, 255, 0.18);
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.feedback-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(65, 232, 255, 0.24);
}

.feedback-form button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  color: rgba(234, 241, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: #8fffc1;
}

.form-status.error {
  color: #ffb4b4;
}

.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(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  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;
  }

  .feedback-panel {
    grid-template-columns: 0.86fr 1fr;
    align-items: start;
  }
}

@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 {
    width: clamp(82px, 24vw, 118px);
    height: clamp(82px, 24vw, 118px);
  }
}

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