/* Copy2.ai — Landing Page
   Design tokens + base layout
*/
:root {
  --bg: #F4F2F7;
  --bg-warm: #EEEAF4;
  --surface: #ffffff;
  --surface-muted: #FAFAFD;
  --ink: #1a1625;
  --ink-2: #3c344a;
  --ink-3: #6b647a;
  --ink-4: #9b95a8;
  --line: rgba(26,22,37,0.08);
  --line-strong: rgba(26,22,37,0.14);

  /* peopleIX brand purple: #3A2B7C is the primary accent.
     The scale is built AROUND this hue — lighter tints for chips/surfaces,
     darker shades for hover/text. `--lilac-600` stays the main accent so
     existing references don't need to be touched. */
  --lilac-50:  #EFECF7;
  --lilac-100: #E1DCF1;
  --lilac-200: #C4B9E3;
  --lilac-300: #A293D0;
  --lilac-400: #7C6BBC;
  --lilac-500: #5849A4;
  --lilac-600: #3A2B7C;   /* brand primary — peopleIX */
  --lilac-700: #2F2367;
  --lilac-800: #241B4E;
  --lilac-900: #1B1439;

  /* Brand gradient used for display headings — navy-purple → violet.
     Matches the peopleIX wordmark on press material. */
  --brand-gradient: linear-gradient(95deg, #3A2B7C 0%, #5226BF 100%);

  --accent: var(--lilac-600);
  --accent-2: var(--lilac-500);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(26,22,37,0.04), 0 2px 6px rgba(26,22,37,0.04);
  --shadow-md: 0 4px 12px rgba(26,22,37,0.06), 0 14px 40px rgba(60,40,120,0.08);
  --shadow-lg: 0 10px 30px rgba(26,22,37,0.08), 0 40px 90px rgba(58,43,124,0.14);
  --shadow-glow: 0 30px 120px rgba(58,43,124,0.28);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv02","cv03","cv04","ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Grain + subtle warm gradient field */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(58,43,124,0.10), transparent 70%),
    radial-gradient(50% 35% at 90% 10%, rgba(157,122,224,0.08), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(36,27,78,0.06), transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac-700);
  padding: 6px 11px;
  background: rgba(58,43,124,0.08);
  border: 1px solid rgba(58,43,124,0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lilac-500);
  box-shadow: 0 0 0 3px rgba(58,43,124,0.18);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.028em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.032em; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; }
p  { color: var(--ink-3); line-height: 1.55; margin: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "calt" 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 12px;
  padding: 14px 22px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 20px rgba(26,22,37,0.24);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 28px rgba(26,22,37,0.32); }

