:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: inherit;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
}

.logo-text {
  color: currentColor;
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

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

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

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list a.btn {
  margin-top: 8px;
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

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

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.stat-item strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item span {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-5deg);
}

.phone-screen {
  background: var(--bg-soft);
  border-radius: 28px;
  overflow: hidden;
}

.screen-header {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  background: #fff;
}

.screen-header .dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 50%;
}

.screen-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

.ring-chart {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% 86%, var(--border) 86% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ring-chart::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
}

.ring-chart span {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.widget-sub {
  font-size: 12px;
  color: var(--text-light);
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.avatar {
  width: 26px;
  height: 26px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-soft);
  padding: 24px 0;
  text-align: center;
}

.trust-title {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Features */
.features {
  background: var(--bg);
}

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

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-green { background: #d1fae5; color: #10b981; }
.icon-purple { background: #ede9fe; color: #8b5cf6; }
.icon-orange { background: #ffedd5; color: #f97316; }
.icon-red { background: #fee2e2; color: #ef4444; }
.icon-teal { background: #ccfbf1; color: #14b8a6; }
.icon-pink { background: #fce7f3; color: #ec4899; }
.icon-indigo { background: #e0e7ff; color: #6366f1; }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Roles */
.roles {
  background: var(--bg-soft);
}

.role-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.role-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.role-tab svg {
  width: 20px;
  height: 20px;
}

.role-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.role-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.role-panels {
  max-width: 900px;
  margin: 0 auto;
}

.role-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.role-panel.active {
  display: grid;
}

.role-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.role-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-light);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.dash-card strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.dash-label {
  font-size: 13px;
  color: var(--text-light);
}

.teacher-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.action-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px;
  font-weight: 600;
}

.chip-icon {
  font-size: 22px;
}

.parent-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.timeline-item time {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  min-width: 46px;
}

/* Attendance */
.attendance {
  position: relative;
  background-color: #0f172a;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%),
    url('../images/ai-face-attendance-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #fff;
}

@media (min-width: 901px) {
  .attendance {
    background-attachment: fixed;
  }
}

.attendance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.attendance .section-title {
  color: #fff;
}

.attendance .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

.attendance-list {
  margin-top: 32px;
}

.attendance-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.attendance-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--success);
}

.face-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}

.face-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22d3ee, #34d399, transparent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.9);
  border-radius: 2px;
  animation: scan 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scan {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.face-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  text-align: center;
  z-index: 2;
}

.face-status {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.face-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* Data */
.data {
  background: var(--bg);
}

.data-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.data-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.chart-card h4 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar {
  height: 32px;
  background: linear-gradient(90deg, var(--primary) var(--value), var(--border) var(--value));
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.donut-chart {
  width: 130px;
  height: 130px;
  margin: 20px auto 0;
  border-radius: 50%;
  background: conic-gradient(var(--success) 0% 94%, var(--border) 94% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-chart::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--bg-soft);
  border-radius: 50%;
}

.donut-chart span {
  position: relative;
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
}

.data-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.data-feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.data-feature strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.data-feature span {
  font-size: 13px;
  color: var(--text-light);
}

/* Security */
.security {
  background: var(--bg);
}

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

.security-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.25s ease;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.security-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.security-icon svg {
  width: 28px;
  height: 28px;
}

.icon-shield { background: #dbeafe; color: #2563eb; }
.icon-server { background: #d1fae5; color: #10b981; }
.icon-zap { background: #ffedd5; color: #f97316; }
.icon-no-ads { background: #fee2e2; color: #ef4444; }

.security-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.security-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Modules */
.modules {
  background: var(--bg-soft);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.module-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.module-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.module-icon {
  font-size: 28px;
}

/* Pricing */
.pricing {
  background: var(--bg);
}

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

.pricing-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all 0.25s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  text-align: center;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.cta-content {
  max-width: 420px;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 36px 40px;
}

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

.qr-frame {
  width: 180px;
  height: 180px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-tip {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.steps-block {
  min-width: 0;
}

.steps-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
}

.step-text strong {
  color: #fff;
  font-weight: 700;
}

.cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-slogan {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner,
  .attendance-inner,
  .data-inner,
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-content {
    max-width: 520px;
    margin: 0 auto;
  }

  .cta-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-title {
    font-size: 38px;
  }

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

  .hero-actions,
  .hero-stats,
  .hero-badges {
    justify-content: center;
  }

  .role-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .role-panel.active {
    display: flex;
    flex-direction: column;
  }

  .role-list li {
    text-align: left;
  }

  .data-content,
  .attendance-content {
    text-align: center;
  }

  .attendance-list li {
    text-align: left;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

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

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

  .role-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .role-tab {
    justify-content: center;
  }

  .role-panel {
    padding: 28px;
  }

  .data-visual {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
  }

  .qr-block {
    margin: 0 auto;
  }

  .steps-list li {
    text-align: left;
  }

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

  .phone-mockup {
    width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scan-line {
    animation: none;
  }
}
