/* =============================================================
   REAL TEAM Digital — realteamdigital.sk
   Created: 2026-03-28
   Last updated: 2026-03-28
   ============================================================= */

/* ===== DESIGN TOKENS ===================================== */
:root {
  /* Colors */
  --clr-bg:           #0c0c10;
  --clr-bg-raised:    #131318;
  --clr-bg-card:      #1a1a22;
  --clr-bg-card-hover:#1f1f2a;
  --clr-border:       rgba(139, 60, 247, 0.15);
  --clr-border-hover: rgba(139, 60, 247, 0.35);

  --clr-purple-deep:  #511090;
  --clr-purple:       #8b3cf7;
  --clr-purple-light: #c084fc;
  --clr-purple-glow:  rgba(139, 60, 247, 0.18);

  --clr-white:        #f4f4f6;
  --clr-muted:        #9191a4;
  --clr-dimmed:       #5c5c72;

  /* Typography */
  --font-heading:  'Space Grotesk', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Fluid type scale (clamp: min | preferred | max) */
  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 2vw,   1rem);
  --text-base: clamp(1rem,     2.5vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 3vw,   1.375rem);
  --text-xl:   clamp(1.375rem, 4vw,   1.75rem);
  --text-2xl:  clamp(1.75rem,  5vw,   2.5rem);
  --text-3xl:  clamp(2.25rem,  6vw,   3.5rem);
  --text-4xl:  clamp(2.75rem,  8vw,   4.5rem);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Layout */
  --container-max: 1160px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* Effects */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 30px rgba(139, 60, 247, 0.25);
  --transition:  0.22s ease;
}

/* ===== RESET & BASE ===================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== UTILITY ========================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-purple-light);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '// ';
  opacity: 0.5;
}

.gold-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-purple), var(--clr-purple-light));
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

/* ===== NAVIGATION ====================================== */
.nav {
  padding: 1.25rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition);
}

.nav-wrapper.scrolled {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--clr-purple-deep), var(--clr-purple));
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--clr-purple);
  border-radius: var(--radius-sm);
  color: var(--clr-purple-light);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--clr-purple);
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 60, 247, 0.35);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== BUTTONS ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-purple-deep), var(--clr-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 60, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 60, 247, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid var(--clr-border-hover);
}

.btn-secondary:hover {
  border-color: var(--clr-purple);
  color: var(--clr-purple-light);
  background: var(--clr-purple-glow);
}

/* ===== HERO SECTION ==================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Background grid + glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 60, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 60, 247, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(81, 16, 144, 0.25) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-purple-light);
  margin-bottom: var(--space-md);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-purple);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--clr-purple-light), var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rotating niche text */
.hero-rotating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-muted);
  margin-bottom: var(--space-lg);
  min-height: 1.6em;
}

.hero-rotating-wrap::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-dimmed);
  flex-shrink: 0;
}

.rotating-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.5em;
  vertical-align: middle;
}

.rotating-text span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  color: var(--clr-purple-light);
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.rotating-text span.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-text span.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Hero visual — GroupFlow mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding-bottom: 24px;
}

.mockup-browser {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.mockup-bar {
  background: var(--clr-bg-raised);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }

.mockup-url {
  flex: 1;
  background: rgba(139, 60, 247, 0.08);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--clr-dimmed);
}

.mockup-body {
  padding: 1.5rem;
}

/* Dashboard stats row */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mockup-stat {
  background: rgba(139, 60, 247, 0.07);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.mockup-stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-purple-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.mockup-stat-label {
  font-size: 0.65rem;
  color: var(--clr-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Guest list rows */
.mockup-table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 0.5rem;
}

.mockup-table-head span {
  font-size: 0.6rem;
  color: var(--clr-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  font-weight: 600;
}

.mockup-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(139, 60, 247, 0.06);
  align-items: center;
}

.mockup-row:last-child {
  border-bottom: none;
}

.mockup-name {
  font-size: 0.72rem;
  color: var(--clr-white);
  font-weight: 500;
}

.mockup-cell {
  font-size: 0.68rem;
  color: var(--clr-muted);
}

.mockup-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-heading);
}

.badge-confirmed { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-pending   { background: rgba(234, 179, 8, 0.15);  color: #fbbf24; }
.badge-late      { background: rgba(139, 60, 247, 0.15); color: var(--clr-purple-light); }

/* Floating label on mockup */
.mockup-label {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--clr-purple-deep), var(--clr-purple));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(139, 60, 247, 0.4);
}

