/* =========================================================
   Nagora landing page styles
   ========================================================= */

:root {
  --blue: #1B5EC2;
  --blue-dark: #0F3F8C;
  --ink: #0E1624;
  --muted: #5B6575;
  --soft: #F4F7FC;
  --line: #E3E9F3;
  --orange: #F2994A;
  --purple: #B04FB5;
  --green: #3DB87A;
  --sky: #3B8FE8;
  --radius: 20px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Image fallbacks (used only if a PNG is missing) ---------- */
.asset { position: relative; display: inline-flex; }
.asset .fb { display: none; }
.asset.missing img { display: none; }
.asset.missing .fb { display: flex; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .asset img { height: 40px; width: 40px; object-fit: contain; }
.brand .asset .fb {
  height: 40px; width: 40px; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; color: var(--ink);
}
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(27,94,194,.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Sections ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
section { padding: 96px 0; }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Principles ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14,22,36,.08); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, white); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- NagoraPass ---------- */
.product { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.product-visual { display: flex; justify-content: center; }
.product-visual .asset { width: min(300px, 70vw); }
.product-visual img, .product-visual .fb {
  width: 100%; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 24px 48px rgba(15,63,140,.22);
}
.product-visual .fb { background: var(--blue); align-items: center; justify-content: center; }
.product-visual .fb svg { width: 52%; height: 52%; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.feature { display: flex; gap: 14px; }
.feature .icon {
  flex: 0 0 42px; height: 42px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h4 { font-size: 16px; margin-bottom: 2px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Sustainability ---------- */
.eco { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.eco .section-head p { color: rgba(255,255,255,.82); }
.eco-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-point { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 26px; }
.eco-point h3 { font-size: 19px; margin-bottom: 8px; }
.eco-point p { color: rgba(255,255,255,.82); font-size: 15px; }

/* ---------- App Store badge ---------- */
.appstore-badge { display: inline-block; transition: transform .15s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 154px; width: auto; }
.appstore-badge .fb {
  height: 54px; padding: 0 22px; align-items: center; justify-content: center;
  background: #000; color: #fff; border-radius: 10px; font-weight: 600; font-size: 15px;
}

/* ---------- Support ---------- */
.support { text-align: center; }
.support .section-head { margin: 0 auto 32px; }
.support-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.support-note { max-width: 520px; margin: 24px auto 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner small { color: var(--muted); }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

/* ---------- Utilities (replace former inline styles) ---------- */
.section-head--flush { margin-bottom: 0; }
.cta-spacing { margin-top: 38px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .product-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .eco-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .cards, .features { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .squares { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}