/* =========================================================
   KindSphere — umbrella brand site styles
   Palette: purple #1F9E93 · pink #EE7B2E · airy white tones
   (NearSphere product keeps its own blue/orange identity)
   ========================================================= */

:root {
  --purple: #1F9E93;
  --purple-dark: #17877D;
  --purple-soft: #E7F5F1;
  --pink: #EE7B2E;
  --pink-dark: #D8641B;
  --pink-soft: #FDF0E4;
  --lav: #6DAE3A;

  --ink: #3B2F27;
  --ink-soft: #6A5C50;
  --muted: #8C8073;
  --hint: #B4A99D;

  --bg: #FFFFFF;
  --surface: #F7F8F2;
  --surface-2: #EFF1EA;
  --border: #E7E9DF;

  --grad: linear-gradient(120deg, #1F9E93 0%, #6DAE3A 45%, #EE7B2E 110%);
  --grad-soft: linear-gradient(135deg, #1F9E93, #EE7B2E);
  --grad-hero: linear-gradient(135deg, #2FA8A0, #EE7B2E);

  --shadow-sm: 0 1px 2px rgba(40, 34, 26, .05), 0 4px 14px rgba(31, 158, 147, .06);
  --shadow-md: 0 10px 28px rgba(31, 158, 147, .10), 0 3px 8px rgba(40, 34, 26, .05);
  --shadow-lg: 0 28px 64px rgba(31, 158, 147, .18), 0 10px 24px rgba(238, 123, 46, .10);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }

.grad-text {
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(31, 158, 147, .30); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 158, 147, .38); }
.btn-ghost { background: rgba(31,158,147,.06); color: var(--purple); border-color: rgba(31,158,147,.18); }
.btn-ghost:hover { background: rgba(31,158,147,.12); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--purple); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1A1712; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(31,158,147,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-name { font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--purple); }
.brand-mark { display: grid; place-items: center; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .18s ease; }
.nav-links a:hover { color: var(--purple); }
.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: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 0 24px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; box-shadow: var(--shadow-md);
}
.mobile-menu.open { max-height: 360px; padding: 12px 24px 22px; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { margin-top: 12px; border: none; color: #fff; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 58% at 82% 14%, rgba(238,123,46,.14), transparent 62%),
    radial-gradient(55% 55% at 10% 18%, rgba(31,158,147,.16), transparent 60%),
    linear-gradient(180deg, #FAFBF6 0%, #FFFFFF 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 20px; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(238,123,46,.14); }

/* ---------- Hero orbit visual ---------- */
.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 420px; height: 420px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(31,158,147,.22); }
.ring-1 { width: 190px; height: 190px; }
.ring-2 { width: 300px; height: 300px; border-color: rgba(238,123,46,.18); }
.ring-3 { width: 410px; height: 410px; border-color: rgba(109,174,58,.14); }

.core {
  position: relative; z-index: 3; width: 148px; height: 148px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff, #F9FBF4 55%, #E9F3EE);
  display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(31,158,147,.10);
  animation: pulse 5s ease-in-out infinite;
}
.core-label { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

.node {
  position: absolute; z-index: 4; top: 50%; left: 50%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
  display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease; animation: floaty 6s ease-in-out infinite;
}
.node-live { border-color: rgba(31,158,147,.28); animation-duration: 5.5s; }
.node-live:hover { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.05); box-shadow: var(--shadow-lg); }
.node-soon { animation-delay: .8s; }
.node.faint { opacity: .72; animation-delay: 1.4s; }
.node-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); flex-shrink: 0; }
.node-live .node-ic { background: linear-gradient(135deg, #E8F1FB, #FFF0EB); }
.node-text { display: flex; flex-direction: column; line-height: 1.2; }
.node-text strong { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.node-text small { font-size: 11px; color: var(--muted); font-weight: 600; }
.node-live .node-text small { color: var(--pink-dark); }

@keyframes floaty { 0%,100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); } 50% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 12px)); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ---------- Mission strip ---------- */
.strip { background: var(--grad); color: #fff; padding: 58px 0; text-align: center; }
.strip-inner { max-width: 760px; margin: 0 auto; }
.strip-lead { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.strip-lead strong { color: #FFE9D6; }
.strip-body { font-size: 1.06rem; color: rgba(255,255,255,.9); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: stretch; }
.product { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-featured { background: linear-gradient(180deg, #ffffff, #FBFCF8); border-color: rgba(31,158,147,.16); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.product-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); }
.product-logo.ns { background: #F4F8FD; }
.product-logo.soon { font-size: 26px; background: var(--purple-soft); }
.product-status { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.product-status.live { color: var(--purple); background: var(--purple-soft); }
.product-status.soon { color: var(--muted); background: var(--surface-2); }
.product h3 { font-size: 1.55rem; margin-bottom: 6px; }
.product-tagline { font-weight: 700; color: var(--pink-dark); margin-bottom: 14px; font-size: 1rem; }
.product-desc { color: var(--ink-soft); margin-bottom: 20px; }
.product-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-tags li { font-size: 12.5px; font-weight: 700; color: var(--purple); background: var(--purple-soft); padding: 6px 12px; border-radius: 999px; }
.product-soon { display: flex; flex-direction: column; }
.product-soon .btn { margin-top: auto; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease; }
.principle:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.p-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.ic-purple { background: var(--purple-soft); }
.ic-pink { background: var(--pink-soft); }
.ic-lav { background: #EEF6E4; }
.principle h3 { font-size: 1.16rem; margin-bottom: 8px; }
.principle p { color: var(--ink-soft); font-size: 15px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 16px; }
.about-copy a:not(.btn) { color: var(--purple); font-weight: 700; }
.about-copy a:not(.btn):hover { text-decoration: underline; }
.about-copy .btn { margin-top: 12px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.v-num { font-size: 2.3rem; font-weight: 800; display: block; margin-bottom: 6px;
  background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.value-card p { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- CTA ---------- */
.cta-section { background: var(--surface); }
.cta-inner {
  text-align: center; max-width: 820px; margin: 0 auto; background: var(--grad); color: #fff;
  border-radius: 32px; padding: 64px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 62% at 82% 8%, rgba(255,255,255,.2), transparent 60%); }
.cta-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; position: relative; }
.cta-inner > p { font-size: 1.08rem; color: rgba(255,255,255,.92); margin-bottom: 30px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: #20261F; color: #CFD6CE; padding: 66px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-footer .brand-name { color: #fff; }
.footer-tagline { margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8FBF6A; }
.footer-tag { margin: 8px 0 12px; font-size: 15px; max-width: 340px; color: #A6ADA2; }
.footer-parent { font-size: 13.5px; color: #8C978B; }
.footer-parent strong { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #86917F; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: #CFD6CE; padding: 6px 0; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13.5px; color: #8C978B; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .products { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .hero { padding: 128px 0 60px; }
  .orbit { width: 320px; height: 340px; }
  .ring-3 { width: 320px; height: 320px; }
  .ring-2 { width: 236px; height: 236px; }
  .ring-1 { width: 150px; height: 150px; }
  .core { width: 120px; height: 120px; }
  .node { padding: 7px 11px 7px 8px; }
  .node-text strong { font-size: 12px; }
  .node-live { --y: -138px !important; }
  .node-soon:not(.faint) { --x: 118px !important; --y: 70px !important; }
  .node.faint { --x: -118px !important; --y: 70px !important; }
  .principles { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 48px 24px; }
  .hero-trust { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .node, .core { animation: none; }
  html { scroll-behavior: auto; }
}
