/* ==========================================================================
   Renkara Media Group — Corporate Website Stylesheet
   https://renkara.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* ---- Primary Colors ---- */
  --renkara-navy:    #1B2A4A;
  --renkara-blue:    #2E6B9E;
  --renkara-slate:   #5A6577;

  /* ---- Extended Palette ---- */
  --cloud-white:     #F8FAFC;
  --mist:            #E2E8F0;
  --steel:           #94A3B8;
  --ink:             #0F172A;

  /* ---- Product Accents ---- */
  --accent-accelastudy:       #059669;
  --accent-accelastudy-light: #D1FAE5;
  --accent-infinite:          #2E6B9E;
  --accent-infinite-light:    #DBEAFE;
  --accent-fulcrum:           #4F46E5;
  --accent-fulcrum-light:     #E0E7FF;
  --accent-docket:            #D97706;
  --accent-docket-light:      #FEF3C7;
  --accent-beacon:            #0D9488;
  --accent-beacon-light:      #CCFBF1;
  --accent-herald:            #7C3AED;
  --accent-herald-light:      #EDE9FE;
  --accent-static:            #E11D48;
  --accent-static-light:      #FFE4E6;
  --accent-meridian:          #0EA5E9;
  --accent-meridian-light:    #E0F2FE;

  /* Legacy product accent aliases */
  --accelastudy-emerald:       var(--accent-accelastudy);
  --accelastudy-emerald-light: var(--accent-accelastudy-light);
  --docket-amber:              var(--accent-docket);
  --docket-amber-light:        var(--accent-docket-light);
  --fulcrum-indigo:            var(--accent-fulcrum);
  --fulcrum-indigo-light:      var(--accent-fulcrum-light);
  --beacon-teal:               var(--accent-beacon);
  --beacon-teal-light:         var(--accent-beacon-light);
  --herald-purple:             var(--accent-herald);
  --herald-purple-light:       var(--accent-herald-light);
  --infinite-blue:             var(--accent-infinite);
  --infinite-blue-light:       var(--accent-infinite-light);
  --static-rose:               var(--accent-static);
  --static-rose-light:         var(--accent-static-light);
  --meridian-sky:              var(--accent-meridian);
  --meridian-sky-light:        var(--accent-meridian-light);

  /* ---- Gradients ---- */
  --gradient-primary:  linear-gradient(135deg, #1B2A4A, #2E6B9E);
  --gradient-warm:     linear-gradient(135deg, #2E6B9E, #059669);
  --gradient-hero:     linear-gradient(180deg, #0F172A, #1B2A4A);

  /* ---- Semantic Colors (Light Mode — default) ---- */
  --color-bg:            #FFFFFF;
  --color-bg-subtle:     var(--cloud-white);
  --color-bg-card:       #FFFFFF;
  --color-text:          var(--renkara-navy);
  --color-text-primary:  var(--renkara-navy);
  --color-text-secondary: var(--renkara-slate);
  --color-text-muted:    var(--steel);
  --color-link:          var(--renkara-blue);
  --color-link-hover:    #245A85;
  --color-border:        var(--mist);
  --color-divider:       var(--mist);

  /* ---- Typography ---- */
  --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;

  /* Type Scale */
  --text-display:  3rem;      /* 48px */
  --text-h1:       2rem;      /* 32px */
  --text-h2:       1.5rem;    /* 24px */
  --text-h3:       1.25rem;   /* 20px */
  --text-h4:       1rem;      /* 16px */
  --text-body:     0.9375rem; /* 15px */
  --text-small:    0.8125rem; /* 13px */
  --text-caption:  0.75rem;   /* 12px */

  /* Line Heights */
  --lh-display: 1.1;
  --lh-h1:      1.2;
  --lh-h2:      1.3;
  --lh-h3:      1.4;
  --lh-h4:      1.5;
  --lh-body:    1.6;
  --lh-small:   1.5;
  --lh-caption: 1.4;

  /* Font Weights */
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* ---- Spacing (4px grid) ---- */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ---- Border Radius ---- */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* ---- Transitions ---- */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --duration-micro: 150ms;
  --duration-page:  300ms;
  --duration-fast:  150ms;   /* alias */
  --duration-normal: 300ms;  /* alias */

  /* ---- Layout ---- */
  --max-width:     1280px;
  --nav-height:    72px;
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg:            #0F172A;
  --color-bg-subtle:     #1B2A4A;
  --color-bg-card:       #1B2A4A;
  --color-text:          #F0F0F0;
  --color-text-primary:  #F0F0F0;
  --color-text-secondary: #94A3B8;
  --color-text-muted:    #64748B;
  --color-link:          #60A5FA;
  --color-link-hover:    #93C5FD;
  --color-border:        rgba(255, 255, 255, 0.1);
  --color-divider:       rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .section--alt {
  background-color: #1B2A4A;
}

[data-theme="dark"] .nav {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-logo {
  color: #FFFFFF;
}

[data-theme="dark"] .nav-links a {
  color: #CBD5E1;
}

[data-theme="dark"] .nav-links a:hover {
  color: #FFFFFF;
}

[data-theme="dark"] .nav-links a.active {
  color: #FFFFFF;
}

/* Ensure body text is readable in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #FFFFFF;
}

[data-theme="dark"] p,
[data-theme="dark"] li {
  color: #CBD5E1;
}

[data-theme="dark"] .section__eyebrow {
  color: #94A3B8;
}

[data-theme="dark"] .footer {
  background-color: #030712;
}

[data-theme="dark"] .card {
  background-color: var(--color-bg-card);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-card {
  background: var(--color-bg-card);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .stat__number {
  color: #FFFFFF;
}

[data-theme="dark"] .stat__label {
  color: #94A3B8;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color var(--duration-micro) var(--ease),
              background var(--duration-micro) var(--ease),
              border-color var(--duration-micro) var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-color: var(--color-text-muted);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Hide the wrong icon based on theme */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease);
}

a:hover {
  color: var(--color-link-hover);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--renkara-blue);
  color: #FFFFFF;
}

main {
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
}

h4, .h4 {
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h4);
}

