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

:root {
  --gold: #FFB900;
  --neon: #39ff14;
  --bg: #0a0a0a;
  --card: #111111;
  --text: #ffffff;
  --muted: #a1a1aa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0a0a0a;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #222;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav { display: flex; gap: 28px; }
.nav a { color: #ccc; text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: white; }
.header-right { display: flex; align-items: center; gap: 12px; }
.search {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 14px;
  color: white;
  width: 180px;
}
.star-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-signin {
  background: var(--gold);
  color: #111;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 40px;
  padding: 60px 50px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
h1 {
  font-size: 5.2rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -1px;
}
h1 span { color: var(--gold); }
.sub {
  margin: 20px 0 28px;
  color: #ddd;
  max-width: 380px;
  font-size: 1.05rem;
}
.hero-buttons { display: flex; gap: 12px; margin-bottom: 32px; }
.btn-primary {
  background: var(--gold);
  color: #111;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid #444;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
}
.features {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: #ccc;
}
.features small { color: #888; }
.status { color: #aaa; font-size: 0.9rem; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  margin-right: 8px;
}

.kibo-main {
  max-width: 100%;
  filter: drop-shadow(0 0 40px rgba(57,255,20,0.4));
}

/* Tool of the Day */
.tod-card {
  background: #111;
  border: 1px solid #3a2a00;
  border-radius: 12px;
  padding: 20px;
}
.tod-header {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.tod-image {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  position: relative;
  margin-bottom: 12px;
}
.tod-image img { width: 90px; }
.star-small { position: absolute; top: 8px; right: 8px; color: var(--gold); }
.badge {
  display: inline-block;
  background: #1a3a1a;
  color: var(--neon);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.tod-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.tod-sub { color: #aaa; font-size: 0.9rem; margin-bottom: 8px; }
.tod-desc { font-size: 0.9rem; color: #ccc; margin-bottom: 14px; }
.pills { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pills span {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}
.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.stats small { color: #888; }
.btn-tod {
  display: block;
  text-align: center;
  background: transparent;
  border: 1px solid #3a2a00;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
}

/* Discover AI Tools Section */
.tools-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 50px 80px;
}
.tools-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  gap: 20px;
}
.tools-eyebrow {
  color: #d4a853;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.tools-section h2 {
  font-size: 2.8rem;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.tools-sub { color: #aaa; }
.tools-controls { display: flex; gap: 12px; }
#tool-search {
  background: #1a1612;
  border: 1px solid #4a3a22;
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  width: 280px;
}
.filters-btn {
  background: #1a1612;
  border: 1px solid #4a3a22;
  color: #d4a853;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  background: #1a1612;
  border: 1px solid #4a3a22;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.tool-card .cat {
  color: #d4a853;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tool-main {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.tool-icon {
  width: 48px;
  height: 48px;
  background: #2a2218;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a853;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tool-card .desc { color: #aaa; font-size: 0.85rem; flex: 1; }
.best-for {
  color: #ccc;
  font-size: 0.8rem;
  margin: 10px 0;
}
.visit-btn {
  display: block;
  background: #2e6f40;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.pagination button {
  background: #1a1612;
  border: 1px solid #4a3a22;
  color: #d4a853;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-header { flex-direction: column; align-items: flex-start; }
}
#kibo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  animation: float 4s ease-in-out infinite;
}
#kibo img { width: 100%; filter: drop-shadow(0 0 12px var(--neon)); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons, .features { justify-content: center; }
  .kibo-main { max-width: 280px; margin: 20px auto; }
}

/* KIBO Guide */
#kibo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 90px;
  z-index: 1000;
  cursor: pointer;
  animation: float 4s ease-in-out infinite;
}
#kibo img {
  width: 100%;
  filter: drop-shadow(0 0 12px #39ff14);
  animation: antenna 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes antenna {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}
#kibo-panel {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #111;
  border: 1px solid #3a2a00;
  border-radius: 12px;
  padding: 18px;
  z-index: 999;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
#kibo-panel.open { display: block; }
#kibo-panel h4 { margin-bottom: 8px; color: #FFB900; }
#kibo-panel p { font-size: 0.9rem; color: #ccc; margin-bottom: 12px; }
#kibo-panel .shortcuts { display: flex; flex-direction: column; gap: 8px; }
#kibo-panel .shortcuts a {
  background: #1a1612;
  border: 1px solid #4a3a22;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
}
#kibo-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Visual upgrades from Aether (re-themed) */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #39ff14, #FFB900);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
}
.tool-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, #1a1612 100%);
  border: 1px solid #3a2a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #39ff14;
}
.visit-btn, .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 0 #1a5a1a;
}
.visit-btn:active, .btn-primary:active {
  transform: translateY(1px);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* KIBO idle + panel polish */
#kibo img {
  animation: kiboIdle 3.5s ease-in-out infinite;
}
@keyframes kiboIdle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-4px); }
}
#kibo-panel {
  background: #0f0f0f;
  border: 1px solid #39ff14;
  box-shadow: 0 0 20px rgba(57,255,20,0.2);
}
#kibo-panel h4 { color: #39ff14; }
#kibo-panel .shortcuts a {
  border-color: #39ff14;
}
#kibo-panel .shortcuts a:hover {
  background: #39ff14;
  color: #000;
}

/* Custom cursor */
.cursor-ring, .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid #39ff14;
  box-shadow: 0 0 8px #39ff14;
}
.cursor-ring.hover {
  transform: scale(1.3);
  box-shadow: 0 0 16px #39ff14;
}
.cursor-ring.pulse {
  animation: cursorPulse 0.3s ease;
}
@keyframes cursorPulse {
  50% { transform: scale(1.5); }
}
.cursor-dot {
  background: #39ff14;
}
@media (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}
