:root {
  --ink: #081233;
  --muted: #66718f;
  --purple: #7b4dff;
  --violet: #aa4dff;
  --pink: #ff5d91;
  --blue: #5f7dff;
  --line: rgba(104, 113, 145, 0.14);
  --shadow: 0 14px 34px rgba(51, 55, 95, 0.11);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(123, 77, 255, 0.12), transparent 42%),
    linear-gradient(225deg, rgba(255, 93, 145, 0.1), transparent 38%),
    #f8f9ff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 88px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(123, 77, 255, 0.17), transparent 26%),
    linear-gradient(228deg, rgba(95, 125, 255, 0.16), transparent 32%),
    linear-gradient(18deg, rgba(255, 93, 145, 0.13), transparent 40%),
    linear-gradient(180deg, #fbfbff 0%, #fff 48%, #fbfcff 100%);
  box-shadow: 0 0 64px rgba(91, 95, 136, 0.11);
}

.app-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 54%);
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 13px 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 255, 0.76)),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand-lockup img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(74, 70, 128, 0.12);
}

.brand-lockup span {
  font-size: 1.18rem;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-card {
  position: relative;
  min-height: 142px;
  margin-bottom: 10px;
  padding-top: 6px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  margin: 0 0 10px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--purple);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.15), rgba(255, 95, 148, 0.14));
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.twinkle-icon,
.spark {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
}

.twinkle-icon::before,
.spark::before {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.hero-copy h1 {
  max-width: 350px;
  margin-bottom: 8px;
  font-size: 1.82rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 span {
  background: linear-gradient(105deg, #6f52ff 0%, #4f8dff 43%, #ff4fb1 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p:last-child {
  max-width: 230px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.hero-art {
  position: absolute;
  top: -2px;
  right: -34px;
  z-index: 1;
  width: 156px;
  height: 156px;
  transform: scale(0.78);
}

.orbit {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 120px;
  height: 76px;
  border: 4px solid rgba(185, 73, 247, 0.14);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-28deg);
}

.floating-tool {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(61, 66, 118, 0.14);
  transform: rotate(18deg);
}

.floating-tool::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.55);
}

.floating-tool > span {
  position: relative;
  z-index: 1;
}

.floating-tool.doc {
  top: 10px;
  left: 58px;
  background: #f5efff;
}

.floating-tool.pdf {
  left: 35px;
  bottom: 29px;
  color: #fff;
  background: #fff2f4;
  transform: rotate(10deg);
}

.floating-tool.image {
  right: 0;
  bottom: 45px;
  background: #f1fff5;
}

.spark {
  position: absolute;
  color: #fff;
  filter: drop-shadow(0 6px 16px rgba(124, 77, 255, 0.18));
}

.spark.one {
  top: 2px;
  left: 14px;
  width: 20px;
  height: 20px;
}

.spark.two {
  right: -5px;
  bottom: 32px;
  width: 17px;
  height: 17px;
}

.search-card {
  display: block;
  min-height: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 255, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 13px 32px rgba(36, 40, 77, 0.09);
  backdrop-filter: blur(22px) saturate(1.14);
}

.search-card label {
  position: relative;
  display: block;
}

.search-card label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-card input {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 18px 0 52px;
  color: var(--ink);
  background: transparent;
  outline: 0;
  font-size: 0.98rem;
}

.search-card input::placeholder {
  color: #7c86a2;
}

.search-card label::before {
  position: absolute;
  left: 21px;
  top: 50%;
  width: 17px;
  height: 17px;
  content: "";
  border: 3px solid #77809d;
  border-radius: 50%;
  transform: translateY(-58%);
}

.search-card label::after {
  position: absolute;
  left: 38px;
  top: 31px;
  width: 12px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #77809d;
  transform: rotate(45deg);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 13px;
  padding-top: 4px;
}

.section-heading p {
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 198px;
  padding: 12px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 228, 238, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.75) 56%),
    linear-gradient(135deg, var(--soft), rgba(255, 255, 255, 0.4));
  box-shadow: 0 14px 34px rgba(62, 67, 110, 0.085);
}

