:root {
  --bg-main: #f7f9fb;
  --bg-secondary: #eef3f9;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --search-bg: #f1f5ff;

  --text-main: #333c4d;
  --text-soft: #7d8a99;
  --text-white: #ffffff;

  --primary: #3661eb;
  --primary-soft: #edf2ff;
  --primary-strong: #274bcc;
  --cyan: #00cfff;
  --green: #1cc98f;
  --orange: #fc9e4f;

  --border: rgba(54, 97, 235, 0.08);
  --border-strong: rgba(54, 97, 235, 0.16);

  --shadow-sm: 0 6px 18px rgba(20, 31, 56, 0.06);
  --shadow-md: 0 14px 32px rgba(20, 31, 56, 0.08);
  --shadow-lg: 0 20px 55px rgba(20, 31, 56, 0.12);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container: 1280px;

  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(0, 207, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(54, 97, 235, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg-main) 58%, #eef3f8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 22px auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-white);
  background:
    linear-gradient(145deg, var(--cyan), var(--primary));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 28px rgba(54, 97, 235, 0.28);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.brand-text h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 680px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-box {
  width: min(430px, 100%);
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 56px;
  border-radius: 18px;
  background: rgba(241, 245, 255, 0.92);
  border: 1px solid rgba(54, 97, 235, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background var(--transition);
}

.search-box:focus-within {
  border-color: rgba(54, 97, 235, 0.28);
  box-shadow:
    0 0 0 4px rgba(54, 97, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
}

.search-box svg {
  color: var(--primary);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text-main);
}

.search-box input::placeholder {
  color: #93a0b0;
}

.main-content {
  padding-top: 26px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(54, 97, 235, 0.96), rgba(0, 207, 255, 0.86));
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  filter: blur(4px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #eaf4ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 16px;
}

.hero-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
  max-width: 720px;
}

.hero-copy p {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: grid;
  gap: 14px;
  align-content: center;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-label {
  display: block;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-header {
  margin-top: 26px;
  margin-bottom: 18px;
  padding: 0 4px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-header h3 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.section-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.gadgets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gadget-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  padding: 20px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.gadget-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 30%);
  pointer-events: none;
}

.gadget-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(54, 97, 235, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.gadget-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(54, 97, 235, 0.15),
    var(--shadow-lg);
  border-color: rgba(54, 97, 235, 0.3);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.card-logo-wrap {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 242, 255, 0.88));
  border: 1px solid rgba(54, 97, 235, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(20, 31, 56, 0.08);
  flex-shrink: 0;
}

.card-logo {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(54, 97, 235, 0.08);
  white-space: nowrap;
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-body h4 {
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-body p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.empty-state {
  margin-top: 18px;
}

.empty-state-box {
  padding: 34px 20px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(54, 97, 235, 0.18);
  box-shadow: var(--shadow-sm);
}

.empty-state-box h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-soft);
}

@media (max-width: 1200px) {
  .gadgets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: min(calc(100% - 28px), var(--container));
    margin: 14px auto 20px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

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

@media (max-width: 680px) {
  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .subtitle {
    font-size: 0.92rem;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }

  .hero-copy p {
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .gadget-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .app-shell {
    width: min(calc(100% - 18px), var(--container));
  }

  .topbar,
  .hero-panel,
  .gadget-card {
    border-radius: 22px;
  }

  .topbar {
    padding: 16px;
  }

  .hero-panel {
    padding: 20px;
  }

  .search-box {
    height: 52px;
    border-radius: 16px;
  }

  .card-logo-wrap {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .card-logo {
    max-width: 38px;
    max-height: 38px;
  }
}