.display {
  font-size: var(--text-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
}

.text-small,
.small {
  font-size: var(--text-small);
  line-height: var(--lh-small);
}

.text-caption,
.caption {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  line-height: var(--lh-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-white {
  color: #FFFFFF;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--fw-semibold);
}

code, .code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--renkara-navy);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  background-color: var(--ink);
  color: var(--mist);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  line-height: 1.7;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Registered trademark superscript */
.registered {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--renkara-blue);
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--subtle,
.section--alt {
  background-color: var(--color-bg-subtle);
}

.section--white {
  background-color: var(--color-bg);
}

.section--navy,
.section--dark {
  background-color: var(--renkara-navy);
  color: #FFFFFF;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #FFFFFF;
}

.section--navy p,
.section--dark p {
  color: var(--mist);
}

.section--navy .text-secondary,
.section--dark .text-secondary {
  color: var(--steel);
}

.section--gradient {
  background: var(--gradient-primary);
  color: #FFFFFF;
}

.section--gradient h1,
.section--gradient h2,
.section--gradient h3,
.section--gradient h4 {
  color: #FFFFFF;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--gap-sm {
  gap: var(--space-sm);
}

.flex--gap-md {
  gap: var(--space-md);
}

.flex--gap-lg {
  gap: var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spacing utilities */
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav__inner,
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo,
.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
  color: var(--renkara-navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--duration-micro) var(--ease);
}

.nav__logo:hover,
.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo .registered {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--renkara-blue);
}

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

/* Group nav links + theme toggle together */
.nav__right,
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link,
.nav-links a {
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  color: var(--renkara-slate);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-micro) var(--ease);
}

.nav__link::after,
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--renkara-blue);
  transition: width var(--duration-micro) var(--ease);
}

.nav__link:hover,
.nav__link--active,
.nav-links a:hover,
.nav-links a.active {
  color: var(--renkara-navy);
}

.nav__link:hover::after,
.nav__link--active::after,
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-md);
}

