/* ===== YAAST Website – Dark Professional Theme ===== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2a42;
  --text-primary: #f0f2f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #f77f00;
  --accent-dark: #d66a00;
  --accent-glow: rgba(247, 127, 0, 0.15);
  --accent-glow-strong: rgba(247, 127, 0, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-dark);
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

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

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-logo img {
  height: 36px;
  width: auto;
}

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

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

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

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(247, 127, 0, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), #ffa94d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons-mobile {
  display: none !important;
}

.hero-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 0;
}

/* Profile navigation arrows */
.profile-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 3rem;
  cursor: pointer;
  padding: 12px 8px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.profile-arrow:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.profile-arrow:active {
  transform: scale(0.95);
}

.device-mockup {
  position: relative;
  width: 300px;
  height: 500px;
  background: #0a0e14;
  border-radius: 20px;
  border: 2px solid var(--border-light);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px var(--accent-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
}

/* Logo area — 160/800 = 20% */
.mock-logo {
  height: 17%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 0;
}

.mock-logo img {
  max-height: 80%;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Badge — 78/800 ≈ 10% */
.mock-badge {
  height: 8%;
  background: #FFDD00;
  border-radius: 6px;
  margin: 2px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.02em;
  transition: background 0.3s ease;
}

.mock-badge.vorlauf {
  background: #22c55e;
  animation: badgeBlink 1s ease-in-out infinite;
}

.mock-badge.nachlauf {
  background: #ef4444;
  animation: badgeBlink 1s ease-in-out infinite;
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Badge color variants for profiles */
.mock-badge.badge-eingang { background: #22c55e; }
.mock-badge.badge-ausgang { background: #ef4444; }
.mock-badge.badge-snackautomat { background: #3b82f6; }

/* Content area between badge and buttons */
.mock-content-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Digits — 7-segment style */
.mock-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DSEG7', 'Courier New', monospace;
  font-size: 4rem;
  font-weight: bold;
  color: #FFDD00;
  letter-spacing: 4px;
  text-shadow: 0 0 24px rgba(255, 221, 0, 0.4);
}

/* Scan prompt for Eingang/Ausgang */
.mock-scan-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.mock-scan-prompt .scan-arrow {
  font-size: 2.5rem;
  animation: scanPulse 1.5s ease-in-out infinite;
}

.mock-scan-prompt .scan-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.mock-scan-prompt .scan-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mock-scan-prompt .scan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scanPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-8px); opacity: 1; }
}

/* Automat display */
.mock-automat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.mock-automat .automat-credit {
  font-family: 'DSEG7', 'Courier New', monospace;
  font-size: 4.4rem;
  font-weight: bold;
  color: #3b82f6;
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.mock-automat .automat-text {
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* +/- buttons — square, at bottom */
.mock-controls {
  display: flex;
  gap: 10px;
  padding: 4px 10px 6px;
  justify-content: center;
  align-items: center;
}

.mock-btn-sq {
  width: 47%;
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mock-btn-sq:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
}

.mock-btn-sq:active {
  transform: scale(0.97);
  filter: brightness(0.85);
}

.mock-btn-sq.minus {
  background: #d32f2f;
}

.mock-btn-sq.plus {
  background: #2e7d32;
}

/* Footer — compact status bar */
.mock-footer {
  height: 8%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px;
}

.mock-footer-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-hostname {
  font-size: 0.5rem;
  color: #fff;
  font-family: monospace;
}

.mock-ip {
  font-size: 0.42rem;
  color: #888;
  font-family: monospace;
}

.mock-relay {
  font-size: 0.42rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 3px;
  text-align: right;
  line-height: 1.3;
}

.relay-dot {
  width: 5px;
  height: 5px;
  background: #444;
  display: inline-block;
}

/* RFID Start Button below mockup */
.rfid-start-btn {
  flex-basis: 100%;
  width: 300px;
  max-width: 300px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  box-sizing: border-box;
  background: rgba(255, 221, 0, 0.1);
  border: 1px solid rgba(255, 221, 0, 0.3);
  border-radius: 12px;
  color: #FFDD00;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rfid-start-btn:hover {
  background: rgba(255, 221, 0, 0.18);
  border-color: rgba(255, 221, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.15);
}

.rfid-start-btn:active {
  transform: translateY(0);
}

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

.device-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  filter: blur(80px);
  z-index: -1;
}

/* Floating particles around device */
.float-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.float-particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-particle:nth-child(2) { top: 80%; right: 5%; animation-delay: 2s; }
.float-particle:nth-child(3) { top: 40%; right: 15%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(247, 127, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247, 127, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 0 auto 60px;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(247, 127, 0, 0.15);
  transform: translateY(-4px);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* ===== Use Cases Section ===== */
.usecases {
  background: var(--bg-secondary);
}

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

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

.usecase-card:hover {
  border-color: rgba(247, 127, 0, 0.15);
  transform: translateY(-3px);
}

.usecase-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.usecase-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.usecase-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.usecase-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usecase-features li {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(247, 127, 0, 0.08);
  color: var(--accent);
  border: 1px solid rgba(247, 127, 0, 0.15);
}

/* ===== Hardware Specs ===== */
.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.spec-item:hover {
  border-color: rgba(247, 127, 0, 0.15);
}

.spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.spec-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.spec-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.specs-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: sticky;
  top: 100px;
}

.specs-highlight h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.spec-detail {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

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

.spec-detail .value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== Software / Web-UI Section ===== */
.software {
  background: var(--bg-secondary);
}

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

.software-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sw-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sw-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sw-feature h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.sw-feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.webui-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.mockup-dot:nth-child(1) { background: #ef4444; opacity: 0.8; }
.mockup-dot:nth-child(2) { background: #eab308; opacity: 0.8; }
.mockup-dot:nth-child(3) { background: #22c55e; opacity: 0.8; }

.mockup-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-content {
  padding: 28px;
}

.mockup-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.mockup-nav-item {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
}

.mockup-nav-item.active {
  background: var(--accent);
  color: #fff;
}

.mockup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-field label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-field .input {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.mockup-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.mockup-toggle label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--accent);
  position: relative;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
}

/* ===== Contact / CTA Section ===== */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 40px;
  }
  .hero-buttons-desktop {
    display: none;
  }
  .hero-buttons-mobile {
    display: flex !important;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-layout {
    grid-template-columns: 1fr;
  }
  .specs-highlight {
    position: static;
  }
  .software-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .header {
    top: 0;
    padding-top: 0;
  }
  section {
    padding: 70px 0;
  }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding: 12px 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
  }
  .device-mockup {
    width: 260px;
    height: 433px;
  }
  .mock-digits {
    font-size: 3.2rem !important;
  }
  .mock-btn-sq {
    font-size: 3.5rem;
  }
  .rfid-start-btn {
    width: 260px;
    max-width: 260px;
    font-size: 0.85rem;
  }
  .profile-arrow {
    font-size: 2.5rem;
    padding: 8px 4px;
  }
  .usecase-card {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-accept {
  background: var(--accent);
  color: #000;
}

.cookie-accept:hover {
  filter: brightness(1.1);
}

.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-decline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 14px;
  }
}
