/* ================================================================
   GenAI Tribe — Virtual Visiting Card
   Brand: ink #0A0A0C · paper #FFFFFF · red #B91C1C
   Type:  Inter · Instrument Serif · JetBrains Mono
   ================================================================ */

:root {
  --ink: #0A0A0C;
  --ink-deep: #050507;
  --ink-soft: #14141A;
  --ink-line: rgba(255, 255, 255, 0.08);
  --ink-line-strong: rgba(255, 255, 255, 0.16);

  --paper: #FFFFFF;
  --paper-soft: #ECECE6;
  --paper-mute: rgba(236, 236, 230, 0.62);
  --paper-fade: rgba(236, 236, 230, 0.42);

  /* Brand red — aligned with the print card (was #B91C1C, now matches v2 print) */
  --red: #E60028;
  --red-hot: #FF1A3D;
  --red-glow: rgba(230, 0, 40, 0.38);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --t-ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-deep);
  color: var(--paper-soft);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(185, 28, 28, 0.10), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(185, 28, 28, 0.06), transparent 60%),
    var(--ink-deep);
}

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

/* ================================================================
   Layout
   ================================================================ */

.card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}

@media (min-width: 720px) {
  .card { padding: 44px 48px 64px; }
}

/* ================================================================
   Brand row
   ================================================================ */

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: opacity .2s var(--t-ease);
}
.brand:hover { opacity: .8; }

.brand-text { line-height: 1; }
/* Punctuation-style red dot — sits in the typographic baseline like the print card "GenAi Tribe.Agency" */
.brand-dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 999px;
  display: inline-block;
  margin: 0 1.5px 1px;
  align-self: center;
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2.6s var(--t-ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.brand-meta {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-fade);
}

/* ================================================================
   Hero
   ================================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 40px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    padding: 48px 0 64px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 999px;
  display: inline-block;
}

.name {
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 18px;
  color: var(--paper);
}
.name-em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: block;
  color: var(--paper-soft);
}

.title {
  font-size: 17px;
  font-weight: 500;
  color: var(--paper-soft);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.tagline {
  max-width: 46ch;
  font-size: 18px;
  font-weight: 400;
  color: var(--paper-mute);
  line-height: 1.55;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s var(--t-ease), background .2s var(--t-ease), border-color .2s var(--t-ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(255,255,255,0.10);
}

.btn-ghost {
  background: transparent;
  color: var(--paper-soft);
  border-color: var(--ink-line-strong);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--paper);
}

/* Portrait */
.hero-right {
  display: flex;
  justify-content: center;
}
.portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.portrait-frame {
  position: relative;
  width: clamp(180px, 28vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ink-soft), var(--ink-deep));
  border: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 70%, var(--red) 78%, transparent 86%);
  filter: blur(10px);
  opacity: .55;
  z-index: -1;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.portrait-initials {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(64px, 10vw, 100px);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.portrait-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-fade);
}

/* ================================================================
   Pitch
   ================================================================ */

.pitch {
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .pitch {
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 40px 0;
  }
}
.pitch-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-fade);
  margin: 0;
}
.pitch-body {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--paper);
  margin: 0;
  max-width: 28ch;
  letter-spacing: -0.005em;
}

/* ================================================================
   Proof
   ================================================================ */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 64px;
}
.proof-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--ink-line);
}
.proof-cell:last-child { border-right: 0; }
@media (max-width: 719px) {
  .proof-cell { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .proof-cell:last-child { border-bottom: 0; }
}
.proof-stat {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  margin: 0 0 8px;
}
.proof-stat-em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red-hot);
}
.proof-label {
  font-size: 13px;
  color: var(--paper-mute);
  margin: 0;
  line-height: 1.45;
}

/* ================================================================
   Section heads
   ================================================================ */

.section-head { margin-bottom: 32px; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-fade);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--red);
  display: inline-block;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  color: var(--paper);
  max-width: 22ch;
}

/* ================================================================
   Services
   ================================================================ */

.services { padding: 16px 0 64px; }

/* Magazine-style numbered list — no borders, just typography + whitespace.
   Matches the editorial tone of the pitch + name treatment. */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.service-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--ink-line);
  align-items: baseline;
  transition: padding-left .25s var(--t-ease);
}
.service-item:last-child { border-bottom: 1px solid var(--ink-line); }
.service-item:hover { padding-left: 8px; }

.service-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--red-hot);
  line-height: 1;
  align-self: start;
  padding-top: 4px;
}
.service-body-wrap { min-width: 0; }
.service-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 10px;
  max-width: 28ch;
}
.service-body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--paper-mute);
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 600px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .service-item:hover { padding-left: 0; }
  .service-num { font-size: 28px; padding: 0; }
}

/* ================================================================
   Contact
   ================================================================ */

.contact { padding: 16px 0 64px; }

.contact-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.contact-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  transition: border-color .2s var(--t-ease), background .2s var(--t-ease), transform .15s var(--t-ease);
}
.contact-cell:hover {
  border-color: var(--red);
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--paper);
}
.contact-cell:hover .contact-icon { color: var(--red-hot); }
.contact-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-fade);
  display: block;
  margin-bottom: 2px;
}
.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.005em;
  word-break: break-word;
}

/* ================================================================
   Footer
   ================================================================ */

.foot {
  border-top: 1px solid var(--ink-line);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 720px) {
  .foot { flex-direction: row; text-align: left; }
}
.foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 14px;
  color: var(--paper);
}
.foot-mark .brand-dot { margin: 0 1.5px 1px; }
.foot-line {
  font-size: 12.5px;
  color: var(--paper-fade);
  margin: 0;
}
.foot-line a { color: var(--paper-soft); border-bottom: 1px dotted var(--ink-line-strong); }
.foot-line a:hover { color: var(--red-hot); border-color: var(--red); }

/* ================================================================
   Toast (save-vCard feedback)
   ================================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s var(--t-ease), opacity .25s var(--t-ease);
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================================================================
   Print (so the card prints cleanly to PDF for printable cards)
   ================================================================ */

@media print {
  body { background: #fff; color: #000; }
  .cta-row, .toast { display: none; }
  .card { padding: 0; }
}

/* ================================================================
   Reduced motion
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