/* Hamburger — new markup */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--renkara-navy);
  border-radius: 1px;
  transition: transform var(--duration-micro) var(--ease),
              opacity var(--duration-micro) var(--ease);
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hamburger — legacy markup */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--renkara-navy);
  cursor: pointer;
  padding: var(--space-sm);
}

/* Mobile Menu — new markup */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-2xl) var(--space-lg);
  z-index: 999;
}

.nav__mobile--open {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fadeSlideDown var(--duration-page) var(--ease);
}

.nav__mobile .nav__link {
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  display: block;
  padding: var(--space-sm) 0;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

/* Product detail heroes inherit hero sizing */
.product-detail-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  color: #FFFFFF;
}

.product-detail-hero h1,
.product-detail-hero .display {
  color: #FFFFFF;
}

.product-detail-hero p {
  color: rgba(255, 255, 255, 0.8);
}

.product-detail-hero .section__eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.product-detail-hero > *:not(.mesh-gradient-canvas) {
  position: relative;
  z-index: 1;
}

/* Dark mode hero (default for gradient heroes) */
[data-theme="dark"] .hero--gradient,
.hero--gradient {
  background: #0F172A;
  color: #FFFFFF;
}

[data-theme="dark"] .hero--gradient h1,
[data-theme="dark"] .hero--gradient h2,
[data-theme="dark"] .hero--gradient .display,
.hero--gradient h1,
.hero--gradient h2,
.hero--gradient .display {
  color: #FFFFFF;
}

[data-theme="dark"] .hero--gradient p,
[data-theme="dark"] .hero--gradient .text-secondary,
.hero--gradient p,
.hero--gradient .text-secondary {
  color: var(--steel);
}

/* Light mode hero — dark text on light particle background */
:root:not([data-theme="dark"]) .hero--gradient {
  background: #D6E4F0; /* Soft blue-gray, matches Three.js light mode clear color */
  color: var(--renkara-navy);
}

:root:not([data-theme="dark"]) .hero--gradient h1,
:root:not([data-theme="dark"]) .hero--gradient h2,
:root:not([data-theme="dark"]) .hero--gradient .display {
  color: var(--renkara-navy);
}

:root:not([data-theme="dark"]) .hero--gradient p,
:root:not([data-theme="dark"]) .hero--gradient .text-secondary {
  color: var(--renkara-slate);
}

:root:not([data-theme="dark"]) .hero--gradient .btn--primary {
  background: var(--renkara-blue);
  color: #FFFFFF;
}

:root:not([data-theme="dark"]) .hero--gradient .btn--outline-white {
  color: var(--renkara-navy);
  border-color: var(--renkara-navy);
}

:root:not([data-theme="dark"]) .hero--gradient .btn--outline-white:hover {
  background: var(--renkara-navy);
  color: #FFFFFF;
}

.hero--home {
  min-height: 100vh;
  text-align: center;
}

