/* === CSS ASLI TANPA DIUBAH === */
:root {
  --bg:#0b1220;
  --text:#e2e8f0;
  --card:#020617;
  --cardlink:#111f5e;
  --border:#1e293b;
  --link:#38bdf8;
  --muted:#94a3b8;
  --accent:#0ea5e9;
}

html.light-mode {
  --bg:#f8fafc;
  --text:#1e293b;
  --card:#ffffff;
  --border:#e2e8f0;
  --link:#0ea5e9;
  --muted:#64748b;
  --accent:#0ea5e9;
}

body {
  margin:0;
  font-family:system-ui;
  background:var(--bg);
  color:var(--text);
}

/* HEADER */
header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px;
  background:var(--card);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
}

.logo img {height:40px;}

nav a {
  margin-left:15px;
  color:var(--muted);
  text-decoration:none;
}
nav a:hover {color:var(--link);}

.toggle {cursor:pointer;font-size:18px;}

.menu-btn {
  display:none;
  font-size:22px;
  cursor:pointer;
}

.close-btn {display:none;}

@media(max-width:768px){
  .menu-btn {display:block;}

  nav {
    position:fixed;
    top:0;
    left:-100%;
    width:75%;
    height:100%;
    background:var(--card);
    display:flex;
    flex-direction:column;
    padding:30px;
    transition:.3s;
    z-index:999;
  }

  nav.active {left:0;}

  nav a {
    margin:15px 0;
    font-size:18px;
  }

  .close-btn {
    display:block;
    margin-bottom:20px;
    cursor:pointer;
    padding:8px 12px;
    background:var(--border);
    border-radius:8px;
  }
}

/* CONTAINER */
.container {
  max-width:1100px;
  margin:auto;
  padding:20px;
}

/* CARD */
.card {
  background:var(--card);
  padding:22px;
  border-radius:16px;
  margin-bottom:20px;
  border:1px solid var(--border);
}

/* GRID LINKS */
.grid-links {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;
}

.grid-links a {
  background:var(--cardlink);
  padding:15px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
}

.grid-links a:hover {background:var(--accent);}

/* FOOTER */
footer {
  border-top:1px solid var(--border);
  margin-top:40px;
}

.footer-container {
  max-width:820px;
  margin:auto;
  padding:30px 20px;
}

.footer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:20px;
}

.footer-title {
  font-weight:bold;
  margin-bottom:10px;
}

.footer a {
  display:block;
  color:var(--muted);
  margin-bottom:6px;
  text-decoration:none;
}

.footer a:hover {color:var(--link);}

.footer-bottom {
  text-align:center;
  margin-top:20px;
  font-size:13px;
  color:var(--muted);
}

/* HERO */
.hero-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.hero-grid img {
  width:100%;
  border-radius:12px;
}

@media(max-width:768px){
  .hero-grid {grid-template-columns:1fr;}
}

/* BUTTON SYSTEM */
.btn-primary {
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  border:none;
  cursor:pointer;
}

.btn-secondary {
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid var(--border);
  color:var(--text);
  background:transparent;
  cursor:pointer;
}

/* INPUT */
.input {
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  margin-bottom:10px;
}

a {color:var(--link);}












/* HOME */
.home-container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* HERO */
.home-hero {
  text-align: center;
  margin-bottom: 50px;
}

.home-hero h1 {
  font-size: 2.5rem;
}

.home-hero p {
  color: var(--text-soft);
  max-width: 600px;
  margin: auto;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* BUTTON */
.btn-primary {
  background: #6366f1;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

/* TRUST */
.home-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* SECTION */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* CTA */
.home-cta {
  text-align: center;
  margin-top: 50px;
}











/* =============================
   TOOLS GRID (GLOBAL FIX)
============================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

/* =============================
   TOOL CARD
============================= */

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transition: 0.25s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =============================
   ICON
============================= */

.tool-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

/* =============================
   TITLE
============================= */

.tool-card h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

/* =============================
   DESCRIPTION
============================= */

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;

  /* biar rapi max 2 baris */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================
   BADGE (optional)
============================= */

.tool-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 0.65rem;
  padding: 4px 6px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
}

/* =============================
   POPULAR STYLE
============================= */

.tool-card.popular {
  border: 1px solid rgba(99,102,241,0.4);
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
