/* ============================================
   RikInfoTech — Company Website Styles v2
   Premium Design with animations & depth
   ============================================ */

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

:root {
  --primary: #265DF5;
  --primary-dark: #1a47d6;
  --primary-darker: #0f2f99;
  --primary-light: #eef2ff;
  --primary-glow: rgba(38, 93, 245, 0.4);
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --bg-dark: #0b1120;
  --bg-dark-card: #131c33;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --green: #059669;
  --green-light: #ecfdf5;
  --purple: #7c3aed;
  --purple-light: #f3e8ff;
  --orange: #ea580c;
  --orange-light: #fff7ed;
  --teal: #0891b2;
  --teal-light: #ecfeff;
  --red: #dc2626;
  --red-light: #fef2f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.15);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.2);
  --shadow-blue: 0 20px 40px -10px rgba(38, 93, 245, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #818cf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, #93c5fd, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  opacity: 0;
  filter: blur(12px);
  transition: opacity var(--transition);
  z-index: -1;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-weight: 700;
}

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

/* Blue primary for non-hero contexts */
.section .btn-primary,
.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(38, 93, 245, 0.3);
}

.btn-primary:hover .btn-glow {
  opacity: 0.5;
}

.btn-glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.25);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  padding: 14px 0;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo-icon-blue {
  display: none;
}

.logo-icon-white {
  display: block;
}

.navbar.scrolled .logo-icon-white {
  display: none;
}