/* Three.js canvas */
.mesh-gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero--gradient > *:not(.mesh-gradient-canvas) {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.hero--light {
  background: var(--cloud-white);
}

.hero--centered {
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero--centered .hero__content,
.hero--home .hero__content {
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--renkara-blue);
  margin-bottom: var(--space-md);
}

.hero--gradient .hero__eyebrow {
  color: var(--steel);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero .display {
  margin-bottom: var(--space-lg);
}

.hero__tagline,
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: var(--lh-h3);
  color: var(--renkara-slate);
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero--centered .hero__tagline,
.hero--centered .hero__subtitle,
.hero--home .hero__tagline,
.hero--home .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero--gradient .hero__tagline,
.hero--gradient .hero__subtitle {
  color: var(--steel);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero--centered .hero__actions,
.hero--home .hero__actions {
  justify-content: center;
}

/* Background decorative elements */
.hero__bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 30% 40%, var(--renkara-blue) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, var(--renkara-blue) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero--gradient .hero__bg-pattern {
  opacity: 0.08;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  line-height: 1;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-micro) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--renkara-blue);
  color: #FFFFFF;
  border-color: var(--renkara-blue);
}

.btn--primary:hover {
  background-color: #245A85;
  border-color: #245A85;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--secondary,
.btn--outline {
  background-color: transparent;
  color: var(--renkara-blue);
  border-color: var(--renkara-blue);
}

.btn--secondary:hover,
.btn--outline:hover {
  background-color: var(--renkara-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary:active,
.btn--outline:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--white {
  background-color: #FFFFFF;
  color: var(--renkara-navy);
  border-color: #FFFFFF;
}

.btn--white:hover {
  background-color: var(--cloud-white);
  border-color: var(--cloud-white);
  color: var(--renkara-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost,
.btn--outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover,
.btn--outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--sm {
  font-size: var(--text-small);
  padding: 8px 16px;
}

.btn--lg {
  font-size: var(--text-h4);
  padding: 16px 32px;
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--flat {
  border: none;
  background-color: var(--color-bg-subtle);
}

.card--flat:hover {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card__accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

/* Card color variants — new naming */
.card__icon--blue   { background-color: var(--accent-infinite-light); color: var(--renkara-blue); }
.card__icon--emerald { background-color: var(--accent-accelastudy-light); color: var(--accent-accelastudy); }
.card__icon--indigo  { background-color: var(--accent-fulcrum-light); color: var(--accent-fulcrum); }
.card__icon--amber   { background-color: var(--accent-docket-light); color: var(--accent-docket); }
.card__icon--teal    { background-color: var(--accent-beacon-light); color: var(--accent-beacon); }
.card__icon--purple  { background-color: var(--accent-herald-light); color: var(--accent-herald); }

/* Card color variants — legacy class naming */
.card--emerald .card__accent,
.card--emerald .card__icon { background: var(--accent-accelastudy-light); color: var(--accent-accelastudy); }
.card--amber .card__accent,
.card--amber .card__icon { background: var(--accent-docket-light); color: var(--accent-docket); }
.card--indigo .card__accent,
.card--indigo .card__icon { background: var(--accent-fulcrum-light); color: var(--accent-fulcrum); }
.card--teal .card__accent,
.card--teal .card__icon { background: var(--accent-beacon-light); color: var(--accent-beacon); }
.card--purple .card__accent,
.card--purple .card__icon { background: var(--accent-herald-light); color: var(--accent-herald); }
.card--blue .card__accent,
.card--blue .card__icon { background: var(--accent-infinite-light); color: var(--accent-infinite); }
.card--rose .card__accent,
.card--rose .card__icon { background: var(--accent-static-light); color: var(--accent-static); }
.card--sky .card__accent,
.card--sky .card__icon { background: var(--accent-meridian-light); color: var(--accent-meridian); }

.card__title {
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.card__text,
.card__description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  flex: 1;
}

.card__tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--renkara-blue);
  margin-bottom: var(--space-sm);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  color: var(--renkara-blue);
  margin-top: var(--space-md);
  transition: gap var(--duration-micro) var(--ease);
}

.card__link:hover {
  gap: var(--space-sm);
}

.card__link::after {
  content: '\2192';
}

/* Link arrow utility */
.link-arrow {
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.link-arrow::after {
  content: '\2192';
  transition: transform var(--duration-micro) var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9. Product Cards (larger variant for Products page)
   -------------------------------------------------------------------------- */
.product-hero {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  margin-bottom: var(--space-lg);
  transition: transform var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease);
}

.product-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-hero__eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.product-hero h3 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.product-hero p {
  color: var(--renkara-slate);
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease),
              border-color var(--duration-micro) var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__accent {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.product-card__name {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.product-card__tagline {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.product-card__description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-lg);
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.product-card__feature::before {
  content: '\2713';
  flex-shrink: 0;
  font-weight: var(--fw-bold);
  color: var(--accent-accelastudy);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   10. Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--blue {
  background-color: rgba(46, 107, 158, 0.1);
  color: var(--renkara-blue);
}

.badge--emerald {
  background-color: var(--accent-accelastudy-light);
  color: var(--accent-accelastudy);
}

.badge--navy {
  background-color: rgba(27, 42, 74, 0.1);
  color: var(--renkara-navy);
}

.badge--steel {
  background-color: rgba(148, 163, 184, 0.15);
  color: var(--renkara-slate);
}

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.stat {
  text-align: center;
  padding: var(--space-lg);
}

.stat__number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--renkara-blue);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  color: var(--renkara-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section--navy .stat__number,
.section--dark .stat__number,
.section--gradient .stat__number {
  color: #FFFFFF;
}

.section--navy .stat__label,
.section--dark .stat__label,
.section--gradient .stat__label {
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   12. Feature List
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  gap: var(--space-2xl);
}

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

.feature__number {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--renkara-blue);
  letter-spacing: 0.05em;
}

.feature__title {
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
}

.feature__text {
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

/* ---- Product Card Footer (link + badge row) ----------------------- */

/* ---- Legacy App Icon ---------------------------------------------- */

.card__app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

/* ---- Article Hero (blog posts) ------------------------------------ */

.article-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  color: #FFFFFF;
}

.article-hero > *:not(.mesh-gradient-canvas) {
  position: relative;
  z-index: 1;
}

.article-hero h1,
.article-hero .display {
  color: #FFFFFF;
}

.article-hero p,
.article-hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.article-hero__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.article-hero__meta {
  margin-bottom: var(--space-md);
}

/* ---- Author Bio --------------------------------------------------- */

.author-bio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  max-width: 720px;
}

.author-bio__name {
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary, var(--color-text));
  margin-bottom: 2px;
}

.author-bio__role {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.author-bio__links {
  display: flex;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .author-bio {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Card Footer -------------------------------------------------- */

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: var(--space-sm);
  width: 100%;
}

.card__footer .link-arrow {
  flex-shrink: 1;
  min-width: 0;
}

.card__footer .product-badge {
  margin-left: auto;
}

.product-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Breadcrumbs -------------------------------------------------- */

.breadcrumbs {
  padding: calc(var(--nav-height, 72px) + var(--space-md, 16px)) var(--space-lg, 24px) 0;
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  font-size: var(--text-caption, 0.75rem);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  z-index: 2;
}

.breadcrumbs a {
  color: var(--color-text-muted, var(--steel, #94A3B8));
  text-decoration: none;
  font-weight: var(--fw-medium, 500);
}

.breadcrumbs a:hover {
  color: var(--color-link, var(--renkara-blue, #2E6B9E));
}

.breadcrumbs .sep {
  color: var(--color-text-muted, var(--steel, #94A3B8));
  user-select: none;
}

.breadcrumbs .current {
  color: var(--color-text-secondary, var(--renkara-slate, #5A6577));
  font-weight: var(--fw-semibold, 600);
}

/* On hero pages, breadcrumbs overlay the hero */
.hero + .breadcrumbs,
.product-detail-hero + .breadcrumbs,
.article-hero + .breadcrumbs {
  display: none; /* hide when hero is present — breadcrumbs go inside hero instead */
}

/* Breadcrumbs inside hero sections */
.hero .breadcrumbs,
.product-detail-hero .breadcrumbs,
.article-hero .breadcrumbs {
  padding: 0;
  margin-bottom: var(--space-md, 16px);
}

.hero .breadcrumbs a,
.product-detail-hero .breadcrumbs a,
.article-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
}

.hero .breadcrumbs a:hover,
.product-detail-hero .breadcrumbs a:hover,
.article-hero .breadcrumbs a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero .breadcrumbs .sep,
.product-detail-hero .breadcrumbs .sep,
.article-hero .breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.4);
}

.hero .breadcrumbs .current,
.product-detail-hero .breadcrumbs .current,
.article-hero .breadcrumbs .current {
  color: rgba(255, 255, 255, 0.8);
}

/* Light mode hero breadcrumbs */
:root:not([data-theme="dark"]) .hero .breadcrumbs a {
  color: var(--color-text-muted, #94A3B8);
}

:root:not([data-theme="dark"]) .hero .breadcrumbs .current {
  color: var(--color-text-secondary, #5A6577);
}

/* ---- Video Caption ------------------------------------------------ */

.video-caption {
  text-align: center;
  font-size: var(--text-small, 0.8125rem);
  color: var(--color-text-muted, var(--steel, #94A3B8));
  margin-top: var(--space-md, 16px);
  font-style: italic;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Screenshot Placeholder --------------------------------------- */

.screenshot-placeholder {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle, var(--cloud-white));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, var(--steel));
  font-size: var(--text-small);
  overflow: hidden;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="dark"] .screenshot-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Replaces Banner ---------------------------------------------- */

.replaces-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.replaces-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle, var(--cloud-white));
  border: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.replaces-banner__label {
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted, var(--steel));
  text-transform: uppercase;
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
}

.replaces-banner__names {
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary, var(--color-text));
}

.replaces-banner__names a {
  color: var(--color-link, var(--renkara-blue));
  text-decoration: none;
  font-weight: var(--fw-bold);
}

.replaces-banner__names a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .replaces-banner {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---- Feature Card Grid (animated) --------------------------------- */

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

@media (min-width: 640px) {
  .feature-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  overflow: hidden;
  transition: transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
  /* Scroll animation initial state */
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--feature-accent, var(--renkara-blue));
}

/* Top accent bar */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--feature-accent, var(--renkara-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Number badge */
.feature-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--feature-accent-light, var(--mist));
  color: var(--feature-accent, var(--renkara-blue));
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.feature-card:hover .feature-card__number {
  background: var(--feature-accent, var(--renkara-blue));
  color: #FFFFFF;
}

.feature-card__title {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.feature-card__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  margin: 0;
}

/* Staggered entrance — each card delays based on position */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 60ms; }
.feature-card:nth-child(3) { transition-delay: 120ms; }
.feature-card:nth-child(4) { transition-delay: 180ms; }
.feature-card:nth-child(5) { transition-delay: 240ms; }
.feature-card:nth-child(6) { transition-delay: 300ms; }
.feature-card:nth-child(7) { transition-delay: 360ms; }
.feature-card:nth-child(8) { transition-delay: 420ms; }
.feature-card:nth-child(9) { transition-delay: 480ms; }
.feature-card:nth-child(10) { transition-delay: 540ms; }
.feature-card:nth-child(11) { transition-delay: 600ms; }
.feature-card:nth-child(12) { transition-delay: 660ms; }
.feature-card:nth-child(n+13) { transition-delay: 700ms; }

/* feature-card dark mode handled by [data-theme="dark"] .feature-card above */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-card {
    opacity: 1;
    transform: none;
    transition-delay: 0ms !important;
  }
  .feature-card::before {
    transform: scaleX(1);
  }
}

/* ---- Flowchart Steps ----------------------------------------------- */

.flowchart {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: var(--space-xl) 0;
}

.flowchart__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

/* Connecting arrow between steps */
.flowchart__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -2px;
  width: calc(100% - 56px);
  height: 2px;
  left: calc(50% + 28px);
  background: var(--flow-accent, var(--renkara-blue));
  opacity: 0.3;
}

/* Arrowhead on the line */
.flowchart__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -6px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--flow-accent, var(--renkara-blue));
  border-bottom: 2px solid var(--flow-accent, var(--renkara-blue));
  transform: rotate(-45deg);
  opacity: 0.4;
  z-index: 1;
}

.flowchart__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  background: var(--flow-accent, var(--renkara-blue));
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.flowchart__step:hover .flowchart__icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.flowchart__title {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.flowchart__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
  max-width: 220px;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .hero-device-image {
    display: none !important;
  }

  .flowchart {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .flowchart__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 0;
  }

  .flowchart__step:not(:last-child)::after {
    top: 56px;
    left: 28px;
    right: auto;
    width: 2px;
    height: calc(100% + var(--space-lg) - 56px);
  }

  .flowchart__step:not(:last-child)::before {
    display: none;
  }

  .flowchart__desc {
    max-width: none;
  }
}

/* ---- Spec Card Grid ------------------------------------------------ */

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

@media (min-width: 640px) {
  .spec-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.spec-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-card__title {
  font-size: var(--text-body);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--spec-accent, var(--renkara-blue));
}

.spec-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-card li {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-divider);
  line-height: 1.5;
}

.spec-card li:last-child {
  border-bottom: none;
}

/* Subtle bullet */
.spec-card li::before {
  content: '\2022';
  color: var(--spec-accent, var(--renkara-blue));
  font-weight: bold;
  margin-right: var(--space-sm);
}

/* --------------------------------------------------------------------------
   13. Section Headers
   -------------------------------------------------------------------------- */
.section-header,
.section__header {
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}

.section-header--center,
.section__header {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__eyebrow,
.section__eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--renkara-blue);
  margin-bottom: var(--space-sm);
}

.section-header__title,
.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h1);
  margin-bottom: var(--space-md);
}

.section-header__description,
.section__header p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

.section--navy .section-header__eyebrow,
.section--navy .section__eyebrow,
.section--gradient .section-header__eyebrow {
  color: var(--steel);
}

.section--navy .section-header__description,
.section--gradient .section-header__description {
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer a {
  color: var(--steel);
  font-size: 0.875rem;
  transition: color var(--duration-micro) var(--ease);
}

.footer a:hover {
  color: #FFFFFF;
}

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

@media (min-width: 480px) {
  /* footer grid handled by dedicated media queries above */
}

@media (min-width: 768px) {
  .footer__grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid,
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer__brand {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
}

.footer__brand .registered {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--renkara-blue);
}

.footer__wordmark {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-size: var(--text-body);
  color: var(--steel);
  line-height: var(--lh-body);
}

.footer__column-title,
.footer h4 {
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-body);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: var(--space-sm);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-small);
  color: var(--steel);
}

.footer__location {
  font-size: var(--text-small);
  color: var(--steel);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-links a {
  font-size: var(--text-small);
  color: var(--steel);
}

.footer__legal-links a:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   15. Dividers & Decorative
   -------------------------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  border: none;
  margin: var(--space-3xl) 0;
}

.divider--accent {
  height: 2px;
  width: 60px;
  background-color: var(--renkara-blue);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   16. Patent / IP Section
   -------------------------------------------------------------------------- */
.patent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.patent-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease);
}

.patent-card:hover {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.patent-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--renkara-blue);
  white-space: nowrap;
  padding-top: 2px;
}

.patent-card__title {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.patent-card__description {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

/* Tier badges */
.tier {
  margin-bottom: var(--space-xl);
}

.tier__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tier__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--renkara-blue);
  color: #FFFFFF;
  font-size: var(--text-small);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.tier__name {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
}

.tier__apps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-left: 52px;
}

.tier__app {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cloud-white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  color: var(--renkara-slate);
  transition: all var(--duration-micro) var(--ease);
}

.tier__app:hover {
  background: var(--color-bg);
  border-color: var(--renkara-blue);
  color: var(--renkara-navy);
}

/* --------------------------------------------------------------------------
   17. CTA & Contact Section
   -------------------------------------------------------------------------- */
.cta,
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta__title,
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}

.cta__text,
.cta-section p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

.section--navy .cta__text,
.section--gradient .cta__text {
  color: var(--steel);
}

/* Contact form */
.form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.form__input,
.form__textarea {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--duration-micro) var(--ease),
              box-shadow var(--duration-micro) var(--ease);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--renkara-blue);
  box-shadow: 0 0 0 3px rgba(46, 107, 158, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--steel);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   18. About Page — Story, Mission, Values, Team
   -------------------------------------------------------------------------- */
