:root {
  --bg: #0b1020;
  --card: #161b31cc;
  --text: #eef1ff;
  --muted: #b8bfdc;
  --accent: #7c9cff;
  --accent-2: #4f73ff;
  --border: #3a4370;
  --ok: #75d69c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(113, 138, 255, 0.25), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(75, 114, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #090d1a 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(15, 18, 32, 0.8);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* Hero */
.hero {
  margin: 4rem auto;
  min-height: auto;
  display: flex;
}

.hero-split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero-panel {
  text-align: left;
  max-width: 600px;
  backdrop-filter: blur(12px);
  padding: 3rem;
  animation: fadeIn 0.8s ease-in-out forwards;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.iphone-frame {
  width: 260px;
  height: 540px;
  border-radius: 40px;
  border: 12px solid #0f1322;
  box-shadow: inset 0 0 0 1px #2a3456, 0 24px 60px rgba(0, 0, 0, 0.6);
  background: #000;
  position: relative;
  overflow: hidden;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #0f1322;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 2;
}

.iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .hero-visual {
    display: none;
  }
}


.section-block {
  padding: 12px 0 30px;
}

.section-head {
  margin-bottom: 12px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #ffffff 20%, #cfd9ff 55%, #9ab2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  max-width: 66ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.trust-item {
  border: 1px solid #445287;
  background: rgba(27, 35, 68, 0.78);
  border-radius: 12px;
  padding: 10px 12px;
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  color: #f4f7ff;
}

.trust-item span {
  color: #bcc6eb;
  font-size: .85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(6, 10, 29, 0.35);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}

.feature-pills span {
  font-size: 0.86rem;
  color: #d8e1ff;
  border: 1px solid #44518a;
  background: rgba(32, 42, 83, 0.8);
  border-radius: 999px;
  padding: 5px 10px;
}

.badge {
  display: inline-block;
  border: 1px solid #2f3862;
  background: #171f44;
  color: #cfd8ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  margin-bottom: 12px;
}

a.button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg, #5c7eff 0%, #4f73ff 100%);
  border: 1px solid #6f86ff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-right: 8px;
  margin-top: 10px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

a.button:hover,
button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(64, 98, 255, 0.28);
  filter: brightness(1.05);
}

a.button.secondary {
  background: transparent;
  color: #d8e0ff;
  border-color: #465289;
}

button.button {
  font-size: .95rem;
  cursor: pointer;
  display: inline-block;
  color: white;
  background: var(--accent-2);
  border: 1px solid #6f86ff;
  padding: 10px 14px;
  border-radius: 10px;
}

button.button-secondary {
  background: transparent;
  color: #d8e0ff;
  border-color: #465289;
}

.showcase {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(18, 24, 46, 0.9), rgba(14, 19, 37, 0.9));
  overflow: hidden;
}

.showcase img {
  width: 100%;
  min-width: 0;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid #46538a;
  border-radius: 12px;
  background: #0b0f23;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: opacity .35s ease;
}

.showcase img.fading {
  opacity: .6;
}

.icon-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid #41508f;
  background: #1a2349;
  color: #ecf1ff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.shot-caption {
  margin-top: 8px;
}

.mini-sudoku-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mini-sudoku-meta .status {
  color: var(--muted);
  margin-top: 12px;
}

.mini-sudoku-board {
  --cell-size: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: repeat(9, var(--cell-size));
  gap: 6px;
  justify-content: center;
}

.mini-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  border: 1px solid #3a467a;
  border-radius: 8px;
  background: #0f1738;
  color: #f5f7ff;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  outline: none;
}

.mini-cell:focus {
  border-color: #88a0ff;
  box-shadow: 0 0 0 2px rgba(136, 160, 255, 0.2);
}

.mini-cell.given {
  background: #1a2450;
  color: #d5deff;
  border-color: #5569b0;
}

.mini-cell.wrong {
  border-color: #e47070;
  box-shadow: 0 0 0 2px rgba(228, 112, 112, 0.18);
}

.mini-cell.block-right {
  margin-right: 10px;
}

.mini-cell.block-bottom {
  margin-bottom: 10px;
}

.cta-panel {
  text-align: center;
  background: linear-gradient(130deg, rgba(35, 48, 92, 0.9), rgba(26, 32, 61, 0.92));
}

.cta-panel .hero-cta-row {
  justify-content: center;
}

@media (max-width: 820px) {
  .trust-row,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mini-sudoku-wrap {
    grid-template-columns: 1fr;
  }

  .mini-sudoku-board {
    --cell-size: clamp(18px, 7.8vw, 34px);
    grid-template-columns: repeat(9, var(--cell-size));
    gap: 4px;
  }

  .mini-cell {
    width: var(--cell-size);
    height: var(--cell-size);
    font-size: 0.9rem;
  }

  .mini-cell.block-right {
    margin-right: 5px;
  }

  .mini-cell.block-bottom {
    margin-bottom: 5px;
  }
}

section.page {
  padding: 36px 0 54px;
}

ul, ol {
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

small, .muted {
  color: var(--muted);
}

.ok {
  color: var(--ok);
}

footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

code.inline {
  background: #1d2442;
  border: 1px solid #36406c;
  padding: 2px 7px;
  border-radius: 7px;
}
