@charset "UTF-8";
/* ── TOKENS ── */
:root {
  --bg: #f0eef8;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.88);
  --purple: #7c3aed;
  --purple-lt: #8b5cf6;
  --purple-bg: #ede9fe;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e0f5;
  --border-card: #ede9fe;
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --shadow-card: 0 1px 3px rgba(109,40,217,.06), 0 4px 16px rgba(109,40,217,.05);
  --shadow-btn: 0 4px 14px rgba(109,40,217,.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

img {
  display: block;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-bg);
  border-radius: 99px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  animation: slideDown 0.5s ease both;
}

@keyframes slideDown {
  from {
    transform: translateY(-62px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.logo-fallback {
  color: var(--purple);
  font-weight: 900;
  display: none;
}

.logo-space-pill {
  background: var(--purple);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: center;
  line-height: 1.7;
  margin-top: 5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-theme-btn:hover {
  border-color: var(--purple);
}

.btn-explore {
  background: var(--purple);
  color: #fff;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-explore:hover {
  background: var(--purple-lt);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: 60px 80px;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  top: -300px;
  right: -150px;
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  border-radius: 99px;
  padding: 7px 16px 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.06);
  margin-bottom: 30px;
}

.badge-star {
  font-size: 0.9rem;
}

h1.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
}

h1.hero-title .purple {
  color: var(--purple);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.75;
  font-weight: 400;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.975rem;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s;
}

.btn-browse:hover {
  background: var(--purple-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.25s ease both;
}

.hero-illustration {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 24px 64px rgba(109, 40, 217, 0.2));
  animation: floatImg 6s ease-in-out infinite;
}

@keyframes floatImg {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ── TOOLS SECTION ── */
.tools-section {
  padding: 80px 80px 100px;
}

.tools-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 16px;
}

h2.tools-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2.tools-title .purple {
  color: var(--purple);
}

.tools-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Grid/List toggle */
.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.view-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  border-right: 1.5px solid var(--border);
  background: transparent;
}

.view-btn:last-child {
  border-right: none;
}

.view-btn.active {
  background: var(--purple-bg);
  color: var(--purple);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.filter-tab.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tools-grid.list-mode {
  grid-template-columns: 1fr;
}

/* Tool card */
.tool-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cardIn 0.45s ease both;
  height: 100%;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tool-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 6px 28px rgba(109, 40, 217, 0.12);
  transform: translateY(-3px);
}

.tool-card.coming-soon {
  cursor: default;
}

.tool-card.coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border-card);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tool-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tool-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.badge-automation {
  background: #d1fae5;
  color: #065f46;
}

.badge-platform {
  background: #dbeafe;
  color: #1e40af;
}

.badge-coming {
  background: #fef3c7;
  color: #92400e;
}

.badge-code {
  background: #e0f2fe;
  color: #0c4a6e;
}

.badge-communication {
  background: #f8d0ff;
  color: #9752a3;
}

.badge-infrastructure {
  background: #fce7f3;
  color: #831843;
}

.badge-design {
  background: #ede9fe;
  color: #5b21b6;
}

.tool-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* list mode */
.tools-grid.list-mode .tool-card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.tools-grid.list-mode .tool-card-top {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tools-grid.list-mode .tool-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tools-grid.list-mode .tool-badge {
  align-self: flex-start;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── DARK MODE ── */
body.dark {
  --bg: #0f0e17;
  --bg-card: #1a1929;
  --bg-nav: rgba(15,14,23,0.92);
  --text: #f0eef8;
  --muted: #8b8aaa;
  --border: #252338;
  --border-card: #252338;
  --purple-bg: rgba(124,58,237,.18);
  --shadow-card: 0 2px 8px rgba(0,0,0,.4);
}

body.dark .badge-hr {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

body.dark .badge-text {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

body.dark .badge-coming {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

body.dark .badge-code {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

body.dark .badge-data {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

body.dark .badge-audio {
  background: rgba(244, 114, 182, 0.1);
  color: #f472b6;
}

body.dark .badge-design {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

body.dark .view-btn.active {
  background: rgba(124, 58, 237, 0.25);
}

body.dark .tool-icon-wrap {
  filter: brightness(0.9);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    text-align: center;
    gap: 32px;
  }
  .hero-right {
    order: -1;
  }
  .hero-badge {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .btn-browse {
    margin: 0 auto;
  }
  .tools-section {
    padding: 60px 40px 80px;
  }
}
@media (max-width: 640px) {
  nav {
    padding: 0 20px;
  }
  .hero {
    padding: 36px 20px;
    min-height: auto;
  }
  .tools-section {
    padding: 48px 20px 64px;
  }
  footer {
    padding: 16px 20px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
