/* ============================================================
   Agento — Landing Site Stylesheet
   Design tokens: The Precision Architect
   ============================================================ */

:root {
  --primary: #006b5f;
  --primary-container: #00a896;
  --primary-fixed: #79f7e3;
  --primary-fixed-dim: #59dbc7;
  --on-primary: #ffffff;
  --on-primary-container: #00352e;

  --secondary: #00639a;
  --secondary-container: #51b2fe;
  --secondary-fixed: #cee5ff;
  --on-secondary: #ffffff;
  --on-secondary-fixed-variant: #004a75;

  --background: #f8fafb;
  --surface: #f8fafb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f5;
  --surface-container: #eceeef;
  --surface-container-high: #e6e8e9;
  --surface-container-highest: #e1e3e4;

  --on-surface: #191c1d;
  --on-surface-variant: #3c4946;
  --outline: #6c7a76;
  --outline-variant: #bbcac5;

  --error: #ba1a1a;
  --error-container: #ffdad6;

  --radius-md: 0.375rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;

  --shadow-ambient: 0 4px 20px rgba(0, 107, 95, 0.04);
  --shadow-lift: 0 10px 40px rgba(0, 107, 95, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 107, 95, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', 'Assistant', 'Inter', sans-serif;
  color: var(--on-surface);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

/* ---------- Reusable containers ---------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(187, 202, 197, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.25;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-container));
  color: var(--on-primary);
  box-shadow: 0 6px 20px rgba(0, 107, 95, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(0, 107, 95, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-container-highest);
  color: var(--on-surface);
}

.btn-secondary:hover {
  background: var(--surface-container-high);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--surface-container-low);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
  padding: 1rem 2rem;
}

.btn-dark {
  background: var(--on-surface);
  color: var(--on-primary);
}

.btn-dark:hover {
  background: #000;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--on-surface);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface-container-lowest);
    border-top: 1px solid var(--outline-variant);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open {
    max-height: 500px;
  }
  .nav-links a {
    padding: 0.9rem 2rem;
    width: 100%;
    text-align: start;
  }
  .nav-links a.active::after { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(89, 219, 199, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(0, 99, 154, 0.12) 0%, transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--secondary-fixed);
  color: var(--on-secondary-fixed-variant);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p.lead {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-visual .blob {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero-visual .blob-1 {
  background: rgba(0, 168, 150, 0.18);
  top: -10%;
  right: -10%;
}

.hero-visual .blob-2 {
  background: rgba(0, 99, 154, 0.15);
  bottom: -5%;
  left: -10%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(187, 202, 197, 0.20);
  border-radius: var(--radius-4xl);
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.dashboard-mock {
  width: 100%;
  border-radius: calc(var(--radius-4xl) - 0.5rem);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #1a3d38 0%, #08201d 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.dashboard-mock .mock-topbar {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
}

.dashboard-mock .mock-topbar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-mock .mock-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
  height: calc(100% - 28px);
}

.dashboard-mock .mock-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

.dashboard-mock .mock-bars {
  padding: 0.75rem;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 100%;
}

.dashboard-mock .mock-bars i {
  flex: 1;
  background: linear-gradient(180deg, #59dbc7, #00a896);
  border-radius: 3px;
  min-height: 8px;
  animation: barGrow 1.8s ease-out both;
  transform-origin: bottom;
}

@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.dashboard-mock .mock-bars i:nth-child(1) { --h: 38%; height: 38%; animation-delay: 0.05s; }
.dashboard-mock .mock-bars i:nth-child(2) { --h: 72%; height: 72%; animation-delay: 0.12s; }
.dashboard-mock .mock-bars i:nth-child(3) { --h: 50%; height: 50%; animation-delay: 0.19s; }
.dashboard-mock .mock-bars i:nth-child(4) { --h: 88%; height: 88%; animation-delay: 0.26s; }
.dashboard-mock .mock-bars i:nth-child(5) { --h: 66%; height: 66%; animation-delay: 0.33s; }
.dashboard-mock .mock-bars i:nth-child(6) { --h: 92%; height: 92%; animation-delay: 0.40s; }
.dashboard-mock .mock-bars i:nth-child(7) { --h: 78%; height: 78%; animation-delay: 0.47s; }

.stat-chip {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lift);
  border-inline-start: 4px solid var(--secondary);
  max-width: 220px;
  z-index: 2;
}

.stat-chip small {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.stat-chip .num {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1;
}

.stat-chip .hint {
  display: block;
  font-size: 0.7rem;
  color: var(--on-surface-variant);
  margin-top: 0.5rem;
}

/* ---------- Section headings ---------- */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--on-surface-variant);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Bento preview grid (homepage) ---------- */

.bento-wrap {
  background: var(--surface-container-low);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
  }
  .bento-8 { grid-column: span 8; }
  .bento-4 { grid-column: span 4; }
}

.bento {
  border-radius: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-ambient);
}

.bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.bento.bento-white { background: var(--surface-container-lowest); }
.bento.bento-primary { background: var(--primary); color: var(--on-primary); }
.bento.bento-high { background: var(--surface-container-high); }
.bento.bento-accent {
  background: var(--surface-container-lowest);
  border-inline-end: 4px solid var(--primary-fixed-dim);
}

.bento h3 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.bento.bento-primary h3 { color: #fff; }

.bento p {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.bento.bento-primary p { color: rgba(255, 255, 255, 0.82); }

.bento .icon {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.bento.bento-primary .icon { color: var(--primary-fixed); }

.bento .big-icon {
  position: absolute;
  inset-inline-start: -1.5rem;
  bottom: -2.5rem;
  font-size: 13rem;
  line-height: 1;
  opacity: 0.06;
  pointer-events: none;
}

.bento .metric-mini {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.bento .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.bento .metric-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.bento .metric-fill {
  height: 100%;
  background: var(--primary-fixed);
  border-radius: 999px;
  width: 0;
  animation: fill 1.8s ease-out 0.4s forwards;
}

@keyframes fill { to { width: 75%; } }

.bento .lock-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

.bento .lock-hero .lock-icon {
  font-size: 8rem;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.bento .lock-hero::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 107, 95, 0.15);
  filter: blur(30px);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.1); opacity: 0.8; }
}

.bento-split {
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

.bento-split > div:first-child { flex: 1; }
.bento-split > div:last-child { flex: 1; display: none; }

@media (min-width: 900px) {
  .bento-split > div:last-child { display: block; }
}

/* ---------- Flip cards (features page) ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.flip-card {
  perspective: 1400px;
  min-height: 230px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 230px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner,
.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

html[dir="rtl"] .flip-card:hover .flip-inner,
html[dir="rtl"] .flip-card:focus-within .flip-inner,
html[dir="rtl"] .flip-card.is-flipped .flip-inner {
  transform: rotateY(-180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(187, 202, 197, 0.12);
  border-inline-start: 4px solid var(--secondary);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-ambient);
}

.flip-back {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  border-inline-start-color: var(--primary-fixed);
  transform: rotateY(180deg);
}

html[dir="rtl"] .flip-back {
  transform: rotateY(-180deg);
}

.flip-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.flip-back .flip-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.flip-title {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.flip-summary {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.55;
}

.flip-back .flip-title { color: #fff; }
.flip-back .flip-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.flip-hint {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--outline);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flip-back .flip-hint { color: rgba(255, 255, 255, 0.75); }

/* ---------- Marquee text (animated horizontal scroll inside container) ---------- */

.marquee {
  overflow: hidden;
  background: var(--on-surface);
  color: var(--on-primary);
  padding: 0.9rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  gap: 3rem;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-fixed-dim);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ---------- Contact section ---------- */

.contact-card {
  background: var(--surface-container-lowest);
  border-radius: 3rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 960px) {
  .contact-card {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-left {
  background: linear-gradient(135deg, var(--primary) 0%, #004a43 100%);
  color: var(--on-primary);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.contact-left::before {
  content: '';
  position: absolute;
  inset: -50% 0 0 -30%;
  background:
    radial-gradient(circle at 70% 30%, rgba(89, 219, 199, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(81, 178, 254, 0.18) 0%, transparent 60%);
}

.contact-left > * { position: relative; z-index: 1; }

.contact-left h3 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-left > p {
  color: rgba(121, 247, 227, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info .row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info small { opacity: 0.7; display: block; font-size: 0.8rem; }
.contact-info strong { display: block; font-weight: 700; }

.contact-right {
  padding: 3.5rem 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-right, .contact-left { padding: 2.5rem 1.5rem; }
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  margin-bottom: 0.4rem;
  padding-inline-start: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-container-low);
  font-family: inherit;
  font-size: 1rem;
  color: var(--on-surface);
  transition: all 0.18s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(0, 107, 95, 0.18);
}

.form-field.has-error input,
.form-field.has-error textarea {
  background: var(--error-container);
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.2);
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
}

.form-status.success { color: var(--primary); }
.form-status.error { color: var(--error); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-container-low);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: span 2; }
}

.footer-brand p {
  color: var(--outline);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 320px;
}

.site-footer h4 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--on-surface);
}

.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a {
  color: var(--outline);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--primary); }

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--outline);
  transition: all 0.2s;
  text-decoration: none;
}

.socials a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(187, 202, 197, 0.2);
  text-align: center;
  color: var(--outline);
  font-size: 0.8rem;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Modal (demo / privacy / etc) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 28, 29, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface-container-lowest);
  border-radius: 1.5rem;
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}

.modal h3 {
  font-family: 'Manrope', 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.modal p {
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal .close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: var(--surface-container-low);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal .close:hover { background: var(--surface-container-high); }

/* ---------- Features page - login sidekick ---------- */

.split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-hero { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utility ---------- */

.text-primary { color: var(--primary); }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px 1px 1px 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Accessible focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 168, 150, 0.5);
  outline-offset: 2px;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .flip-card:hover .flip-inner,
  .flip-card:focus-within .flip-inner { transform: none; }
}
