@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0b1022;
  --panel: #141b2f;
  --panel-soft: #101625;
  --primary: #6e7cff;
  --secondary: #9b5bff;
  --accent: #39d3ff;
  --text: #f5f7ff;
  --muted: #b7c3de;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(8, 10, 20, 0.55);
  --radius: 18px;
  --container: 1120px;
  --measure: 70ch;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgba(110, 124, 255, 0.28), transparent 50%),
              radial-gradient(circle at 80% 0%, rgba(155, 91, 255, 0.25), transparent 45%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h4, h5, h6 {
  margin: 0;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
}

strong {
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

:where(
  .hero__content,
  .section__header,
  .positioning__body,
  .services,
  .service,
  .engagement,
  .fit__col,
  .cta,
  .showcase,
  .showcase__header,
  .screenshot-card,
  .search__copy,
  .search__action,
  .result,
  .searchpage__result,
  .searchpage__news,
  .quiz,
  .quiz__content
) > * + * {
  margin-top: var(--space-3);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 45% 20%, rgba(110, 124, 255, 0.35), rgba(11, 16, 34, 0.85)),
              radial-gradient(circle at 15% 75%, rgba(57, 211, 255, 0.2), transparent 50%),
              var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.7;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: 15%;
  background: radial-gradient(circle, rgba(110, 124, 255, 0.55), transparent 60%);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: 15%;
  background: radial-gradient(circle, rgba(155, 91, 255, 0.45), transparent 60%);
}

.hero__glow {
  position: absolute;
  inset: -10% -30% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(57, 211, 255, 0.4), transparent 55%);
  filter: blur(80px);
  opacity: 0.55;
  animation: pulse 7s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  text-align: left;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(110, 124, 255, 0.4);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--text);
  background: linear-gradient(120deg, rgba(110, 124, 255, 0.2), rgba(155, 91, 255, 0.2));
}

