/* ==========================================================================
   Zenerly Corporate — Design System
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #05070f;
  --navy-900: #0a0f2c;
  --navy-800: #0e1b4d;
  --navy-700: #101b3d;
  --navy-600: #17224a;
  --ink: #0b1220;

  --cyan: #06b6d4;
  --blue: #8b5cf6;
  --violet: #ec4899;

  --gradient-brand: linear-gradient(115deg, #06b6d4 0%, #8b5cf6 55%, #ec4899 100%);
  --gradient-dark: linear-gradient(160deg, #0a0f2c 0%, #0e1b4d 55%, #101b3d 100%);

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 44, 0.06), 0 1px 3px rgba(10, 15, 44, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 15, 44, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 15, 44, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow.on-dark {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.10);
  border-color: rgba(6, 182, 212, 0.28);
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(139, 92, 246, 0.4); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn-outline {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--gray-200);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy-800); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gray-500); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .18s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--gray-100); }
  .nav-actions .btn-outline { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--gradient-dark);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(560px 320px at 15% 20%, rgba(6, 182, 212, 0.20), transparent 60%),
    radial-gradient(620px 360px at 85% 15%, rgba(236, 72, 153, 0.25), transparent 60%),
    radial-gradient(500px 320px at 60% 90%, rgba(139, 92, 246, 0.20), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; }
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.hero-orbit {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-orbit .ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-orbit .ring.r1 { inset: 0; }
.hero-orbit .ring.r2 { inset: 12%; border-color: rgba(6, 182, 212,0.22); }
.hero-orbit .ring.r3 { inset: 24%; border-color: rgba(236, 72, 153,0.22); }
.hero-orbit .core {
  width: 34%; aspect-ratio: 1/1; border-radius: 30%;
  background: var(--gradient-brand);
  box-shadow: 0 0 80px rgba(139, 92, 246,0.55);
  display: flex; align-items: center; justify-content: center;
}
.hero-orbit .core img { width: 46%; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25)); }
.hero-orbit .node {
  position: absolute; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.hero-orbit .node img { width: 26px; height: 26px; border-radius: 6px; }
.hero-orbit .node.n1 { top: 4%; left: 8%; animation-delay: 0s; }
.hero-orbit .node.n2 { top: 12%; right: 2%; animation-delay: 1.2s; }
.hero-orbit .node.n3 { bottom: 8%; left: 0%; animation-delay: 2.4s; }
.hero-orbit .node.n4 { bottom: 2%; right: 14%; animation-delay: 3.6s; }
.hero-orbit .node.n5 { top: 46%; left: -4%; animation-delay: 0.8s; }
.hero-orbit .node.n6 { top: 42%; right: -4%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-orbit .node { animation: none; } }
@media (max-width: 900px) { .hero-orbit { max-width: 340px; margin: 0 auto; } }

/* ---- Logo strip ---- */
.logo-strip { padding: 46px 0; border-bottom: 1px solid var(--gray-200); }
.logo-strip p { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 24px; }
.logo-strip-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-strip-row img { height: 34px; width: 34px; border-radius: 9px; opacity: 0.9; }
.logo-strip-row a { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gray-700); font-size: 0.92rem; }

/* ---- Cards ---- */
.grid { display: grid; gap: 26px; }
.grid > * { min-width: 0; } /* prevent a large intrinsic image from forcing its grid track wider than the track's own size */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(139, 92, 246,0.25); }
.card .icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; font-size: 1.3rem; }

/* ---- Product cards ---- */
.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  scroll-margin-top: 90px;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .feature-graphic { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; background: var(--gray-100); }
.product-card .product-body { padding: 26px 28px 28px; }
.product-card .product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-card .product-head img.app-logo { width: 52px; height: 52px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.product-card .product-head h3 { margin: 0; }
.product-card .product-head span { font-size: 0.82rem; color: var(--gray-500); font-weight: 600; }
.product-card .product-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--gray-100); color: var(--gray-600);
  padding: 5px 11px; border-radius: var(--radius-pill);
}

/* ---- Dark band / CTA ---- */
.band-dark { background: var(--gradient-dark); color: #fff; position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(600px 300px at 80% 0%, rgba(6, 182, 212,0.16), transparent 60%);
  pointer-events: none;
}
.band-dark .container { position: relative; z-index: 1; }
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(255,255,255,0.72); }

/* ---- Address / Map ---- */
.address-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.address-card .addr-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.address-card .addr-line strong { display: block; color: var(--navy-800); }
.map-embed {
  width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius-lg);
  filter: grayscale(0.15);
}

/* ---- Forms ---- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy-800); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--gray-800);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139, 92, 246,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: -6px; }
.form-alert {
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 18px; display: none;
}
.form-alert.show { display: block; }
.form-alert.success { background: rgba(22,163,74,0.1); color: #15803d; border: 1px solid rgba(22,163,74,0.25); }
.form-alert.error { background: rgba(220,38,38,0.08); color: #b91c1c; border: 1px solid rgba(220,38,38,0.25); }

/* ---- Footer ---- */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: rgba(255,255,255,0.5); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 11px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center;
}

/* ---- Blog ---- */
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card > a { display: block; }
.blog-card img.cover { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--gray-100); }
.blog-card .blog-body { padding: 22px 24px 24px; }
.blog-meta { font-size: 0.78rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.blog-meta .cat { color: var(--blue); }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p.excerpt { font-size: 0.92rem; }
.blog-post-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.blog-post-content { max-width: 760px; margin: 0 auto; font-size: 1.05rem; color: var(--gray-700); }
.blog-post-content h2, .blog-post-content h3 { color: var(--navy-800); margin-top: 34px; }
.blog-post-content p { margin-bottom: 20px; }
.blog-post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.blog-post-content a { color: var(--blue); text-decoration: underline; }
.blog-post-content ul, .blog-post-content ol { color: var(--gray-700); padding-left: 22px; }
.blog-post-content blockquote {
  border-left: 3px solid var(--blue); margin: 24px 0; padding: 4px 20px; color: var(--gray-600); font-style: italic;
}
.state-msg { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* ---- Utility ---- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.badge-soon {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; background: rgba(236, 72, 153,0.12); color: #ec4899;
  padding: 4px 10px; border-radius: var(--radius-pill); margin-left: 8px; vertical-align: middle;
}
