/* ══════════════════════════════════════════════════════════
   KindSoft — The kind of website Steve would nod at.
   ══════════════════════════════════════════════════════════ */

:root {
  --teal:       #2EB7B3;
  --teal-dark:  #1A8C87;
  --teal-light: #4DE0DC;
  --teal-bright:#6FFFFF;
  --teal-glow:  rgba(46,183,179,0.12);
  --coral:      #F58066;
  --bg:         #06070A;
  --bg-raised:  #0C0E12;
  --bg-card:    #12141A;
  --surface:    #1A1D24;
  --text:       #F0F2F5;
  --text-muted: #7A8A92;
  --text-faint: #3E4A50;
  --border:     rgba(255,255,255,0.05);
  --border-hover: rgba(46,183,179,0.25);
  --radius:     16px;
  --t:          0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:     0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Noise texture overlay — adds film-grain depth ────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-light); }
::selection { background: rgba(46,183,179,0.35); color: white; }

/* ── Dot grid background ─────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Utilities ────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.gradient-text {
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-light) 30%, var(--teal) 70%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}
.label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.centered .label::after { left: 50%; transform: translateX(-50%); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 4px 24px rgba(46,183,179,0.3), 0 0 0 1px rgba(46,183,179,0.1);
}
.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(46,183,179,0.5), 0 0 0 1px rgba(46,183,179,0.3);
  color: white;
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(46,183,179,0.4);
  color: var(--teal-light);
  background: rgba(46,183,179,0.05);
  box-shadow: 0 0 24px rgba(46,183,179,0.1);
}

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  background: rgba(6,7,10,0.72);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  text-decoration: none; transition: opacity var(--t);
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--text-faint);
  transition: color var(--t); letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 180px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -400px; left: 50%;
  transform: translateX(-50%);
  width: 1400px; height: 1400px;
  background: radial-gradient(ellipse, rgba(46,183,179,0.1) 0%, rgba(46,183,179,0.03) 35%, transparent 65%);
  pointer-events: none;
  animation: breathe 10s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: 60%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,128,102,0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes breathe {
  0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-80px, 50px); }
}
.hero-icon {
  margin: 0 auto 48px;
  position: relative;
}
.hero-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 220px; height: 180px;
  background: radial-gradient(ellipse, rgba(46,183,179,0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -0.035em;
  position: relative;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 52px;
  line-height: 1.75;
  position: relative;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ── Statement section — full viewport, one big line ──── */
.statement {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46,183,179,0.06), transparent 60%);
  pointer-events: none;
}
.statement h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.statement h2 em {
  font-style: italic;
  color: var(--teal-light);
}

/* ── Stats row ────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 80px;
}
.stat {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--t);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg-card); }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Sections ─────────────────────────────────────────── */
.section-dark { padding: 140px 0; background: var(--bg); position: relative; }
.section-raised {
  padding: 140px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-header { max-width: 520px; margin-bottom: 72px; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -0.025em;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* ── About ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 22px;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-text em { color: var(--teal-light); font-style: italic; }
.about-quote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--teal);
  padding: 20px 0 20px 28px;
  margin: 36px 0;
  line-height: 1.8;
  background: linear-gradient(90deg, rgba(46,183,179,0.05), transparent 80%);
  border-radius: 0 12px 12px 0;
  position: relative;
}
.about-quote::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 10px;
  font-size: 2.8rem;
  color: var(--teal);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 12px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.about-card:hover::before { transform: scaleX(1); }
.about-card:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(46,183,179,0.05);
}
.about-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.about-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.about-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Approach ─────────────────────────────────────────── */
.approach-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
}
.approach-item {
  padding: 48px 44px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.approach-item::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, var(--teal-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.approach-item:hover::before { opacity: 1; }
.approach-item:hover { background: rgba(18,20,26,0.8); }
.approach-item:nth-child(even) { border-right: none; }
.approach-item:nth-child(even)::before {
  background: radial-gradient(ellipse at top right, var(--teal-glow), transparent 70%);
}
.approach-item:nth-child(5),
.approach-item:nth-child(6) { border-bottom: none; }
.approach-icon { font-size: 1.5rem; margin-bottom: 18px; position: relative; }
.approach-item h3 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text); position: relative; letter-spacing: -0.01em;
}
.approach-item p {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; position: relative;
}

