/* ============================================================
   MOJIKEY — Landing Page
   Premium AI SaaS aesthetic: Apple / Linear / Notion inspired
   ============================================================ */

:root {
  --navy-900: #0b1630;
  --navy-700: #1c2d52;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --gray-600: #5b6678;
  --gray-400: #9aa3b5;
  --line: #e6ebf4;
  --orange-a: #ff9a3d;
  --orange-b: #ff5e3a;
  --shadow-soft: 0 10px 30px rgba(16, 42, 92, 0.10);
  --shadow-card: 0 6px 24px rgba(21, 55, 122, 0.10), 0 1px 3px rgba(21, 55, 122, 0.06);
  --radius-lg: 14px;
  --radius-md: 12px;
  --max-w: 1200px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--navy-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---------------- Background glow ---------------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 40% at 78% 4%, rgba(147, 197, 253, 0.28), transparent 70%),
    radial-gradient(38% 34% at 8% 18%, rgba(191, 219, 254, 0.30), transparent 70%),
    radial-gradient(46% 40% at 50% 108%, rgba(219, 234, 254, 0.5), transparent 72%);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-a), var(--orange-b));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 110, 60, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 110, 60, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--navy-700);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 42, 92, 0.04);
}

.btn-secondary:hover {
  border-color: #cdd8ea;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-sm { height: 36px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }

.btn .arrow { width: 17px; height: 17px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(230, 235, 244, 0.7);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}

.logo-mark { width: 28px; height: 28px; }

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-700);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover { background: #f1f5fb; }

.nav-link.active { color: var(--blue-600); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
}

.mobile-nav a { padding: 12px 8px; font-size: 15px; }

/* ---------------- Hero ---------------- */

.hero {
  padding: 84px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  align-items: center;
}

/* Left column */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eaf2ff;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.badge svg { width: 14px; height: 14px; }

.hero-title {
  margin-top: 26px;
  font-size: 56px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.hero-desc {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 480px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-700);
}

.glass-badge svg { width: 19px; height: 19px; flex: none; }

/* Right column */

.hero-visual {
  position: relative;
  min-height: 560px;
}

.phone-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 88%);
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(230, 235, 244, 0.9);
  box-shadow: 0 28px 56px rgba(37, 99, 235, 0.12), 0 6px 18px rgba(16, 42, 92, 0.06);
  overflow: hidden;
  z-index: 2;
  animation: phoneFloat 7s ease-in-out infinite;
}

.phone-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes phoneFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-9px); }
}

.glow-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), rgba(147, 197, 253, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(6px);
}

.connect-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.85;
}

.line {
  stroke-dasharray: 1 6;
  animation: lineDash 14s linear infinite;
}

@keyframes lineDash {
  to { stroke-dashoffset: -140; }
}

/* Sparkles */

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 3;
  animation: sparkle 3.2s ease-in-out infinite;
}

.sparkle.s1 { left: 16%; top: 14%; }
.sparkle.s2 { right: 15%; top: 10%; width: 12px; height: 12px; animation-delay: 0.8s; }
.sparkle.s3 { left: 9%; bottom: 24%; width: 12px; height: 12px; animation-delay: 1.6s; }
.sparkle.s4 { right: 8%; bottom: 12%; animation-delay: 2.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}

/* Floating glass cards */

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(23, 58, 125, 0.12), 0 2px 6px rgba(23, 58, 125, 0.05);
  padding: 13px 16px;
  animation: cardFloat 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.float-card span:not(.fc-icon) {
  display: block;
  font-size: 11.5px;
  color: var(--gray-600);
  margin-top: 2px;
  white-space: nowrap;
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.fc-icon svg { width: 19px; height: 19px; }

.ic-pink { background: #fde7f1; color: #e85d9c; }
.ic-blue { background: #e0effe; color: #2f80ed; }
.ic-amber { background: #fdf1dd; color: #e8912d; }
.ic-violet { background: #eceafd; color: #7c5cf0; }

.fc-tl { top: 6%; left: 4%; animation-delay: 0s; }
.fc-tr { top: 4%; right: 2%; animation-delay: 1.2s; }
.fc-bl { bottom: 8%; left: 0%; animation-delay: 2s; }
.fc-br { bottom: 5%; right: 5%; animation-delay: 0.6s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------- Placeholder sections ---------------- */

.placeholder-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.placeholder-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.placeholder-section p {
  margin-top: 10px;
  color: var(--gray-400);
  font-size: 15px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-400);
}

.site-footer a { color: var(--blue-600); font-weight: 500; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { min-height: 540px; max-width: 620px; width: 100%; justify-self: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .btn-sm { display: none; }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 16.5px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { min-height: 470px; }
  .float-card { padding: 10px 12px; }
  .float-card span:not(.fc-icon) { display: none; }
  .fc-tl { top: 2%; left: 2%; }
  .fc-tr { top: 2%; right: 0%; }
  .fc-bl { bottom: 4%; left: 0%; }
  .fc-br { bottom: 2%; right: 2%; }
  .site-footer .container { flex-direction: column; gap: 8px; }
}
