/* ==========================================================================
   Crew01 — Enterprise SaaS Design System (Clean, Wide, Professional)
   ========================================================================== */

:root {
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
    --primary: #16312c;
  --primary-hover: #16231f;
  --primary-light: #f7f8f5;
  --primary-border: #dce3dd;
  
  --accent: #0b6b5d;
  --accent-light: #dff0eb;
  
  --bg-dark: #16312c;
  --bg-subtle: #f3f5f1;
  --surface: #ffffff;
  --surface-border: #dce3dd;
  
  --text-main: #16231f;
  --text-muted: #44534e;
  --text-subtle: #687771;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  
  --max-width-container: 1440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Announcement */
.top-announcement {
  background-color: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-announcement strong {
  color: #a7ded2;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.nav-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.brand-icon {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

.btn-subtle {
  background: transparent;
  color: var(--text-muted);
}

.btn-subtle:hover {
  color: var(--text-main);
}

.btn-large {
  padding: 14px 32px;
  font-size: 15.5px;
}

.btn-full {
  width: 100%;
  padding: 14px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 32px 80px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-pill svg { width: 16px; height: 16px; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 24px;
}

.highlight-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.metric-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* Simulator Section */
.simulator-section {
  padding: 100px 32px;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.perspective-switch {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.simulator-grid {
  display: grid;
  grid-template-columns: minmax(400px, 480px) 1fr;
  gap: 64px;
  align-items: center;
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.flow-card:hover {
  border-color: var(--text-subtle);
  transform: translateX(4px);
}

.flow-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.flow-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.flow-card-head h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
}

.flow-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Realistic Phone Mockup */
.phone-wrapper {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 400px;
  height: 700px;
  background: #16312c;
  border: 12px solid #16231f;
  border-radius: 48px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.iphone-notch {
  width: 150px;
  height: 26px;
  background: #16231f;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.wa-app-header {
  background: #0b6b5d;
  color: white;
  padding: 38px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #005c4b;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #25d366;
}

.wa-contact-name {
  font-weight: 700;
  font-size: 15px;
}

.wa-contact-status {
  font-size: 12px;
  color: #a7ded2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
}

.wa-chat-scroll {
  flex: 1;
  background: #f3f5f1;
  background-image: radial-gradient(#dce3dd 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  animation: fadeIn 0.3s ease;
}

.wa-bubble-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 4px;
}

.wa-cta-btn {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #7fd4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Native WhatsApp Flow bottom sheet — a real Meta WhatsApp Flow opens as a
   sliding in-chat form, not chat bubbles. This mirrors that mechanic. */
.wa-flow-sheet {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 78%;
  background: #f7f8f5;
  color: #16231f;
  border-radius: 16px;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  transform: translateY(112%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-flow-sheet.is-open {
  transform: translateY(0);
}

.wa-flow-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.wa-flow-dots {
  display: flex;
  gap: 5px;
}

.wa-flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d8d3;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-flow-dot.is-active {
  background: #0b6b5d;
  transform: scale(1.3);
}

.wa-flow-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.wa-flow-screen {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.wa-flow-screen.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wa-flow-heading {
  font-weight: 700;
  font-size: 15px;
}

.wa-flow-summary {
  font-size: 13px;
  color: #52625c;
  margin-top: -4px;
}

.wa-flow-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-flow-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #687771;
}

.wa-flow-select,
.wa-flow-input {
  background: #ffffff;
  border: 1px solid #d4d8d3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wa-flow-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  color: #f0b429;
}

.wa-flow-footer-btn {
  margin-top: auto;
  background: #e9edef;
  color: #16231f;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.wa-flow-footer-btn-confirm {
  background: #0b6b5d;
  color: #ffffff;
}

.wa-bubble.in {
  background: #0b6b5d;
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.wa-bubble.out {
  background: #d7ded7;
  color: #16231f;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.wa-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.wa-pill-btn {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid #25d366;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.wa-footer-bar {
  background: #f7f8f5;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #687771;
}

.wa-input-pill {
  flex: 1;
  min-width: 0;
  background: #eef2ed;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 14px;
  color: #687771;
  overflow: hidden;
}

#owner-typer {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Capabilities */
.capabilities-section {
  padding: 100px 32px;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.cap-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cap-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.cap-icon-box svg { width: 24px; height: 24px; }

.cap-icon-box.teal { background: #f1f5f9; color: #0f172a; }
.cap-icon-box.blue { background: #f1f5f9; color: #0f172a; }
.cap-icon-box.purple { background: #f1f5f9; color: #0f172a; }
.cap-icon-box.amber { background: #f1f5f9; color: #0f172a; }
.cap-icon-box.green { background: #f1f5f9; color: #0f172a; }
.cap-icon-box.slate { background: #f1f5f9; color: #0f172a; }

.cap-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cap-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.cap-benefit {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

/* Calculator */
.calculator-section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.calc-box {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  box-shadow: var(--shadow-lg);
}

.slider-group {
  margin-top: 32px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.slider-header strong {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.calc-results-card {
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}

.result-sub {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 500;
}

/* Industries */
.industries-section {
  padding: 100px 32px;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.industry-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ind-icon {
  margin-bottom: 16px;
  color: var(--primary);
}
.ind-icon svg { width: 32px; height: 32px; }

.industry-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Final CTA */
.final-cta-section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-card {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 18px;
  color: var(--text-subtle);
  max-width: 680px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-card .btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.cta-card .btn-primary:hover {
  background: var(--bg-subtle);
}

.cta-card .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.cta-card .btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  background: #ffffff;
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width-container);
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-icon-small {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand strong {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.footer-brand p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
  border-top: 1px solid var(--surface-border);
  padding-top: 32px;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .simulator-grid { grid-template-columns: 1fr; }
  .calc-box { grid-template-columns: 1fr; }
  .nav-links { display: none; }

  /* Below the desktop breakpoint the scenario list and the phone stack
     vertically. Turning the scenario cards into a wrapping row of compact
     tabs (instead of a tall vertical stack) keeps both the capability
     picker and the phone demo visible together without a long scroll —
     it wraps onto additional rows on its own if a row runs out of space. */
  .simulator-section { padding: 32px 16px; }
  .section-header { margin-bottom: 16px; }
  .section-header h2 { font-size: 24px; margin-bottom: 6px; }
  .section-header p { font-size: 14px; }
  .perspective-switch { margin-bottom: 12px; gap: 8px; }
  .tab-btn { padding: 9px 16px; font-size: 13px; }

  .simulator-grid { gap: 12px; }

  .scenarios-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
  }

  .flow-card {
    flex: 0 1 auto;
    padding: 9px 14px;
    border-radius: 999px;
  }

  .flow-card:hover { transform: none; }

  .flow-card-head { margin-bottom: 0; gap: 6px; }
  .flow-card-head h4 { font-size: 13px; white-space: nowrap; }
  .flow-card-head svg { width: 15px; height: 15px; }

  /* The description paragraph is what made each card tall; tabs only need
     the icon + title to stay identifiable at a glance. */
  .flow-card p { display: none; }

  .iphone-frame { width: 260px; height: 460px; border-width: 8px; border-radius: 32px; }
  .iphone-notch { width: 100px; height: 18px; }

  /* The capabilities grid below the simulator forced a 360px minimum card
     width regardless of viewport, which overflowed a phone screen
     horizontally (the actual bug behind the reported "using phone" issue). */
  .capabilities-section { padding: 48px 16px; }
  .capabilities-grid { grid-template-columns: 1fr; gap: 16px; }
  .cap-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .simulator-section { padding: 24px 12px; }
  .flow-card { padding: 8px 12px; }
  .flow-card-head h4 { font-size: 12px; }
  .iphone-frame { width: 230px; height: 410px; }
  .iphone-notch { width: 90px; height: 16px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0; }
}


/* Reconstructed CSS for the word rotator and logo changes */
.brand-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 20px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.8;
}

.hero-pill {
  margin-top: 32px;
  margin-bottom: 0;
}

.word-rotator {
  display: inline-flex;
  align-items: flex-start;
  overflow: hidden;
  height: 1.3em;
  vertical-align: text-bottom;
  color: var(--accent);
}

.word-rotator-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: word-rotate 9s infinite cubic-bezier(0.25, 1, 0.3, 1);
}

.word-rotator-item {
  height: 1.3em;
  line-height: 1.3em;
  display: block;
  white-space: nowrap;
}

@keyframes word-rotate {
  0%, 10% { transform: translateY(0); }
  16.66%, 26.66% { transform: translateY(calc(-100% * 1 / 7)); }
  33.33%, 43.33% { transform: translateY(calc(-100% * 2 / 7)); }
  50%, 60% { transform: translateY(calc(-100% * 3 / 7)); }
  66.66%, 76.66% { transform: translateY(calc(-100% * 4 / 7)); }
  83.33%, 93.33% { transform: translateY(calc(-100% * 5 / 7)); }
  100% { transform: translateY(calc(-100% * 6 / 7)); }
}

@media (prefers-reduced-motion: reduce) {
  .word-rotator-inner {
    animation: none;
  }
}