.tool-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 43%),
    linear-gradient(315deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 50%);
}

.tool-card > * {
  position: relative;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.tool-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 63%, #fff));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 23%, transparent);
  font-weight: 950;
}

.floating-tool.doc span,
.tool-icon.doc span {
  position: relative;
  width: 16px;
  height: 20px;
  border-radius: 3px;
  background: #fff;
  clip-path: polygon(0 0, 68% 0, 100% 28%, 100% 100%, 0 100%);
}

.floating-tool.doc span {
  background: linear-gradient(135deg, #7152ff, #9a58ff);
}

.floating-tool.doc span::before,
.tool-icon.doc span::before {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 9px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 75%, #fff);
  box-shadow: 0 5px color-mix(in srgb, var(--accent) 75%, #fff);
}

.floating-tool.pdf span,
.tool-icon.pdf span {
  display: grid;
  place-items: end center;
  width: 20px;
  height: 26px;
  padding-bottom: 6px;
  border-radius: 4px;
  color: var(--accent);
  background: #fff;
  clip-path: polygon(0 0, 68% 0, 100% 28%, 100% 100%, 0 100%);
  font-size: 0.45rem;
  font-weight: 950;
}

.floating-tool.pdf span {
  color: #fff;
  background: linear-gradient(135deg, #ff405a, #ff7892);
}

.floating-tool.image span,
.tool-icon.image span {
  position: relative;
  width: 23px;
  height: 19px;
  border: 2px solid rgba(50, 198, 111, 0.2);
  border-radius: 5px;
  background: linear-gradient(135deg, #e6fff0, #fff);
}

.floating-tool.image span::before,
.tool-icon.image span::before {
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 15px;
  height: 10px;
  content: "";
  background: #39c979;
  clip-path: polygon(0 100%, 44% 35%, 66% 58%, 82% 25%, 100% 100%);
}

.floating-tool.image span::after,
.tool-icon.image span::after {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #f8bd40;
}

.tool-icon.bolt::before,
.tool-icon.grid::before {
  position: absolute;
  content: "";
  background: #fff;
}

.tool-icon.bolt::before {
  width: 15px;
  height: 23px;
  clip-path: polygon(58% 0, 14% 53%, 47% 53%, 36% 100%, 86% 40%, 54% 40%);
}

.tool-icon.grid::before {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(#fff 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) 12px 0 / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) 0 12px / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) 12px 12px / 8px 8px no-repeat;
}

.tool-tag {
  padding: 5px 7px;
  border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  font-size: 0.64rem;
  font-weight: 900;
}

.tool-card h3 {
  margin-bottom: 7px;
  font-size: 0.95rem;
  line-height: 1.22;
}

.tool-card p {
  display: -webkit-box;
  min-height: 39px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  padding: 0 4px 0 10px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #ad44f4));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 23%, transparent);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
}

.tool-action span {
  position: relative;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
}

.tool-action span::before {
  width: 8px;
  height: 8px;
  content: "";
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 92px;
  margin: 0;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: var(--shadow);
}

.why-heading {
  margin-top: 2px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.benefit-grid article {
  min-height: 88px;
  padding: 10px 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 15px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(51, 55, 95, 0.07);
  text-align: center;
}

.benefit-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  border-radius: 12px;
}

.benefit-icon::before {
  position: absolute;
  content: "";
}

.shield {
  color: #674bff;
  background: #eee9ff;
}

.shield::before {
  width: 16px;
  height: 19px;
  background: currentColor;
  clip-path: polygon(50% 0, 90% 16%, 84% 64%, 50% 100%, 16% 64%, 10% 16%);
}

.fast {
  color: #30bf70;
  background: #eaf9ef;
}

.fast::before {
  width: 14px;
  height: 21px;
  background: currentColor;
  clip-path: polygon(58% 0, 14% 53%, 47% 53%, 36% 100%, 86% 40%, 54% 40%);
}

.easy {
  color: #f6a51c;
  background: #fff4de;
}

.easy::before {
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 93%, 50% 70%, 19% 93%, 31% 56%, 0 35%, 38% 35%);
}

.cloud {
  color: #47aeea;
  background: #e7f6ff;
}

.cloud::before {
  width: 22px;
  height: 15px;
  border-radius: 14px;
  background: currentColor;
  box-shadow: -6px 3px 0 -1px currentColor, 6px 3px 0 -1px currentColor;
}

.benefit-grid h3 {
  margin-bottom: 3px;
  font-size: 0.64rem;
  line-height: 1.15;
}

.benefit-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.profile-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 86px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(123, 77, 255, 0.18), rgba(255, 93, 145, 0.1), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 44px;
  height: 44px;
  padding: 7px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(74, 70, 128, 0.12);
}

.profile-card h2 {
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.profile-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.32;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: min(calc(100% - 30px), 398px);
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.88)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(51, 55, 95, 0.13);
  backdrop-filter: blur(22px) saturate(1.14);
  transform: translateX(-50%);
}

.bottom-nav a {
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 58px;
  color: #7a839e;
  font-size: 0.66rem;
  font-weight: 850;
}

.bottom-nav a > span {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.bottom-nav a.active {
  color: var(--purple);
}

.nav-home::before {
  position: absolute;
  inset: 3px;
  content: "";
  background: currentColor;
  clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 60% 100%, 60% 66%, 40% 66%, 40% 100%, 12% 100%, 12% 42%, 0 42%);
}

.nav-grid {
  background:
    linear-gradient(currentColor 0 0) 2px 2px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 14px 2px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 2px 14px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 14px 14px / 7px 7px no-repeat;
  mask:
    linear-gradient(#000 0 0) 2px 2px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 14px 2px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 2px 14px / 7px 7px no-repeat,
    linear-gradient(#000 0 0) 14px 14px / 7px 7px no-repeat;
}

.nav-star::before {
  position: absolute;
  inset: 2px;
  content: "";
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 93%, 50% 70%, 19% 93%, 31% 56%, 0 35%, 38% 35%);
}

.nav-user::before,
.nav-user::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.nav-user::before {
  top: 3px;
  width: 8px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.nav-user::after {
  bottom: 2px;
  width: 18px;
  height: 9px;
  border: 3px solid currentColor;
  border-radius: 14px 14px 0 0;
}

@media (min-width: 720px) {
  .app-shell {
    width: min(100%, 760px);
    padding: 24px 32px 104px;
  }

  .hero-card {
    min-height: 186px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .hero-copy p:last-child {
    max-width: 390px;
    font-size: 1.08rem;
  }

  .hero-art {
    right: 14px;
    width: 220px;
    height: 190px;
    transform: scale(1.02);
  }

  .tools-grid {
    gap: 16px;
  }

  .tool-card {
    min-height: 270px;
    padding: 18px;
  }

  .tool-card h3 {
    font-size: 1.25rem;
  }

  .tool-card p {
    font-size: 0.86rem;
  }

  .tool-action {
    font-size: 0.82rem;
  }

  .benefit-grid article {
    min-height: 116px;
  }

  .benefit-grid h3 {
    font-size: 0.82rem;
  }

  .benefit-grid p {
    font-size: 0.74rem;
  }

  .bottom-nav {
    width: min(calc(100% - 64px), 696px);
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 14px;
  }

  .hero-copy h1 {
    font-size: 1.82rem;
  }

  .hero-art {
    right: -36px;
    transform: scale(0.78);
  }

  .tools-grid {
    gap: 8px;
  }

  .tool-card {
    min-height: 212px;
    padding: 11px 9px 9px;
  }

  .tool-card h3 {
    font-size: 0.88rem;
  }

  .tool-card p {
    font-size: 0.66rem;
  }

  .tool-action {
    font-size: 0.56rem;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