.eyebrow,
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.subhead {
  font-size: 1.15rem;
  max-width: 60ch;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.btn {
  border: 1px solid rgba(110, 124, 255, 0.4);
  background: transparent;
  color: var(--text);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0b1022;
  box-shadow: 0 12px 30px rgba(110, 124, 255, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.stat {
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.stat__number {
  display: block;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

.positioning {
  padding: 5rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.section__header {
  max-width: var(--measure);
  margin: 0 0 var(--space-5);
}

.section__header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.positioning__body,
.services,
.engagement,
.fit,
.positioning .cta,
.showcase {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.positioning__body {
  border-left: 3px solid rgba(110, 124, 255, 0.7);
}

.services {
  border-left: 3px solid rgba(155, 91, 255, 0.55);
}

.engagement {
  border-left: 3px solid rgba(57, 211, 255, 0.6);
}

.fit {
  border-left: 3px solid rgba(110, 124, 255, 0.6);
}

.positioning .cta {
  border-left: 3px solid rgba(155, 91, 255, 0.6);
  text-align: left;
  background: radial-gradient(circle at 20% 20%, rgba(110, 124, 255, 0.2), transparent 55%),
              rgba(255, 255, 255, 0.03);
}

.section__divider {
  border: none;
  height: 1px;
  width: 100%;
  margin: var(--space-6) 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.positioning ul,
.positioning ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.positioning li {
  margin-bottom: var(--space-2);
}

.positioning li:last-child {
  margin-bottom: 0;
}

.positioning__body p,
.services > p,
.engagement p,
.positioning .cta p {
  max-width: var(--measure);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.service {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: var(--space-5);
  background: rgba(11, 16, 34, 0.65);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 124, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.service h4 {
  font-family: 'Space Grotesk', sans-serif;
}

.service__outcome {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.showcase__header {
  max-width: var(--measure);
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.screenshot-card {
  background: rgba(11, 16, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.screenshot-card__screen {
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(160deg, rgba(110, 124, 255, 0.25), rgba(155, 91, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.screen__bar {
  display: flex;
  gap: 0.35rem;
}

.screen__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.screen__hero {
  height: 70px;
  border-radius: 10px;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(57, 211, 255, 0.5), rgba(110, 124, 255, 0.7));
}

.screen__hero.alt {
  background: linear-gradient(135deg, rgba(155, 91, 255, 0.6), rgba(110, 124, 255, 0.7));
}

.screen__hero.accent {
  background: linear-gradient(135deg, rgba(57, 211, 255, 0.6), rgba(155, 91, 255, 0.7));
}

.screen__rows {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.screen__rows div {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.fit__col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-5);
}

.search {
  padding: 5rem 1.5rem 6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(11, 16, 34, 0.95));
}

.search__inner {
  max-width: var(--container);
  margin: 0 auto var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-6);
  align-items: start;
}

.search__copy {
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.search__copy h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.search__copy h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  color: var(--accent);
}

.search__wordmark {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.search__prompt {
  color: var(--text);
}

.search__action {
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.search__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  background: var(--panel);
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.search__bar.focused {
  border-color: rgba(110, 124, 255, 0.7);
  box-shadow: 0 18px 44px rgba(110, 124, 255, 0.2);
}

.search__bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
}

.search__icon,
.search__mic {
  color: var(--muted);
  font-size: 1rem;
}

.search__hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.search__results {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}

.result {
  padding: 1rem 1.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

.result__title {
  color: #8ab0ff;
  margin: 0;
  font-size: 1.05rem;
}

.result__url {
  color: #6dd6b0;
  font-size: 0.9rem;
}

.result__snippet {
  color: var(--muted);
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.quiz__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
  z-index: 10;
}

.quiz__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.quiz {
  background: var(--panel);
  border-radius: 18px;
  padding: 1.75rem;
  max-width: 540px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.quiz__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.quiz__options {
  display: grid;
  gap: 0.75rem;
}

.quiz__option {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.quiz__option.selected {
  border-color: rgba(110, 124, 255, 0.7);
  background: rgba(110, 124, 255, 0.12);
  transform: translateY(-1px);
}

.quiz__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.quiz__result {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  display: none;
}

.quiz__result.active {
  display: block;
}

.searchpage__overlay {
  position: fixed;
  inset: 0;
  background: #f8f9fb;
  color: #202124;
  display: none;
  z-index: 12;
  overflow-y: auto;
}

.searchpage__overlay.active {
  display: block;
}

.searchpage {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  font-family: 'Inter', sans-serif;
}

.searchpage__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #f8f9fb;
  z-index: 1;
}

.searchpage__logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4285f4;
  letter-spacing: 0.08em;
}

.searchpage__bar {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
}

.searchpage__bar input {
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

.searchpage__close {
  padding: 0.55rem 0.9rem;
  border-radius: 18px;
  font-size: 0.9rem;
}

.searchpage__results {
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.searchpage__result {
  line-height: 1.5;
  animation: fadeInUp 0.4s ease;
}

.searchpage__result a {
  color: #1a0dab;
  font-size: 1.05rem;
  text-decoration: none;
}

.searchpage__result a:hover {
  text-decoration: underline;
}

.searchpage__url {
  color: #006621;
  font-size: 0.9rem;
}

.searchpage__snippet {
  color: #4d5156;
}

.searchpage__news {
  padding: 1rem;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.searchpage__news h4 {
  margin: 0;
  color: #1a0dab;
}

.searchpage__news .searchpage__url {
  margin-bottom: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

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

@media (max-width: 960px) {
  .hero__content {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .positioning {
    padding: 4rem 1.5rem;
  }

  .search__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .search__bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .search__bar input {
    width: 100%;
  }

  .search__icon,
  .search__mic {
    justify-self: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .searchpage__header {
    flex-direction: column;
    align-items: stretch;
  }

  .searchpage__bar {
    grid-template-columns: auto 1fr;
  }

  .searchpage__close {
    justify-self: end;
  }
}