/* ── Product — animated gradient border ───────────────── */
.product-showcase-wrap {
  margin-top: 48px;
  padding: 1px;
  border-radius: 25px;
  background: conic-gradient(from 0deg, var(--teal), var(--teal-dark), rgba(245,128,102,0.3), var(--teal-dark), var(--teal));
  background-size: 200% 200%;
  animation: border-spin 8s linear infinite;
  position: relative;
}
@keyframes border-spin {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  100% { background-position: 200% 50%; filter: hue-rotate(15deg); }
}
.product-showcase-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 25px;
  padding: 1px;
  background: inherit;
  filter: blur(16px);
  opacity: 0.4;
  z-index: -1;
}
.product-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.product-showcase::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(46,183,179,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.product-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(46,183,179,0.1), rgba(26,140,135,0.05));
  border: 1px solid rgba(46,183,179,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.product-showcase:hover .product-icon-wrap {
  background: linear-gradient(135deg, rgba(46,183,179,0.18), rgba(26,140,135,0.1));
  border-color: rgba(46,183,179,0.35);
  box-shadow: 0 0 36px rgba(46,183,179,0.12);
}
.product-showcase h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em;
}
.product-tagline {
  font-size: 0.92rem; color: var(--teal); font-weight: 600;
  margin-bottom: 16px; letter-spacing: 0.01em;
}
.product-showcase p {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px;
}

/* ── CSS Phone mockup ─────────────────────────────────── */
.phone-float {
  width: 200px;
  flex-shrink: 0;
  background: #1A1A1A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform var(--t-slow);
}
.phone-float:hover { transform: translateY(-8px) scale(1.02); }
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  height: 24px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  width: 80px;
  margin: 0 auto;
}
.phone-content { padding: 12px; flex: 1; }
.phone-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
}
.phone-card-label {
  font-size: 0.45rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
}
.phone-card-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}
.phone-card-row { display: flex; gap: 4px; margin-bottom: 6px; }
.phone-card-half {
  flex: 1;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border);
}
.phone-bar-bg {
  background: var(--surface);
  height: 4px;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.phone-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

/* ── Marquee strip — values ticker ────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 16px 0;
  position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-raised), transparent);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-raised), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 0 8px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Three promises — bold manifesto blocks ───────────── */
.promises {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}
.promise {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--t-slow);
}
.promise:first-child { padding-top: 0; }
.promise:last-child { border-bottom: none; padding-bottom: 0; }
.promise:hover { padding-left: 12px; }
.promise-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  line-height: 1;
  padding-top: 4px;
  transition: opacity var(--t);
}
.promise:hover .promise-number { opacity: 0.8; }
.promise-content h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.promise-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}

/* ── Contact ──────────────────────────────────────────── */
.contact-strip {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.contact-strip::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(46,183,179,0.08), transparent 60%);
  pointer-events: none;
  animation: breathe 12s ease-in-out infinite alternate;
}
.contact-strip h2 {
  font-size: 2.4rem; font-weight: 700;
  margin-bottom: 14px; position: relative; letter-spacing: -0.025em;
}
.contact-strip p {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 36px; position: relative;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--bg);
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 48px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--text-faint);
  margin-top: 12px; max-width: 260px; line-height: 1.65;
}
.footer-links h4 {
  color: var(--text-muted); font-size: 0.7rem; font-weight: 600;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-faint); font-size: 0.86rem; transition: color var(--t); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
  gap: 12px; font-size: 0.78rem; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--teal); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-list { grid-template-columns: 1fr; border-radius: 20px; }
  .approach-item { border-right: none !important; padding: 36px 32px; }
  .approach-item:nth-child(5) { border-bottom: 1px solid var(--border); }
  .approach-item:last-child { border-bottom: none; }
  .product-showcase { grid-template-columns: 1fr; text-align: center; padding: 40px 32px; }
  .product-showcase > div:first-child { justify-content: center; }
  .hero { padding: 120px 0 100px; }
  .section-dark, .section-raised { padding: 100px 0; }
  .contact-strip, .statement { padding: 80px 0; }
  .promises { padding: 80px 0; }
  .promise { grid-template-columns: 48px 1fr; gap: 20px; padding: 36px 0; }
  .promise-number { font-size: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .phone-float { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 1.8rem; }
  .statement h2 { font-size: 1.6rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
