/* =========================================================
   ICHA AI — Design Tokens
   Palet: hitam pekat + merah berani + putih tulen
   Fon: Space Grotesk (display) + Inter (body)
========================================================= */
:root {
  --hitam: #0a0a0a;
  --hitam-panel: #141414;
  --hitam-garis: #262626;
  --merah: #e0102a;
  --merah-gelap: #9c0b1e;
  --putih: #ffffff;
  --putih-pudar: #a8a8a8;
  --radius: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hitam);
  color: var(--putih);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hitam-garis);
}
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--merah); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-merah { background: var(--merah); color: var(--putih); }
.btn-merah:hover { background: #ff1c3d; }
.btn-luar { background: transparent; color: var(--putih); border-color: var(--hitam-garis); }
.btn-luar:hover { border-color: var(--putih-pudar); }
.btn-google {
  background: var(--putih); color: #1a1a1a;
}
.btn-google:hover { background: #eaeaea; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224,16,42,0.28) 0%, rgba(224,16,42,0) 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--merah);
  border: 1px solid var(--merah-gelap);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p.sub {
  color: var(--putih-pudar);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Terminal "berfikir" - signature element:
   ayat ditaip, ada bahagian dicoret merah (dibetulkan), lepas tu jadi versi akhir putih */
.terminal {
  max-width: 640px;
  margin: 0 auto;
  background: var(--hitam-panel);
  border: 1px solid var(--hitam-garis);
  border-radius: var(--radius);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hitam-garis);
}
.terminal-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hitam-garis);
}
.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  min-height: 90px;
}
.terminal-body .strike { color: var(--merah); text-decoration: line-through; opacity: 0.85; }
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--merah); margin-left: 2px;
  animation: kelip 1s step-start infinite;
  vertical-align: text-bottom;
}
@keyframes kelip { 50% { opacity: 0; } }

/* ---------- CIRI-CIRI ---------- */
.ciri-ciri {
  padding: 80px 0;
  border-top: 1px solid var(--hitam-garis);
}
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--putih-pudar); }

.grid-ciri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.kad {
  background: var(--hitam-panel);
  border: 1px solid var(--hitam-garis);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease;
}
.kad:hover { border-color: var(--merah-gelap); }
.kad .ikon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,16,42,0.12);
  border-radius: 8px;
  color: var(--merah);
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.kad h3 { font-size: 1.05rem; margin: 0 0 8px; }
.kad p { color: var(--putih-pudar); font-size: 0.92rem; margin: 0; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--hitam-garis);
  padding: 32px 0;
  text-align: center;
  color: var(--putih-pudar);
  font-size: 0.85rem;
}

/* ---------- AUTH FORM (login/register) ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-kad {
  width: 100%;
  max-width: 400px;
  background: var(--hitam-panel);
  border: 1px solid var(--hitam-garis);
  border-radius: var(--radius);
  padding: 36px;
}
.auth-kad h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
  text-align: center;
}
.auth-kad p.sub-auth {
  text-align: center; color: var(--putih-pudar);
  font-size: 0.9rem; margin-bottom: 28px;
}
.medan { margin-bottom: 16px; }
.medan label {
  display: block; font-size: 0.85rem; color: var(--putih-pudar); margin-bottom: 6px;
}
.medan input {
  width: 100%;
  background: var(--hitam);
  border: 1px solid var(--hitam-garis);
  color: var(--putih);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s ease;
}
.medan input:focus { border-color: var(--merah); }
.pemisah {
  display: flex; align-items: center; gap: 12px;
  color: var(--putih-pudar); font-size: 0.85rem;
  margin: 22px 0;
}
.pemisah::before, .pemisah::after {
  content: ''; flex: 1; height: 1px; background: var(--hitam-garis);
}
.ralat {
  background: rgba(224,16,42,0.12);
  border: 1px solid var(--merah-gelap);
  color: #ff6b7d;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.link-bawah { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--putih-pudar); }
.link-bawah a { color: var(--merah); font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 90px 0 60px; }
}
