/* =====================================================
   MASRI.CLOUD — STYLE V2 (FINAL)
   Invisible Intelligence Layer
   Human-first • Silence as Success
===================================================== */

/* ================= ROOT ================= */
:root {
  --bg-dark: #020617;
  --bg-grad:
    radial-gradient(circle at top, #052e2b, transparent 60%),
    linear-gradient(180deg, #020617, #000000);

  --panel: rgba(2, 6, 23, 0.78);
  --border: #1e293b;

  --text-main: #e5e7eb;
  --text-muted: #94a3b8;

  --primary: #22c55e;
  --primary-soft: rgba(34, 197, 94, 0.15);
  --primary-glow: rgba(34, 197, 94, 0.35);
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Ubuntu, sans-serif;
  background: var(--bg-grad);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* ================= BADGE ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.25);
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  padding: 96px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero.small {
  min-height: auto;
  padding: 72px 20px;
  text-align: center;
}

/* grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(255,255,255,0.04) 96%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.04) 96%);
  background-size: 40px 40px;
  opacity: 0.25;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 400px 400px; }
}

.hero-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 600px;
  margin-top: 20px;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #020617;
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(34,197,94,.1);
}


/* ================= ORB (HUMAN INSIDE AI) ================= */
.orb-container {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #22c55e, #020617 65%);
  box-shadow:
    0 0 60px rgba(34,197,94,.22),
    inset 0 0 60px rgba(0,0,0,.85);
  transition: 
    box-shadow .4s ease,
    transform .4s ease;
}

/* === HOVER EFFECT === */
.orb-container:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 120px rgba(34,197,94,.55),
    0 0 240px rgba(34,197,94,.25),
    inset 0 0 50px rgba(0,0,0,.7);
}

/* glow ring */
.orb-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(34,197,94,.25);
  animation: orbPulse 4.5s ease-in-out infinite;
  transition: opacity .4s ease;
}

/* glow lebih aktif saat hover */
.orb-container:hover .orb-glow {
  opacity: 0.9;
}

/* wajah */
.orb-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform .4s ease, filter .4s ease;
  filter:
    contrast(1.05)
    brightness(1.03)
    saturate(0.95);
}

/* wajah ikut sedikit hidup */
.orb-container:hover .orb-face {
  transform: scale(1.02);
  filter:
    contrast(1.08)
    brightness(1.08)
    saturate(1);
}

/* animasi napas */
@keyframes orbPulse {
  0%   { transform: scale(.92); opacity:.4; }
  50%  { transform: scale(1);   opacity:.15; }
  100% { transform: scale(.92); opacity:.4; }
}

/* ================= SECTION ================= */
section {
  padding: 96px 20px;
}

.grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* ================= CARD ================= */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(6px);
  transition: .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(34,197,94,.12);
}

.card.center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ================= FOOTER ================= */
footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  section {
    padding: 72px 16px;
  }
}
