/* ─────────────────────────────────────────────────────────────────────────────
   humtumai.in — main stylesheet
   Design: dark navy base, warm-teal accent, glass cards, Inter typeface
   Inspired by tessl.io aesthetic; differentiated by color and card treatment
───────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* backgrounds */
  --bg-0:      #070d1a;          /* page background  */
  --bg-1:      #0d1428;          /* slightly lighter */
  --bg-card:   rgba(255,255,255,0.035);
  --bg-card-h: rgba(255,255,255,0.06);

  /* borders */
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(0,200,150,0.45);

  /* accent – warm teal (≠ tessl's electric cyan) */
  --accent:      #00c896;
  --accent-dim:  rgba(0,200,150,0.1);
  --accent-glow: rgba(0,200,150,0.22);

  /* secondary accent */
  --purple:    #7b61ff;
  --purple-dim: rgba(123,97,255,0.12);

  /* text */
  --text-hi:  #eef2ff;
  --text-md:  #9ba8c5;
  --text-lo:  #5a6882;

  /* shape */
  --radius:    14px;
  --radius-sm: 8px;

  /* nav */
  --nav-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.22s;

  /* layout */
  --container: 1120px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-hi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Eyebrow label ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  background: rgba(7, 13, 26, 0.82);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}

.nav.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-hi);
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-md);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__links a:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.07);
}

/* burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block-start: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Radial glow — warmer/larger than tessl's accent placement */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 800px;
  height: 800px;
  background:
    radial-gradient(ellipse at 45% 45%, rgba(0,200,150,0.11) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 55%, rgba(123,97,255,0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Subtle dot-grid — different from tessl's line grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 10%, transparent 80%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
  padding-block: 100px;
}

.hero__headline {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.08;
  background: linear-gradient(140deg, #eef2ff 0%, #c5cfe8 60%, #9ba8c5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-md);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.75;
  font-weight: 400;
}

/* ── Section title ───────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-hi);
  margin-bottom: 32px;
}

/* ── Tiles ───────────────────────────────────────────────────────────────── */
.tiles-section { padding-block: 80px; }

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background   var(--dur) var(--ease),
    transform    var(--dur) var(--ease),
    box-shadow   var(--dur) var(--ease);
}

/* glow wash on hover */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-dim);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.tile:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,200,150,0.08), 0 4px 16px rgba(0,0,0,0.4);
}
.tile:hover::after { opacity: 1; }

.tile__icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 2px;
  position: relative;
}

.tile__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.25px;
  color: var(--text-hi);
  position: relative;
}

.tile__desc {
  font-size: 0.875rem;
  color: var(--text-md);
  line-height: 1.65;
  position: relative;
  flex: 1;
}

.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  margin-top: 8px;
  position: relative;
  transition: gap var(--dur) var(--ease);
}
.tile:hover .tile__cta { gap: 10px; }

/* ── Prose section (About, etc.) ─────────────────────────────────────────── */
.prose-section {
  padding-block: 80px;
  border-top: 1px solid var(--border);
}
.prose-section__inner {
  max-width: 660px;
}
.prose-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.prose-section p {
  color: var(--text-md);
  font-size: 1.025rem;
  line-height: 1.85;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.footer__brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-hi);
}
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.8rem;
  color: var(--text-lo);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--accent); }
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-lo);
  width: 100%;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav__burger  { display: flex; }
  .nav__links   {
    display: none;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav__links.open  { display: flex; }
  .nav__links a     { padding: 10px 14px; border-radius: var(--radius-sm); }

  .tiles-grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero__headline { letter-spacing: -1.5px; }
}