.story {
  max-width: 720px;
  margin: 0 auto;
}

.story p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--renkara-slate);
  margin-bottom: var(--space-lg);
}

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

.mission-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border-left: 3px solid var(--renkara-blue);
  background: var(--color-bg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.mission-block blockquote {
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary, var(--renkara-navy));
  line-height: 1.5;
  font-style: normal;
}

[data-theme="dark"] .mission-block blockquote {
  color: #E2E8F0;
}

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

.value-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--renkara-slate);
  line-height: var(--lh-body);
}

.team-note {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--cloud-white);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--mist);
}

.team-note p {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--renkara-navy);
  margin-bottom: var(--space-sm);
}

.team-note .small,
.team-note .text-small {
  color: var(--renkara-slate);
}

/* --------------------------------------------------------------------------
   19. AVIAN Highlight Block
   -------------------------------------------------------------------------- */
.avian-highlight {
  background: linear-gradient(135deg, var(--renkara-navy), #1e3a5f);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: #FFFFFF;
  margin-bottom: var(--space-2xl);
}

.avian-highlight h3 {
  color: #FFFFFF;
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.avian-highlight .avian-acronym {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--steel);
  margin-bottom: var(--space-lg);
}

.avian-highlight p {
  color: var(--mist);
  font-size: var(--text-h4);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.avian-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.avian-stat__number {
  font-size: var(--text-h2);
  font-weight: var(--fw-extrabold);
  color: #FFFFFF;
}

.avian-stat__label {
  font-size: var(--text-small);
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   20. Technology Stack Tags
   -------------------------------------------------------------------------- */
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.stack-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-bg);
  border: 1px solid var(--mist);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  color: var(--renkara-navy);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   21. Tech Brief
   -------------------------------------------------------------------------- */
.tech-brief {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.tech-brief p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--renkara-slate);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   22. Quotes / Testimonials
   -------------------------------------------------------------------------- */
.quote {
  border-left: 3px solid var(--renkara-blue);
  padding: var(--space-lg);
  padding-left: var(--space-xl);
  font-size: var(--text-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-h2);
  color: var(--renkara-navy);
  font-style: italic;
}

.quote__attribution {
  margin-top: var(--space-md);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  font-style: normal;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   23. Tabs / Pill Navigation
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  background-color: var(--color-bg-subtle);
  padding: var(--space-xs);
  border-radius: var(--radius-full);
  width: fit-content;
}

.tab {
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--duration-micro) var(--ease);
}

.tab:hover {
  color: var(--color-text);
}

.tab--active {
  background-color: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   24. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs__separator {
  color: var(--color-text-muted);
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   25. Inline Lockups
   -------------------------------------------------------------------------- */
.lockup {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lockup__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.lockup__text {
  font-weight: var(--fw-semibold);
  font-size: var(--text-body);
}

/* --------------------------------------------------------------------------
   26. Page Transitions & Scroll Animations
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-page) var(--ease),
              transform var(--duration-page) var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--duration-page) var(--ease),
              transform var(--duration-page) var(--ease);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--duration-page) var(--ease),
              transform var(--duration-page) var(--ease);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 50ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 150ms; }
.stagger-4 { transition-delay: 200ms; }
.stagger-5 { transition-delay: 250ms; }
.stagger-6 { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   27. Responsive — 640px (sm)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* footer grid handled by dedicated media queries above */

  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   28. Responsive — 1024px (md)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .nav__links,
  .nav-links {
    display: flex;
  }

  .nav__hamburger,
  .nav-toggle {
    display: none;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* footer grid handled by dedicated media queries above */

  .patent-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__tagline,
  .hero__subtitle {
    font-size: 1.25rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   29. Responsive — 1280px (lg)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 85vh;
  }

  .hero--home {
    min-height: 100vh;
  }
}

/* --------------------------------------------------------------------------
   30. Responsive — mobile overrides
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .product-cards {
    grid-template-columns: 1fr;
  }

  .avian-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 1023px) {
  /* Mobile nav for legacy markup */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   31. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   32. Print
   -------------------------------------------------------------------------- */
@media print {
  .nav,
  .nav__mobile,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #FFF;
  }

  .hero {
    min-height: auto;
    padding: 24pt 0;
    background: none !important;
    color: #000 !important;
  }

  .hero h1,
  .hero h2,
  .hero .display {
    color: #000 !important;
  }

  .section {
    padding: 24pt 0;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card,
  .product-card,
  .product-hero {
    border: 1px solid #CCC;
    box-shadow: none;
    break-inside: avoid;
  }

  .btn {
    border: 1px solid #000;
    color: #000;
    background: none;
  }
}

/* Founder card responsive */
@media (max-width: 640px) {
  .founder-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
}
