/* ==========================================================================
   RandevuSoft • Modern Landing Page & Design System (Updated)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --green: #155d50;
  --green-dark: #0d4239;
  --green-light: #238573;
  --green-mint: #7ed7b9;
  --soft: #eaf3ee;
  --soft-dark: #d8eae0;
  --orange: #b77528;
  --orange-soft: #fcf4e8;
  
  /* Light Theme Defaults */
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #1b2629;
  --ink-muted: #5e6b6e;
  --muted: #829093;
  --line: #e3e8e7;
  --line-strong: #cbd5d3;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(18, 46, 37, 0.05);
  --shadow-md: 0 10px 30px rgba(18, 46, 37, 0.08);
  --shadow-lg: 0 20px 60px rgba(18, 46, 37, 0.12);
  --shadow-glow: 0 0 50px rgba(21, 93, 80, 0.18);
  
  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-max: 1240px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
body.dark {
  --bg: #0f1618;
  --surface: #172124;
  --surface-raised: #1f2c30;
  --ink: #f0f5f4;
  --ink-muted: #abb8b6;
  --muted: #7b8a87;
  --line: #26363a;
  --line-strong: #364b50;
  --soft: #1d332d;
  --soft-dark: #27443d;
  --green: #7ed7b9;
  --green-dark: #68bd9f;
  --green-light: #9de2cb;
  --orange: #e5b36e;
  --orange-soft: #2e261a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 60px rgba(126, 215, 185, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  vertical-align: middle;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.row {
  display: flex;
  align-items: center;
}

.between {
  justify-content: space-between;
}

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

/* ==========================================================================
   Typography & Brand Headings
   ========================================================================== */

h1, h2, h3, h4, .brand, .btn {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 750;
  line-height: 1.25;
}

.serif-italic {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

body.dark .serif-italic {
  color: var(--green-mint);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  user-select: none;
  flex-shrink: 0;
}

.brand b {
  font-weight: 500;
  opacity: 0.85;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(21, 93, 80, 0.15);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  border: 1px solid rgba(21, 93, 80, 0.1);
  background: #ffffff;
}

body.dark .brand-logo-img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border-color: rgba(126, 215, 185, 0.2);
}

.brand:hover .brand-logo-img {
  transform: scale(1.06);
}

/* Hero Mobile App Badge with Logo */
.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 16px 7px 7px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: var(--transition);
}

.hero-app-badge:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.hero-app-badge-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-app-badge-text strong {
  font-size: 12.5px;
  color: var(--ink);
}

.hero-app-badge-text small {
  font-size: 11px;
  color: var(--muted);
}

.hero-app-badge-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 6px;
}

/* Modal Logo Header */
.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Mockup Avatar with Image */
img.mock-avatar {
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 1px;
  background: #ffffff;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Badges & Micro UI Elements
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--soft);
  color: var(--green);
  border: 1px solid rgba(21, 93, 80, 0.15);
}

body.dark .badge {
  color: var(--green-mint);
  border-color: rgba(126, 215, 185, 0.2);
}

.badge-subtle {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-accent {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: rgba(183, 117, 40, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 93, 80, 0.25);
}

body.dark .btn-primary {
  background: var(--green-mint);
  color: #0f1618;
  box-shadow: 0 4px 16px rgba(126, 215, 185, 0.25);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(21, 93, 80, 0.35);
  transform: translateY(-1px);
}

body.dark .btn-primary:hover {
  background: #68bd9f;
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--soft);
  border-color: var(--green);
  color: var(--green);
}

.btn-ghost {
  background: var(--soft);
  color: var(--green);
  border: 1px solid transparent;
}

body.dark .btn-ghost {
  color: var(--green-mint);
}

.btn-ghost:hover {
  background: var(--soft-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 16px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--soft);
  color: var(--green);
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */

.announcement-bar {
  background: var(--green-dark);
  color: #e5f2ed;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-link {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark .navbar {
  background: rgba(15, 22, 24, 0.92);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-muted);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--green);
}

body.dark .nav-link:hover {
  color: var(--green-mint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--green);
}

.lang-btn .icon-globe {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.lang-btn .icon-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 135px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
}

.lang-menu.show {
  display: flex;
  animation: fadeInDown 0.18s ease-out;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s ease;
}

.lang-option:hover {
  background: var(--soft);
}

.lang-option.active {
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
}

/* Theme Toggle Icons */
.theme-toggle .icon-moon {
  display: none;
}

body.dark .theme-toggle .icon-sun {
  display: none;
}

body.dark .theme-toggle .icon-moon {
  display: block;
}

/* Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Mobile Drawer Overlay
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 22, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  animation: slideLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.mobile-drawer-close:hover {
  background: var(--soft);
  color: var(--ink);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.mobile-drawer-link {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.mobile-drawer-link:hover {
  background: var(--soft);
  color: var(--green);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(21, 93, 80, 0.12) 0%, rgba(21, 93, 80, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body.dark .hero-glow {
  background: radial-gradient(circle, rgba(126, 215, 185, 0.08) 0%, rgba(126, 215, 185, 0) 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 46px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--soft);
  color: var(--green);
  border: 1px solid rgba(21, 93, 80, 0.15);
  margin-bottom: 20px;
}

body.dark .hero-pill {
  color: var(--green-mint);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3eb582;
  box-shadow: 0 0 8px #3eb582;
}

.hero-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-description {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 530px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat-item strong {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  display: block;
  color: var(--ink);
  line-height: 1.1;
}

.stat-item span {
  font-size: 12px;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

/* ==========================================================================
   Hero Preview Mockup
   ========================================================================== */

.hero-preview-wrapper {
  position: relative;
  width: 100%;
}

.hero-card-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at top right, rgba(21, 93, 80, 0.15), transparent 70%);
  border-radius: 30px;
  filter: blur(25px);
  z-index: 0;
}