/* ===== SECTION SHARED =================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-headline {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-white);
}

.section-headline em {
  font-style: normal;
  color: var(--clr-purple-light);
}

.section-body {
  font-size: var(--text-base);
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 680px;
}

/* ===== ORIGIN STORY ==================================== */
.origin {
  background: var(--clr-bg);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.origin-content .section-headline {
  margin-bottom: var(--space-lg);
}

.origin-story p {
  color: var(--clr-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.origin-story p:last-child {
  margin-bottom: 0;
}

.origin-story strong {
  color: var(--clr-white);
  font-weight: 600;
}

.origin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-purple-light);
  margin-top: var(--space-lg);
  transition: gap var(--transition);
}

.origin-link:hover { gap: 0.7rem; }

/* Origin timeline / sidebar */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--clr-purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clr-purple);
  border: 2px solid var(--clr-bg);
  box-shadow: 0 0 0 2px var(--clr-purple-deep);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-purple-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.timeline-text {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ===== GROUPFLOW SECTION ================================ */
.groupflow {
  background: var(--clr-bg-raised);
}

.groupflow-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.groupflow-header .section-label { display: block; }
.groupflow-header .section-headline { margin-bottom: var(--space-md); }

/* Problem/solution split */
.groupflow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.groupflow-col {
  padding: var(--space-xl);
}

.groupflow-col.problem {
  background: var(--clr-bg-raised);
  border-right: 1px solid var(--clr-border);
}

.groupflow-col.solution {
  background: rgba(81, 16, 144, 0.08);
}

.groupflow-col-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.col-label-problem { color: var(--clr-muted); }
.col-label-solution { color: var(--clr-purple-light); }

.col-label-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.col-label-icon.problem-icon {
  background: rgba(255, 95, 86, 0.12);
}

.col-label-icon.solution-icon {
  background: var(--clr-purple-glow);
}

.col-label-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.col-label-icon.problem-icon svg { stroke: #ff6b6b; }
.col-label-icon.solution-icon svg { stroke: var(--clr-purple-light); }

.groupflow-audience {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
}

.groupflow-problem-text {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--clr-border);
}

.groupflow-problem-text:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.groupflow-stat {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ff6b6b;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.groupflow-stat-label {
  font-size: var(--text-xs);
  color: var(--clr-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  font-weight: 500;
}

.groupflow-solution-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.groupflow-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.groupflow-point-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clr-purple-glow);
  border: 1px solid var(--clr-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.groupflow-point-icon svg {
  width: 11px;
  height: 11px;
  stroke: var(--clr-purple-light);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.groupflow-point-text {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  line-height: 1.7;
}

.groupflow-point-text strong {
  color: var(--clr-white);
  font-weight: 600;
}

/* GroupFlow proof bar */
.groupflow-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: var(--space-lg) var(--space-xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.proof-item {
  text-align: center;
  padding: var(--space-sm) 0;
}

.proof-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--clr-purple-light), var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.proof-label {
  font-size: var(--text-xs);
  color: var(--clr-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  font-weight: 500;
}

.groupflow-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ===== FOOTER =========================================== */
.footer {
  background: var(--clr-bg-raised);
  border-top: none;
  padding: 0 0 var(--space-xl);
}

/* Contact block at top of footer */
.footer-contact-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--space-2xl);
}

.footer-contact-text .section-label {
  display: block;
}

.footer-contact-headline {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.footer-contact-sub {
  font-size: var(--text-base);
  color: var(--clr-muted);
  line-height: 1.75;
  max-width: 520px;
}

.footer-contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.footer-email-note {
  font-size: var(--text-xs);
  color: var(--clr-dimmed);
  font-family: var(--font-heading);
}

.footer-divider {
  display: none; /* handled by contact block border-bottom */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--clr-purple-deep), var(--clr-purple));
  border-radius: 9px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--clr-white);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: var(--space-md);
}

.footer-company-detail {
  font-size: var(--text-xs);
  color: var(--clr-dimmed);
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--space-md);
}

.footer-founder-line {
  font-size: var(--text-sm);
  color: var(--clr-dimmed);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--clr-dimmed);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--clr-purple-light); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--clr-dimmed);
}

.footer-copy a {
  color: var(--clr-purple-light);
  transition: color var(--transition);
}

.footer-copy a:hover { color: var(--clr-purple); }

/* ===== SCROLL ANIMATIONS ================================ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }

/* ===== MOBILE NAVIGATION DRAWER ======================== */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 16, 0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  backdrop-filter: blur(16px);
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: var(--container-pad);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-muted);
  font-size: 1.5rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.nav-mobile-links a {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  transition: color var(--transition);
}

.nav-mobile-links a:hover { color: var(--clr-purple-light); }

/* ===== RESPONSIVE ======================================= */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-rotating-wrap {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 380px;
    margin-inline: auto;
  }

  .origin-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .groupflow-split {
    grid-template-columns: 1fr;
  }

  .groupflow-col.problem {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }

  .footer-contact-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-contact-cta {
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: unset;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .groupflow-proof {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }

  .proof-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--clr-border);
  }

  .proof-item:last-child {
    border-bottom: none;
  }

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

  .footer-brand {
    grid-column: unset;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mockup-label {
    right: 0;
    bottom: -20px;
  }
}

/* Force balanced grids at tablet to avoid asymmetric row breaks */
@media (max-width: 900px) {
  /* 4 team cards: 3+1 at auto-fit → force 2+2 */
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 3 blog cards: 2+1 at auto-fit → force single column */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .groupflow-ctas {
    flex-direction: column;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
  }
}
