/* =====================================================================
   LogicByHeart™ — Design System
   70% professional · 30% notebook soul
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --warm-white: #fbfaf6;
  --cream: #f3efe6;
  --cream-deep: #ece6d8;
  --paper: #ffffff;

  /* Ink */
  --charcoal: #2c2a28;
  --ink-soft: #55514c;
  --ink-faint: #8a847c;
  --hairline: #e7e1d5;
  --hairline-strong: #d9d2c4;

  /* System accents (muted, paper-friendly) */
  --green: #6f9f7e;        /* Aqqona  */
  --green-deep: #4f7e60;
  --green-wash: #eef4ef;

  --blue: #6f93c0;         /* Floqqto */
  --blue-deep: #4f73a3;
  --blue-wash: #eef2f8;

  --orange: #d39561;       /* KerDevOS */
  --orange-deep: #b9743c;
  --orange-wash: #f8f0e7;

  --purple: #9a85b8;       /* Kermee  */
  --purple-deep: #7a6499;
  --purple-wash: #f2eef7;

  /* Accents */
  --heart: #d98a8a;
  --sticky: #fbf3c9;
  --sticky-edge: #efe39a;

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  /* Geometry */
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(44, 42, 40, .04), 0 2px 8px rgba(44, 42, 40, .04);
  --shadow-md: 0 2px 4px rgba(44, 42, 40, .05), 0 12px 32px rgba(44, 42, 40, .07);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint notebook grid, very subtle */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(44,42,40,.025) 1px, transparent 0);
  background-size: 26px 26px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.eyebrow {
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--ink-faint); }

/* handwriting tints for the brand line */
.t-life    { color: var(--green-deep);  }
.t-flow    { color: var(--blue-deep);   }
.t-build   { color: var(--orange-deep); }
.t-create  { color: var(--purple-deep); }

/* sketch underline under section titles */
.underline-sketch { position: relative; display: inline-block; }
.underline-sketch::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -10px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'><path d='M2 7 C 40 2, 70 10, 110 6 S 180 2, 218 7' fill='none' stroke='%23d39561' stroke-width='2.4' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  opacity: .8;
}
.underline-sketch.u-green::after  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'><path d='M2 7 C 40 2, 70 10, 110 6 S 180 2, 218 7' fill='none' stroke='%236f9f7e' stroke-width='2.4' stroke-linecap='round'/></svg>"); }
.underline-sketch.u-blue::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'><path d='M2 7 C 40 2, 70 10, 110 6 S 180 2, 218 7' fill='none' stroke='%236f93c0' stroke-width='2.4' stroke-linecap='round'/></svg>"); }
.underline-sketch.u-purple::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'><path d='M2 7 C 40 2, 70 10, 110 6 S 180 2, 218 7' fill='none' stroke='%239a85b8' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__badge { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em; }
.brand__tm { font-size: .62em; vertical-align: super; font-weight: 700; color: var(--ink-faint); }
.brand__tag { display: block; font-size: .68rem; color: var(--ink-faint); font-weight: 500; letter-spacing: .02em; margin-top: -2px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__link {
  padding: 8px 13px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--charcoal); background: var(--cream); }
.nav__link.is-active { color: var(--charcoal); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 7px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'><path d='M2 5 C 20 1, 40 7, 78 4' fill='none' stroke='%23d98a8a' stroke-width='2.2' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px; padding: 8px 16px;
  border: 1.5px solid var(--charcoal); border-radius: 10px;
  font-weight: 600; font-size: .9rem;
  white-space: nowrap; flex: none;
  transition: background .15s, color .15s, transform .15s;
}
.nav__cta svg { flex: none; width: 16px; height: 16px; }
.nav__cta:hover { background: var(--charcoal); color: var(--warm-white); transform: translateY(-1px); }



.nav__toggle {
  display: none;
  margin-left: auto;
  font-size: 1.6rem;
  color: var(--charcoal);
}

@media (max-width: 760px) {
  .nav__inner {
    padding: 12px 18px;
  }

  .brand__badge {
    width: 34px;
    height: 34px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 18px;
    background: rgba(251, 250, 246, .96);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-sm);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link,
  .nav__cta {
    width: 100%;
    justify-content: flex-start;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--charcoal); color: var(--warm-white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border: 1.5px solid var(--hairline-strong); color: var(--charcoal); background: var(--paper); }
.btn--ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translate(3px,-1px); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  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); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, var(--cream));
  padding: 56px 0 40px;
  margin-top: 40px;
}
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot__col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 14px; }
.foot__col a { display: block; font-size: .92rem; color: var(--ink-soft); padding: 4px 0; transition: color .15s; }
.foot__col a:hover { color: var(--charcoal); }
.foot__brandcol { max-width: 320px; }
.foot__desc { font-size: .9rem; margin-top: 10px; line-height: 1.6; }
.foot__statement {
  margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--hairline-strong);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.foot__motto { font-family: var(--hand); font-size: 1.55rem; color: var(--charcoal); line-height: 1.0; }
.foot__motto span { display: block; }
.foot__sign-end { display: flex; align-items: center; gap: 12px; }
.foot__cat { width: 78px; height: auto; flex: none; opacity: .9; }
.foot__fine { font-size: .82rem; color: var(--ink-faint); }
@media (max-width: 540px) {
  .foot__statement { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- Decorative bits ---------- */
.peek-cat { position: absolute; bottom: 0; width: 96px; opacity: .9; pointer-events: none; }
.sticky-note {
  position: relative;
  background: var(--sticky);
  border: 1px solid var(--sticky-edge);
  padding: 18px 22px;
  border-radius: 4px;
  font-family: var(--hand);
  font-size: 1.5rem; line-height: 1.15; color: #6b5d2e;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.sticky-note::before { /* tape */
  content: ""; position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 64px; height: 20px; background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.05); border-radius: 2px;
}
.handnote { font-family: var(--hand); font-size: 1.4rem; color: var(--ink-faint); line-height: 1; }

/* generic trademark mark (hero h1 .tm overrides size by specificity) */
.tm { font-size: .58em; vertical-align: super; font-weight: 700; color: var(--ink-faint); margin-left: 1px; }

/* small inline heart accent (default size; inline styles can override) */
[data-svg="heart"] { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
[data-svg="heart"] svg { width: 100%; height: 100%; }
.eyebrow [data-svg="heart"] { width: 18px; vertical-align: -4px; }

/* accent dot before list items */
.feat-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink-soft); font-size: .96rem; }
.feat-list li svg { width: 18px; height: 18px; flex: none; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

