/* ==========================================================================
   Company home page
   ========================================================================== */

.page-home { background: var(--bg); }
.grad { background: linear-gradient(120deg, var(--blue-600) 10%, var(--mint-500) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Hero ===== */
.h-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.h-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 85% 20%, rgba(0, 196, 140, .10), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(29, 104, 240, .09), transparent 70%);
  pointer-events: none;
}
.h-hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.h-hero .lead { margin-top: 22px; max-width: 560px; }
.h-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tagline { margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .26em; color: var(--ink-3); }
.tagline span { color: var(--mint-500); margin: 0 8px; }

.h-visual { position: relative; height: 460px; }
.h-orbit {
  position: absolute; inset: 20px 30px; border-radius: 50%;
  border: 1px dashed var(--line-strong);
}
.h-orbit.o2 { inset: 90px 100px; border-style: solid; border-color: var(--line); background: radial-gradient(circle, #fff 30%, rgba(255,255,255,0) 72%); }
.h-symbol { position: absolute; left: 50%; top: 50%; width: 150px; transform: translate(-50%, -54%); filter: drop-shadow(0 20px 30px rgba(29,104,240,.22)); }
.h-note {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; width: 280px;
  animation: float 6s ease-in-out infinite;
}
.h-note img { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.h-note b { display: block; font-size: .9rem; font-family: var(--font-display); }
.h-note small { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.h-note.n1 { top: 34px; left: 0; }
.h-note.n2 { bottom: 40px; right: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-top { padding: 36px 36px 0; height: 260px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.product.passhai .product-top { background: linear-gradient(160deg, #eaf2ff, #d4e4ff); }
.product.jama .product-top { background: linear-gradient(160deg, #fdf3df, #f6e2bb); }
.product-body { padding: 32px 36px 36px; display: flex; flex-direction: column; flex: 1; }
.product-logo { height: 44px; width: auto; margin-bottom: 18px; align-self: flex-start; }
.product-body h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 10px; }
.product-body > p { color: var(--ink-2); margin-bottom: 22px; }
.product-body .checks { margin-bottom: 28px; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.product.jama { --accent: #22385a; --accent-soft: #fcf0d9; }
.product.jama .pill { color: #a8660f; }
.product.jama .checks li::before {
  background-color: #e5f4e3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d3a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* mini product visuals */
.mini {
  width: 300px; background: #fff; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg);
  padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; height: 200px; overflow: hidden;
}
.mini-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-head img { width: 30px; height: 30px; border-radius: 50%; }
.mini-head b { font-size: .88rem; display: block; line-height: 1.2; }
.mini-head small { font-size: .74rem; color: var(--ink-3); }
.mini-msg { font-size: .82rem; line-height: 1.45; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #f0f2f5; max-width: 92%; }
.mini-msg.wa { background: #e7f7ee; }
.mini-row { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; padding: 8px 2px; font-weight: 600; color: var(--ink); }
.mini-row + .mini-row { border-top: 1px solid #f1f2f4; }
.mini-row span { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e5f4e3; color: #2f7d3a; }
.mini-row.red span { background: #fbe7e5; color: #b3322b; }
.mini-row.orange span { background: #fcf0d9; color: #9a5d0c; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #22385a; border-radius: 12px; padding: 10px 0; text-align: center; }
.mini-stats b { display: block; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: .95rem; }
.mini-stats b.red { color: #f3a39c; }
.mini-stats small { font-size: .66rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* ===== Principles ===== */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 36px 28px 8px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle .icon-tile { margin-bottom: 22px; }
.principle:nth-child(2) .icon-tile { background: var(--mint-50); color: var(--mint-600); }
.principle:nth-child(3) .icon-tile { background: #fff4e0; color: #c47d0e; }
.principle:nth-child(4) .icon-tile { background: #eef0ff; color: #4f46e5; }
.principle h3 { margin-bottom: 6px; }
.principle .kicker { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.principle p { color: var(--ink-2); font-size: .95rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p + p { margin-top: 16px; }
.creds { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.cred small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.cred p { font-weight: 600; color: var(--ink); font-size: .96rem; }
.cred .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--navy-900); color: #c6d1e6; border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before { content: ''; position: absolute; width: 480px; height: 480px; right: -140px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,196,140,.25), transparent 65%); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
.cta-actions .btn { justify-content: space-between; }

@media (max-width: 960px) {
  .h-hero .container { grid-template-columns: 1fr; }
  .h-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .products { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .about { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .h-visual { height: 380px; }
  .h-orbit { inset: 20px 0; } .h-orbit.o2 { inset: 80px 60px; }
  .h-symbol { width: 110px; }
  .h-note { width: 250px; padding: 12px 14px; }
  .product-top { padding: 28px 20px 0; height: 230px; }
  .product-body { padding: 26px 22px 28px; }
  .mini { width: 100%; max-width: 300px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 8px; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* ===== Mobile readability ===== */
@media (max-width: 640px) {
  .h-hero { padding: 36px 0 48px; }
  .h-hero .container { gap: 24px; }
  .h-hero-actions .btn { flex: 1 1 100%; }
  .tagline { margin-top: 28px; font-size: .72rem; letter-spacing: .2em; }
  .h-visual { height: 300px; }
  .h-orbit.o2 { inset: 70px 70px; }
  .h-symbol { width: 92px; }
  .h-note { width: 230px; }
  .h-note.n1 { top: 8px; }
  .h-note.n2 { bottom: 8px; }
  .products { gap: 16px; }
  .product { border-radius: var(--r-lg); }
  .product-top { height: 200px; }
  .product-body h3 { font-size: 1.3rem; }
  .product-foot .btn { flex: 1 1 100%; }
  .principle, .principle + .principle { padding: 22px 0 6px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .principle .icon-tile { grid-row: span 3; margin-bottom: 0; width: 42px; height: 42px; border-radius: 12px; }
  .principle .icon-tile svg { width: 20px; height: 20px; }
  .creds { padding: 22px; }
  .cta-band { border-radius: var(--r-lg); padding: 28px 20px; }
  .cta-actions .btn { white-space: normal; }
}