.btn-accent {
  background: linear-gradient(180deg, var(--lilac-500), var(--lilac-600));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 24px rgba(58,43,124,0.35),
    0 2px 6px rgba(36,27,78,0.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 14px 36px rgba(58,43,124,0.45), 0 2px 6px rgba(36,27,78,0.3); }

.btn-ghost { color: var(--ink-2); padding: 12px 16px; }
.btn-ghost:hover { color: var(--ink); background: rgba(26,22,37,0.04); }

.btn-meta {
  font-size: 11.5px; color: rgba(255,255,255,0.7); font-weight: 400;
  letter-spacing: 0; padding-left: 4px; border-left: 1px solid rgba(255,255,255,0.18);
  margin-left: 2px;
}

/* Glass card */
.glass {
  background: rgba(255,255,255,0.64);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(26,22,37,0.04),
    0 12px 40px rgba(60,40,120,0.08);
}

/* Sections */
section { position: relative; padding: 96px 0; }
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head .kicker { color: var(--lilac-700); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.section-head h2 { }
.section-head p { font-size: 18px; color: var(--ink-3); max-width: 620px; }

/* Brand gradient text — used for display-size headings to match peopleIX CI */
.brand-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Divider */
.hr-soft { height: 1px; background: linear-gradient(90deg, transparent, rgba(26,22,37,0.1), transparent); border: 0; }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(26,22,37,0.04);
  border: 1px solid var(--line);
}

/* App window chrome shared */
.app-window {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26,22,37,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 80px rgba(60,40,120,0.18),
    0 6px 20px rgba(26,22,37,0.08);
}
.app-titlebar {
  height: 36px;
  background: linear-gradient(180deg, #F6F3FA, #EFEBF4);
  border-bottom: 1px solid rgba(26,22,37,0.06);
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.traffic { display: flex; gap: 7px; }
.traffic i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.traffic .r { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.traffic .y { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.traffic .g { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.titlebar-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--ink-4); font-weight: 500;
}

/* hero split */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

@media (max-width: 1040px) {
  .nav-links { display: none !important; }
}
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .feature-grid > *:nth-child(1) { grid-column: span 4 !important; }
  .feature-grid > *:not(:nth-child(1)) { grid-column: span 2 !important; }
}
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  h1 { font-size: clamp(32px, 7vw, 44px) !important; }
  h2 { font-size: clamp(26px, 4.8vw, 34px) !important; }
  .section-head p { font-size: 16px !important; }
  .section-head { margin-bottom: 36px !important; }

  /* Hero: collapse split to stacked */
  .hero-split { grid-template-columns: 1fr !important; gap: 36px !important; }

  /* How it works: 2x2 */
  .how-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .how-grid > div::after { display: none; }

  /* Feature grid: 2-col — match 1100px rule's specificity to override nth-child spans */
  .feature-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .feature-grid > *,
  .feature-grid > *:nth-child(1),
  .feature-grid > *:not(:nth-child(1)) { grid-column: auto / span 1 !important; }

  /* Hero clip: vertical stacking */
  .clip-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .clip-row .travel-arrow { transform: rotate(90deg); justify-self: center; }

  /* Generic 2-col grids */
  .stack-md { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Trending pairs: keep app labels visible, drop the bar column */
  .pair-row { grid-template-columns: 1fr 52px !important; gap: 10px !important; padding: 10px 10px !important; }
  .pair-row > :nth-child(2) { display: none !important; }
  .pair-row > :first-child { font-size: 12px !important; flex-wrap: wrap; }
  .pair-row > :first-child > span { font-size: 12px !important; }

  /* Footer 4-col → 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  /* CTA banner stack */
  .cta-grid { grid-template-columns: 1fr !important; gap: 28px !important; padding: 32px 26px !important; }

  /* PeopleIX cross-sell stack */
  .pix-grid { grid-template-columns: 1fr !important; gap: 28px !important; padding: 32px 26px !important; }

  /* Use cases: single column on mobile */
  #use-cases .feature-grid { grid-template-columns: 1fr !important; }
  #use-cases .feature-grid > * { grid-column: span 1 !important; }

  /* Product screens: horizontal scroll so the Mac mockup doesn't clip */
  #product-screens .app-window-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px !important;
    scrollbar-width: thin;
  }
  #product-screens .app-window { min-width: 720px; height: 460px !important; }
  #product-screens .tabs-row {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px 14px;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }
  #product-screens .tabs-row::-webkit-scrollbar { display: none; }
  #product-screens .tabs-row > button { flex-shrink: 0; }
}
/* Collapse feature/how grids to single column early — phones + narrow tablets.
   Uses matching/higher specificity to beat the 1100px rule's nth-child spans. */
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr !important; }
  .feature-grid > *,
  .feature-grid > *:nth-child(1),
  .feature-grid > *:not(:nth-child(1)) { grid-column: 1 / -1 !important; }
  #use-cases .feature-grid,
  #use-cases .feature-grid > * { grid-template-columns: 1fr !important; grid-column: 1 / -1 !important; }
  .how-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .container { padding: 0 16px; }
  h1 { font-size: 30px !important; line-height: 1.08 !important; }
  h2 { font-size: 24px !important; }
  .btn { padding: 12px 18px !important; font-size: 14px !important; }
  .btn-meta { display: none !important; }
  .eyebrow { font-size: 10px !important; }

  /* Footer → single col */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Tweaks panel: dock to bottom edge */
  .tweaks-panel { right: 12px !important; left: 12px !important; bottom: 12px !important; width: auto !important; }
}
