/* ══════════════════════════════════════════
   Qessage Homepage — style.css
   ══════════════════════════════════════════ */

:root {
  --primary: #CC5500;
  --primary-light: #EE932A;
  --primary-dark: #A04400;
  --accent: #F46824;
  --bg-dark: #090C0E;
  --bg-dark-2: #0F1318;
  --bg-dark-3: #161B22;
  --surface: #1B2129;
  --text: #E6EDF3;
  --text-secondary: #8B949E;
  --bubble-sent: #EFFDE0;
  --bubble-received: #F0F0F0;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* App Store / Google Play badges: height, and the space between them.
     The hero buttons, when stacked, take their width from these. */
  --store-badge-height: 44px;
  --store-badge-gap: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

/* ── NAVBAR ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(9, 12, 14, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

/* ── LANGUAGE SWITCH ── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px 4px;
}

.lang-option {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

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

.lang-option.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  pointer-events: none;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.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); }

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 85, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
  border-radius: 10px;
}

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(204,85,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(238,147,42,0.1) 0%, transparent 50%);
}

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

/* Centred at every width, as on phones: next to the phone mock-up too. */
.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 520px;
}

/* One under the other at every width, exactly as wide as the store badges
   row below them, so buttons and badges line up on both edges. The width
   is the badges' height times their proportions (App Store 119.66 × 40,
   Google Play 238.96 × 70.87), plus the gap between them. */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(var(--store-badge-height) * (119.66 / 40 + 238.96 / 70.87)
    + var(--store-badge-gap));
  max-width: 100%;
  margin: 0 auto 24px;
}

/* ── STORE BADGES ── */

.hero-stores {
  margin-bottom: 36px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* At least a quarter of the badge height around each badge (Apple and
     Google guidelines). */
  gap: 12px var(--store-badge-gap);
}

/* Same height for both, as the guidelines ask (Google: never smaller than
   the other badges; Apple: at least 40 px). */
.store-badges img {
  display: block;
  height: var(--store-badge-height);
  width: auto;
}

.webapp-line {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-secondary);
}

