/*
 * tokens.css
 * ──────────────────────────────────────────────────────────────────
 * KumoHop Design Tokens & Base Reset
 * Source of truth: https://github.com/KumoHop/KumoHop/blob/main/style.md
 *
 * Import this file in every page:
 *   <link rel="stylesheet" href="/src/styles/tokens.css" />
 * ──────────────────────────────────────────────────────────────────
 */

/* ─── Design Tokens ─────────────────────────────────────────────── */

:root {
  /* Surface & Backgrounds */
  --bg: #f7f7f5;            /* Warm paper page background             */
  --surface: #ffffff;       /* Pure white container surfaces           */
  --surface-hover: #f0f0ed; /* Hover background for grid cells / cards */

  /* Typography & Dividers */
  --text: #171717;          /* Primary high-contrast text              */
  --text-hover: #333333;    /* Primary button hover                    */
  --muted: #6b6b6b;         /* Captions, descriptions, metadata        */
  --border: #ddddda;        /* 1px hairline structural dividers        */

  /* Accent Colors */
  --accent: #171717;
  --orange: #ff5e3a;        /* Signature KumoHop Orange — CTA accent   */
  --blue: #2563eb;          /* "Concept / Idea" status badge           */
  --green: #59c36a;         /* "Live / Active" status badge            */

  /* Layout */
  --max-width: 1100px;

  /* Safe-area insets (notch / home-bar on iOS) */
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ─── Global Reset ──────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Disable mobile tap flash */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  /* Inter font stack — matches KumoHop main site */
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
  overflow-x: hidden;

  /* iOS safe-area padding */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);

  /* Font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ─── Layout ────────────────────────────────────────────────────── */

.container {
  /* Centred column, max 1100px, with 20px gutter each side */
  width: min(var(--max-width), calc(100% - 40px));
  margin: auto;
}


/* ─── Navigation ────────────────────────────────────────────────── */

nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}


/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

.hero-content {
  max-width: 900px;
}

/* Eyebrow / overline label with orange dot */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 30px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-description {
  max-width: 580px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}


/* ─── Sections ──────────────────────────────────────────────────── */

section {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-description {
  max-width: 300px;
  color: var(--muted);
  font-size: 0.9rem;
}


/* ─── Buttons ───────────────────────────────────────────────────── */

/* Sharp rectangular buttons — no border-radius per KumoHop spec */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Primary: solid charcoal inverted */
.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.primary:hover,
.button.primary:active,
.button.primary:focus {
  background: var(--text-hover);
  border-color: var(--text-hover);
  color: var(--bg);
}

/* Secondary: hairline outline */
.button.secondary {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--text);
  color: var(--text);
}


/* ─── Status Badges ─────────────────────────────────────────────── */

/* Dot + uppercase micro-label */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status.live::before    { background: var(--green); }
.status.progress::before { background: var(--orange); }
.status.idea::before    { background: var(--blue); }


/* ─── Text Links ────────────────────────────────────────────────── */

/* Understated underline that shifts to orange on hover */
.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}


/* ─── Footer ────────────────────────────────────────────────────── */

footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}


/* ─── Scroll Animations ─────────────────────────────────────────── */

/* Editorial staggered fade-up reveal via IntersectionObserver */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* ─── Responsive ────────────────────────────────────────────────── */

@media (max-width: 750px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  nav { height: 66px; }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-name { font-size: 1.05rem; }

  .nav-links {
    gap: 16px;
    font-size: 0.85rem;
  }

  .nav-links a { padding: 8px 4px; }

  .hero {
    min-height: auto;
    padding: 55px 0 45px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.5rem, 11vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 1.02rem;
    line-height: 1.55;
  }

  section { padding: 55px 0; }

  .section-header {
    display: block;
    margin-bottom: 30px;
  }

  h2 { font-size: clamp(2rem, 7.5vw, 2.75rem); }

  .section-description {
    margin-top: 10px;
    font-size: 0.88rem;
  }

  footer { padding: 24px 0; }

  .footer-content { gap: 12px; }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }
}