.preview-device-mockup {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-header {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mockup-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dedc;
}

.mockup-dots span:nth-child(1) { background: #ea7a6c; }
.mockup-dots span:nth-child(2) { background: #efbe64; }
.mockup-dots span:nth-child(3) { background: #60c58e; }

.mockup-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--soft);
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.mockup-body {
  padding: 16px;
  background: var(--bg);
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  gap: 10px;
}

.mock-workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  background: #eaddcb;
  color: #795e41;
  font-weight: 700;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}

.mock-workspace strong {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-workspace small {
  font-size: 10.5px;
  color: var(--muted);
}

.mock-badge {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mock-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.mock-metric.highlight {
  border-color: rgba(21, 93, 80, 0.3);
  background: linear-gradient(to bottom right, var(--surface), var(--soft));
}

.mock-metric .muted {
  font-size: 9.5px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-metric strong {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  display: block;
  margin: 3px 0 2px;
}

.mock-change {
  font-size: 9.5px;
  display: block;
}

.mock-change.positive {
  color: var(--green);
  font-weight: 600;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mock-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.mock-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tag-green {
  font-size: 9.5px;
  padding: 2px 5px;
  background: var(--soft);
  color: var(--green);
  border-radius: 4px;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.mock-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mock-time {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.mock-time small {
  color: var(--muted);
  font-weight: 400;
}

.mock-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ece6f3;
  color: #87729a;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-info {
  flex: 1;
  min-width: 0;
}

.mock-info strong {
  font-size: 10.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-info small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill.process {
  background: #eaf0fb;
  color: #507ba8;
}

.status-pill.wait {
  background: #fbf1db;
  color: #9c752b;
}

/* Donut Mini */
.mini-donut-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-donut {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 78%, var(--soft) 78% 100%);
  display: grid;
  place-items: center;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.mini-donut-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}

.mini-donut-inner strong {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.mini-donut-inner small {
  font-size: 8px;
  color: var(--muted);
}

.mini-donut-stats {
  font-size: 9.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mini-donut-stats div {
  white-space: nowrap;
}

.mini-donut-stats b {
  color: var(--ink);
}

.mock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mock-login-link {
  color: var(--green);
  font-weight: 700;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.mock-login-link:hover {
  transform: translateX(3px);
}

/* ==========================================================================
   Highlights Bar
   ========================================================================== */

.highlights-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.highlights-flex {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hl-icon {
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}

.hl-item strong {
  font-size: 13.5px;
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.hl-item p {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Section Global Layout
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section-header {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 12px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 93, 80, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-checklist {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-checklist li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-checklist li::before {
  content: "•";
  color: var(--green);
  font-size: 16px;
}

/* ==========================================================================
   Sectors Section & Dynamic Tabs
   ========================================================================== */

.sector-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.sector-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sector-tab {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.sector-tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.sector-tab.active {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(21, 93, 80, 0.25);
}

body.dark .sector-tab.active {
  background: var(--green-mint);
  color: #0f1618;
}

.sector-panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.sector-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.sector-lead-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.sector-panel-info h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.sector-panel-info p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.sector-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}

.check-icon {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex-shrink: 0;
}

.visual-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3eb582;
}

.visual-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.sample-stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sample-stat-row small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.sample-stat-row strong {
  font-size: 17px;
}

.sample-schedule {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sample-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.sample-slot .time {
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}

.sample-slot .slot-info {
  flex: 1;
  min-width: 0;
}

.sample-slot .slot-info b {
  font-size: 11.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-slot .slot-info small {
  font-size: 9.5px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-live {
  font-size: 9.5px;
  background: #eaf3ee;
  color: var(--green);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.tag-next {
  font-size: 9.5px;
  background: #fbf1db;
  color: #9c752b;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   Login Callout Banner
   ========================================================================== */

.login-callout-section {
  padding: 30px 0;
}

.login-card-banner {
  background: linear-gradient(135deg, #104e43 0%, #0a332c 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.login-card-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(126, 215, 185, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.login-card-content h2 {
  font-size: 28px;
  margin-top: 12px;
  margin-bottom: 10px;
  color: #ffffff;
}

.login-card-content p {
  font-size: 14.5px;
  color: #bcd5cb;
  max-width: 540px;
  margin-bottom: 20px;
}

.login-card-features {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: #d8ede3;
  flex-wrap: wrap;
}

.login-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.login-card-action .btn-primary {
  background: #ffffff;
  color: #104e43;
  font-weight: 750;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.login-card-action .btn-primary:hover {
  background: #e7f5ef;
  transform: translateY(-2px);
}

.login-card-action small {
  font-size: 11.5px;
  color: #a4c4b6;
}

/* ==========================================================================
   Demo & Registration Section (Form)
   ========================================================================== */

.demo-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.demo-title {
  font-size: clamp(30px, 3.4vw, 42px);
  margin-top: 12px;
  margin-bottom: 14px;
}

.demo-desc {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 30px;
  line-height: 1.65;
}

.demo-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bullet-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 12px;
  flex-shrink: 0;
}

.bullet-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.bullet-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Form Card */
.demo-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 22px;
}

.form-header h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.form-header p {
  font-size: 12.5px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

label .req {
  color: #d9534f;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 93, 80, 0.15);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.country-prefix {
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.phone-input-wrap input {
  border: none;
  box-shadow: none;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.field-error {
  display: block;
  font-size: 11px;
  color: #d9534f;
  margin-top: 3px;
  min-height: 15px;
}

/* Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-weight: 400;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.custom-checkbox input:checked ~ .checkbox-mark {
  background: var(--green);
  border-color: var(--green);
}

.custom-checkbox input:checked ~ .checkbox-mark::after {
  content: "✓";
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.checkbox-text {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.form-footer-login {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.inline-link {
  color: var(--green);
  font-weight: 600;
  margin-left: 4px;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--green);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  gap: 12px;
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--muted);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--green);
}

.faq-answer {
  padding: 0 22px 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.faq-answer p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.brand-col .footer-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 18px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--green);
  background: var(--soft);
  padding: 5px 10px;
  border-radius: 100px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cb378;
  box-shadow: 0 0 6px #2cb378;
}

.footer-col h4 {
  font-size: 14.5px;
  margin-bottom: 18px;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--green);
}

.contact-line {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.footer-login-btn-wrap {
  margin-top: 16px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

/* ==========================================================================
   Modal: Demo & Registration Quick Popup
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 21px;
  margin-top: 5px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--soft);
  color: var(--ink);
}

.modal-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.modal-footer-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--surface);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 400;
  max-width: 360px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Keyframes Animations
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ==========================================================================
   Responsive Breakpoints Overhaul (Fixing All Breakpoint Overlaps)
   ========================================================================== */

/* 1. Medium Desktops & Tablets (Between 820px and 1080px - Including 929px!) */
@media (max-width: 1080px) {
  /* Hide crowded desktop nav links */
  .nav-links {
    display: none !important;
  }
  
  /* Show hamburger button */
  .mobile-toggle {
    display: flex !important;
  }
  
  /* Hide desktop-only direct login button in top bar */
  .nav-login-btn {
    display: none !important;
  }
  
  /* Grid layouts adjustment */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-preview-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .highlights-flex {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sector-panel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .login-card-banner {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  
  .login-card-action {
    align-items: flex-start;
  }
  
  .demo-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. Small Tablets & Phablets (< 768px) */
@media (max-width: 768px) {
  .announcement-bar {
    display: none;
  }
  
  /* Hide demo button in navbar to leave ample room for logo and controls */
  .nav-demo-btn {
    display: none !important;
  }
  
  .navbar-inner {
    height: 64px;
  }
  
  .brand-name {
    font-size: 19px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .highlights-flex {
    grid-template-columns: 1fr;
  }
  
  .sector-panel-card {
    padding: 24px;
  }
  
  .demo-form-card {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 3. Mobile Phones (< 480px / 390px Viewport) */
@media (max-width: 480px) {
  .hero-section {
    padding: 36px 0 50px;
  }
  
  .hero-title {
    font-size: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  
  .stat-divider {
    display: none;
  }
  
  /* Mockup Card Fixes on Small Mobile */
  .mockup-body {
    padding: 12px;
  }
  
  .mock-metrics {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .mock-grid {
    grid-template-columns: 1fr;
  }
  
  .mini-donut-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  
  .mini-donut-stats {
    align-items: center;
  }
  
  .mock-item {
    gap: 6px;
  }
  
  /* Sector Tabs on Small Mobile */
  .sector-tabs {
    justify-content: flex-start;
  }
  
  .sector-tab {
    font-size: 12px;
    padding: 8px 14px;
  }
  
  .sample-slot {
    flex-wrap: wrap;
  }
  
  .login-card-banner {
    padding: 26px 18px;
  }
  
  .login-card-content h2 {
    font-size: 22px;
  }
  
  .login-card-action .btn {
    width: 100%;
  }
  
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
