/* ============================================================
   gelo.fyi — Home
   Editorial hero (OpenAI) + frosted chrome & tile grid (Apple)
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 92px) 0 76px;
  text-align: center;
  overflow: hidden;
}

/* faint light source behind the headline — the only decoration */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 520px;
  background: radial-gradient(640px 320px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.display {
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 auto;
  text-wrap: balance;
  animation: fade-up 0.7s var(--ease-spring) 0.06s both;
}

/* Apple keynote-style gradient on the second clause */
.grad {
  background: linear-gradient(94deg, var(--accent), #bf5af2 55%, #ff375f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 64px); }
}

/* ---------- Search ---------- */

.search {
  position: relative;
  max-width: 560px;
  margin: 44px auto 0;
  animation: fade-up 0.7s var(--ease-spring) 0.18s both;
}

.search-icon {
  position: absolute;
  left: 21px;
  top: 50%;
  translate: 0 -50%;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 58px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 17px;
  padding: 0 96px 0 54px;
  box-shadow: var(--shadow-tile);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-input::placeholder { color: var(--text-tertiary); }

.search-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-tile);
}

.search kbd {
  position: absolute;
  right: 21px;
  top: 50%;
  translate: 0 -50%;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--bg-subtle);
  pointer-events: none;
}

@media (hover: none) {
  .search kbd { display: none; }
  .search-input { padding-right: 24px; }
}

/* ---------- Tool grid ---------- */

.tools { padding: 56px 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.section-sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.search-count {
  font-size: 13.5px;
  color: var(--text-tertiary);
  min-height: 1.4em;
}

.tiles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

/* ---------- Tile ---------- */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tile);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

a.tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-tile-hover);
}

a.tile:active { transform: translateY(-1px) scale(0.99); }

/* per-tool icon gradients (base tint comes from .icon-squircle) */
.tile-icon--images { background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.tile-icon--export { background: linear-gradient(135deg, #bf5af2, #ff2d55); }
.tile-icon--rotate { background: linear-gradient(135deg, #30d158, #64d2ff); }
.tile-icon--spinner { background: linear-gradient(135deg, #64d2ff, #5e5ce6); }


.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tile-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tile-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-spring);
}

a.tile:hover .tile-cta,
a.tile:focus-visible .tile-cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .tile-cta { opacity: 1; transform: none; }
}

/* ---------- Empty state ---------- */

.no-results {
  text-align: center;
  padding: 72px 0 40px;
}

.no-results h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.no-results p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.no-results button { margin-top: 18px; }