.webapp-link {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

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

.stores-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stores-note a {
  color: var(--primary-light);
  font-weight: 500;
  text-decoration: none;
}

.stores-note a:hover {
  text-decoration: underline;
}

.contact-stores {
  margin-top: 48px;
  text-align: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge {
  padding: 6px 14px;
  background: rgba(204, 85, 0, 0.15);
  border: 1px solid rgba(204, 85, 0, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
}

/* ── PHONE MOCKUP ── */

.phone-mockup {
  width: 300px;
  margin: 0 auto;
  background: var(--bg-dark-3);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-screen {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

.mock-header {
  background: var(--primary);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.mock-name {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

.mock-status {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-left: auto;
}

.mock-chat {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.mock-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

.mock-bubble.sent {
  align-self: flex-end;
  background: var(--bubble-sent);
  border-bottom-right-radius: 4px;
}

.mock-bubble.received {
  align-self: flex-start;
  background: var(--bubble-received);
  border-bottom-left-radius: 4px;
}

.mock-media {
  display: block;
  font-size: 12px;
}

.mock-encrypted {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ── SECTIONS ── */

.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-header strong {
  color: var(--primary-light);
}

/* ── WHY POST-QUANTUM ── */

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

.why-pq-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

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

.why-pq-card.danger {
  border-left: 3px solid #ef4444;
}

.why-pq-card.danger:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}

.why-pq-card.solution {
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.08) 0%, rgba(238, 147, 42, 0.03) 100%);
}

.why-pq-card.solution:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 32px rgba(204, 85, 0, 0.2);
}

.why-pq-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.why-pq-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.why-pq-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.why-pq-card .feature-highlight {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .why-pq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-pq-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FEATURES GRID ── */

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

.feature-card {
  background: var(--bg-dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(204, 85, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

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

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

.feature-card code {
  background: rgba(204, 85, 0, 0.15);
  color: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ── FEATURED CARD ── */

.feature-card.featured {
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.12) 0%, rgba(238, 147, 42, 0.06) 100%);
  grid-column: span 1;
  position: relative;
  overflow: hidden;
}

.feature-card.featured::before {
  content: "★ IN EVIDENZA";
  position: absolute;
  top: 12px;
  right: -30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 40px;
  transform: rotate(35deg);
}

.feature-card.featured:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 32px rgba(204, 85, 0, 0.25);
}

.feature-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feature-tag {
  background: rgba(204, 85, 0, 0.2);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(204, 85, 0, 0.3);
}

/* ── AUTH MODES (inside featured card) ── */

.auth-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.auth-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1px 14px;
  transition: var(--transition);
}

.auth-mode:hover {
  background: rgba(204, 85, 0, 0.08);
  border-color: rgba(204, 85, 0, 0.25);
}

.auth-mode-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.auth-mode-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-mode-info strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.auth-mode-info span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* ── SECURITY ── */

.security-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.security-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.security-item.reverse {
  direction: rtl;
}

.security-item.reverse > * {
  direction: ltr;
}

.security-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.security-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.security-text strong {
  color: var(--primary-light);
}

.security-visual {
  display: flex;
  justify-content: center;
}

/* Crypto flow diagram */
.crypto-flow {
  background: var(--bg-dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.crypto-step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.crypto-label {
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.crypto-label.accent {
  background: rgba(204, 85, 0, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(204, 85, 0, 0.3);
}

.crypto-arrow {
  color: var(--primary-light);
  font-size: 18px;
  font-weight: bold;
}

/* Layers diagram */
.layers-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.layer {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.layer-1 { background: rgba(204, 85, 0, 0.1); border: 1px solid rgba(204, 85, 0, 0.2); }
.layer-2 { background: rgba(204, 85, 0, 0.15); border: 1px solid rgba(204, 85, 0, 0.3); }
.layer-3 { background: rgba(204, 85, 0, 0.25); border: 1px solid rgba(204, 85, 0, 0.4); color: var(--primary-light); }
.layer-4 { background: rgba(204, 85, 0, 0.35); border: 1px solid rgba(204, 85, 0, 0.5); color: var(--primary-light); }

/* Key exchange modes */
.key-exchange-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mode-badge {
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', monospace;
  transition: var(--transition);
}

.mode-badge.highlight {
  background: rgba(204, 85, 0, 0.2);
  border-color: rgba(204, 85, 0, 0.4);
  color: var(--primary-light);
}

/* ── ARCHITECTURE ── */

.arch-diagram {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arch-row {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.arch-box {
  flex: 1;
  max-width: 380px;
  background: var(--bg-dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.arch-box-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.arch-box-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.arch-box-items span {
  padding: 6px 14px;
  background: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.arch-client {
  border-color: rgba(204, 85, 0, 0.3);
}

.arch-arrows {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 8px 0;
}

.arch-arrow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-arrow-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

.arch-arrow-line {
  width: 2px;
  height: 30px;
}

.arch-arrow-line.dashed {
  border-left: 2px dashed var(--primary-light);
}

.arch-arrow-line.solid {
  background: var(--text-secondary);
}

/* ── WHITELABEL ── */

.whitelabel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.wl-card {
  background: var(--bg-dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.wl-card:hover {
  border-color: rgba(204, 85, 0, 0.3);
  transform: translateY(-4px);
}

.wl-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.wl-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.wl-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.wl-cta {
  text-align: center;
  padding: 40px;
  background: var(--bg-dark-3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.wl-cta h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.wl-usecases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.wl-usecases span {
  padding: 8px 18px;
  background: rgba(204, 85, 0, 0.1);
  border: 1px solid rgba(204, 85, 0, 0.25);
  border-radius: 24px;
  font-size: 14px;
  color: var(--primary-light);
  font-weight: 500;
}

/* ── COMPARISON TABLE ── */

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comparison-table th {
  background: var(--bg-dark-3);
  font-weight: 700;
  font-size: 15px;
  position: sticky;
  top: 0;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

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

.highlight-col {
  background: rgba(204, 85, 0, 0.08) !important;
  color: var(--primary-light) !important;
  font-weight: 600 !important;
}

.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* ── MADE IN ITALY ── */

.italy-banner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.italy-flags {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.italy-flag {
  font-size: 48px;
  animation: flagWave 2s ease-in-out infinite alternate;
}

.italy-flag:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes flagWave {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

.italy-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.italy-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.italy-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.italy-point {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.italy-point:hover {
  border-color: rgba(204, 85, 0, 0.3);
  background: rgba(204, 85, 0, 0.06);
}

.italy-point-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.italy-point-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.italy-point-text strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.italy-point-text span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.badge-flag {
  background: rgba(0, 140, 69, 0.15) !important;
  border-color: rgba(0, 140, 69, 0.4) !important;
  color: #4ade80 !important;
}

@media (max-width: 768px) {
  .italy-points {
    grid-template-columns: 1fr;
  }
}

/* ── CONTACT ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(204, 85, 0, 0.3);
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

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

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

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

/* ── FOOTER ── */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-company p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.q2pi-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.q2pi-brand a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.q2pi-brand a:hover {
  color: var(--primary-light);
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-bottom .footer-legal {
  max-width: 760px;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger feature cards */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.25s; }

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .security-item,
  .security-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .arch-row {
    flex-direction: column;
    align-items: center;
  }

  .arch-box {
    max-width: 100%;
  }

  .arch-arrows {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 12, 14, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 20px;
    color: var(--white);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 12px;
  }

  .section {
    padding: 60px 0;
  }

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

  .phone-mockup {
    width: 260px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }
}