.navbar.scrolled .logo-icon-blue {
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.navbar.scrolled .logo-text {
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  padding: 8px 18px !important;
  font-size: 0.8125rem !important;
  border-radius: 8px !important;
  gap: 6px !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

/* Nav CTA on blue hero */
.nav-cta.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-cta.btn-primary:hover {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar.scrolled .nav-cta.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(38, 93, 245, 0.3);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2550c0 30%, #3b6cf5 60%, #5b8af9 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite 3s;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

.hero-text h1 {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-text h1 .text-gradient {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number, .stat-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-top: -2px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Mockup - Dashboard Style */
.hero-visual {
  position: relative;
}

.hero-mockup {
  position: relative;
}

.mockup-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 30px;
  z-index: -1;
}

.mockup-frame {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.mockup-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.mockup-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #eef0f2;
}

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

.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #fcd34d; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #6ee7b7; }

.mockup-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  border: 1px solid #eef0f2;
}

/* --- Dashboard Mockup (Hero) — matches real HMS app --- */
.dash {
  display: flex;
  min-height: 420px;
  background: #f4f6fb;
  font-family: 'Inter', sans-serif;
}

/* Sidebar — white, like real app */
.dash-sidebar {
  width: 130px;
  background: #ffffff;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  box-shadow: 0 0 15px rgba(0,0,0,0.03);
}

.dash-sidebar-logo {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.dash-logo-img {
  height: 18px;
  width: auto;
}

.dash-nav-label {
  font-size: 0.375rem;
  font-weight: 700;
  color: #9ba4b5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px 4px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 6px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.5rem;
  font-weight: 500;
  color: #8392a5;
  cursor: default;
  transition: all 0.2s;
}

.dash-nav-item span {
  white-space: nowrap;
}

.dash-nav-item.active {
  background: rgba(38, 93, 245, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.dash-nav-item:not(.active):hover {
  background: rgba(38, 93, 245, 0.04);
  color: #1a1a2e;
}

/* Main area */
.dash-main {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}

/* Header bar — matches real app */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 0 15px rgba(0,0,0,0.03);
}

.dash-header-left {
  display: flex;
  flex-direction: column;
}

.dash-greeting {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #333;
}

.dash-date {
  font-size: 0.4375rem;
  color: #8392a5;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-notif {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.dash-notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-profile-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* Stat cards row — circular icons like real app */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 10px;
}

.dash-billing-row {
  margin-top: -2px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  border: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.04);
}

/* Circular icon — matches real app's 60px circle icons */
.dash-circle-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-circle-icon.blue { background: var(--primary); }
.dash-circle-icon.green { background: #10b981; }
.dash-circle-icon.purple { background: var(--primary); }
.dash-circle-icon.info { background: #0ea5e9; }
.dash-circle-icon.warning { background: #ff9800; }
.dash-circle-icon.success-alt { background: #10b981; }

.dash-stat-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-stat-label {
  font-size: 0.4375rem;
  color: #8392a5;
  font-weight: 500;
  white-space: nowrap;
}

.dash-stat-value {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-stat-value.add-text {
  color: var(--primary);
  font-size: 0.625rem;
}

/* Content row: Chart + Table */
.dash-content-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 0 10px 10px;
}

/* Chart card */
.dash-chart-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-card-title {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
}

.dash-legend {
  display: flex;
  gap: 10px;
}

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.5rem;
  color: #94a3b8;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.blue { background: var(--primary); }
.legend-dot.green { background: var(--green); }

.dash-chart-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-area-chart {
  flex: 1;
  width: 100%;
  min-height: 80px;
}

.chart-line-1 {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2s ease-out forwards 0.5s;
}

.chart-line-2 {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2s ease-out forwards 0.8s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.dash-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px 0;
  font-size: 0.4375rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Table card */
.dash-table-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
}

.dash-view-all {
  font-size: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  cursor: default;
}

.dash-mini-table {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-trow {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  align-items: center;
  padding: 6px 0;
  gap: 6px;
  border-bottom: 1px solid #f8f9fa;
}

.dash-trow:last-child {
  border-bottom: none;
}

.dash-thead {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.dash-thead span {
  font-size: 0.4375rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-patient-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text);
}

.dash-patient-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4375rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.dash-patient-avatar.blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.dash-patient-avatar.green { background: linear-gradient(135deg, #10b981, #059669); }
.dash-patient-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dash-patient-avatar.orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.dash-doctor {
  font-size: 0.5rem;
  color: #64748b;
  font-weight: 500;
}

.dash-status-badge {
  font-size: 0.4375rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
}

.dash-status-badge.active {
  background: #eef2ff;
  color: var(--primary);
}

.dash-status-badge.done {
  background: #ecfdf5;
  color: #059669;
}

.dash-status-badge.waiting {
  background: #fffbeb;
  color: #d97706;
}

.dash-status-badge.confirmed {
  background: #eef2ff;
  color: var(--primary);
}

.dash-status-badge.pending {
  background: #fffbeb;
  color: #d97706;
}

.dash-time {
  font-size: 0.4375rem;
  color: #64748b;
  font-weight: 500;
}

/* Floating notification cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  z-index: 5;
  animation: floatUpDown 5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.float-card-1 {
  top: 15px;
  right: -30px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 30px;
  left: -40px;
  animation-delay: 2.5s;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card-icon.green {
  background: var(--green-light);
  color: var(--green);
}

.float-card-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.float-card-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.float-card-sub {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* --- Trust Strip --- */
.trust-strip {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  opacity: 0.4;
}

.trust-item:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.trust-item svg {
  transition: transform var(--transition);
}

.trust-item:hover svg {
  transform: scale(1.1);
}

.trust-item span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.product-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(38, 93, 245, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
  position: relative;
}

.section-header.light {
  color: #fff;
}

.section-header.light .section-desc {
  color: #94a3b8;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-tag.light {
  background: rgba(38, 93, 245, 0.15);
  color: #93c5fd;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  padding: 36px 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.about-card:hover .about-card-accent {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.about-icon.icon-green {
  background: var(--green-light);
  color: var(--green);
}

.about-icon.icon-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.about-card:hover .about-icon {
  transform: scale(1.1);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Product --- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.product-highlight {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.product-highlight:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.highlight-number {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(38, 93, 245, 0.15);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.product-highlight:hover .highlight-icon {
  background: rgba(38, 93, 245, 0.25);
  transform: scale(1.08);
}

.product-highlight h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.product-highlight p {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* Product Browser Mockup */
.product-browser {
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.product-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.product-browser-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: #64748b;
}

.product-browser-screen {
  padding: 16px;
}

.product-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pd-card {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.pd-card-label {
  font-size: 0.625rem;
  color: #64748b;
  margin-bottom: 4px;
}

.pd-card-value {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pd-card-value.blue { color: #60a5fa; }
.pd-card-value.green { color: #34d399; }
.pd-card-value.purple { color: #a78bfa; }

.pd-card-bar {
  height: 4px;
  border-radius: 2px;
  animation: barWidth 2s ease-out forwards;
}

.pd-card-bar.blue { background: linear-gradient(90deg, #265DF5, #60a5fa); }
.pd-card-bar.green { background: linear-gradient(90deg, #059669, #34d399); }
.pd-card-bar.purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

@keyframes barWidth {
  from { width: 0 !important; }
}

.pd-chart-area {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.pd-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
}

.mockup-line.w30 { width: 30%; }

.pd-chart-header .mockup-line {
  background: rgba(255,255,255,0.1);
}

.pd-chart-legend {
  display: flex;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.blue { background: #60a5fa; }
.legend-dot.green { background: #34d399; }

.pd-line-chart {
  width: 100%;
  height: 80px;
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.5s ease-out forwards 0.5s;
}

.chart-area {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 2s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

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

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

.feature-card {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent, var(--primary), transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.feature-card:hover .feature-card-border {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-3deg);
}

.feature-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.green { background: var(--green-light); color: var(--green); }
.feature-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-icon.orange { background: var(--orange-light); color: var(--orange); }
.feature-icon.teal { background: var(--teal-light); color: var(--teal); }
.feature-icon.red { background: var(--red-light); color: var(--red); }

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

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

.feature-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
}

/* --- Technology --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.tech-category {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tech-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.tech-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tech-icon-wrap.blue { background: var(--primary-light); color: var(--primary); }
.tech-icon-wrap.green { background: var(--green-light); color: var(--green); }
.tech-icon-wrap.purple { background: var(--purple-light); color: var(--purple); }
.tech-icon-wrap.orange { background: var(--orange-light); color: var(--orange); }

.tech-category h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-gray);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.tech-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

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

.arch-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.arch-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.arch-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-item h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.arch-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #1a1a5e 0%, var(--primary-darker) 30%, var(--primary) 60%, #4f46e5 100%);
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.cta-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: white;
  animation: orbFloat 12s ease-in-out infinite;
}

.cta-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: white;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  text-align: center;
  padding: 44px 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform var(--transition-bounce);
}

.contact-card:hover .contact-icon {
  transform: scale(1.12);
}

.contact-card h4 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 0;
  position: relative;
}

.footer-gradient-line {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #818cf8, var(--purple), #818cf8, var(--primary));
  background-size: 200% 100%;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-icon {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: #e2e8f0;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links h4 {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: #64748b;
  transition: all var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: #e2e8f0;
  transform: translateX(4px);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #475569;
}

/* --- Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger delays */
.animate-in[data-delay="100"] { transition-delay: 0.1s; }
.animate-in[data-delay="200"] { transition-delay: 0.2s; }
.animate-in[data-delay="300"] { transition-delay: 0.3s; }
.animate-in[data-delay="400"] { transition-delay: 0.4s; }
.animate-in[data-delay="500"] { transition-delay: 0.5s; }

/* Hero entrance animation */
.hero-text {
  animation: heroFadeIn 1s ease-out;
}

.hero-visual {
  animation: heroSlideIn 1s ease-out 0.3s both;
}

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

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-content {
    gap: 40px;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

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

  .arch-highlights {
    grid-template-columns: 1fr;
  }

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

  .float-card {
    display: none;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
  }

  .navbar.nav-open .nav-links a {
    padding: 12px 14px;
  }

  .navbar.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 100px 0 80px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    margin: 0 auto;
  }

  .hero-visual {
    display: none;
  }

  .hero-text {
    animation: heroFadeIn 0.8s ease-out;
  }

  .trust-logos {
    gap: 32px;
  }

  .section {
    padding: 70px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-visual {
    order: -1;
  }

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

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

  .cta-content h2 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .pd-row {
    grid-template-columns: 1fr;
  }
}
