:root {
  --ink: #e8eef8;
  --ink-soft: #9fb6d8;
  --navy: #081427;
  --navy-mid: #0f2440;
  --panel: rgba(15, 36, 64, 0.88);
  --accent: #2c6cea;
  --accent-bright: #4d8cff;
  --mist: #c5d4ec;
  --font-display: "Sora", "Avenir Next", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(44, 108, 234, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3fa 0%, #d5e0f0 45%, #c2d0e6 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: var(--ink);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-links a {
  text-decoration: none;
  opacity: 0.92;
}

.header-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 39, 0.35) 0%, rgba(8, 20, 39, 0.82) 72%),
    url("../images/NFCNexus_Hero.jpg") center / cover no-repeat;
  transform: scale(1.03);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(44, 108, 234, 0.18), transparent 42%);
  pointer-events: none;
  animation: pulse-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.6%, 0); }
}

@keyframes pulse-glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  opacity: 0.95;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent-bright);
  color: #06101f;
}

.btn-primary:hover {
  background: #6ea0ff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(232, 238, 248, 0.5);
}

.btn-ghost:hover {
  background: rgba(232, 238, 248, 0.1);
}

.animate-rise {
  animation: rise 0.9s ease both;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }

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

.section {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-mid);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #3a4f6a;
}

.feature-list {
  margin: 0 0 2rem;
  padding-left: 1.15rem;
  color: #3a4f6a;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--navy-mid);
  color: var(--ink);
  border-radius: 6px;
}

.cta-band p {
  margin: 0;
  max-width: 26rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: #4a5f78;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* —— Embedded iOS companion mock —— */
.ios-mock {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.ios-mock-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ios-mock-header .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.ios-mock-header h2 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-mid);
}

.ios-mock-header .lede {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3a4f6a;
}

.ios-mock-note {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  padding: 0.65rem 1rem;
  background: rgba(44, 108, 234, 0.1);
  border: 1px solid rgba(44, 108, 234, 0.28);
  border-radius: 0.5rem;
  color: #1a4a9e;
  font-size: 0.875rem;
  text-align: center;
}

.ios-mock-stage {
  display: flex;
  justify-content: center;
}

.device-col {
  margin: 0;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a4f6a;
}

.plat-ico {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 6px;
  background: var(--accent);
}

.phone {
  --ios-blue: #007aff;
  --ios-bg: #f2f2f7;
  --ios-card: #ffffff;
  --ios-label: #000000;
  --ios-secondary: #6c6c70;
  --ios-sep: rgba(60, 60, 67, 0.12);
  --ios-destructive: #ff3b30;
  --phone-bezel: #0c1524;
  width: 280px;
  height: 580px;
  background: var(--phone-bezel);
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 30px 50px rgba(8, 20, 39, 0.28);
  position: relative;
}

.island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background: #050a12;
  border-radius: 14px;
  z-index: 6;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--ios-bg);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ios-label);
  transition: background 0.25s ease, color 0.25s ease;
}

.phone[data-theme="dark"] .phone-screen,
.phone[data-theme="system"].prefers-dark .phone-screen {
  --ios-bg: #000000;
  --ios-card: #1c1c1e;
  --ios-label: #f5f5f7;
  --ios-secondary: #98989d;
  --ios-sep: rgba(84, 84, 88, 0.65);
  --ios-blue: #0a84ff;
  background: var(--ios-bg);
  color: var(--ios-label);
}

.screen-pane {
  position: absolute;
  inset: 0 0 52px 0;
  display: flex;
  flex-direction: column;
  padding: 36px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.screen-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0 18px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.nav-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 4px 16px 8px;
  flex-shrink: 0;
}

.nav-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 12px;
  flex-shrink: 0;
}

.nav-action {
  border: 0;
  background: none;
  color: var(--ios-blue);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
}

.pane-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.ios-title2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ios-headline {
  margin: 14px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.ios-sub,
.ios-callout,
.ios-footnote {
  margin: 0 0 6px;
  color: var(--ios-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.ios-callout {
  font-size: 0.78rem;
  white-space: pre-line;
}

.ios-footnote {
  font-size: 0.7rem;
}

.ios-footnote code {
  font-size: 0.65rem;
}

.ios-error {
  margin: 8px 0 0;
  color: var(--ios-destructive);
  font-size: 0.7rem;
}

.segmented {
  display: flex;
  background: rgba(118, 118, 128, 0.16);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.seg {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ios-label);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
}

.seg.on {
  background: var(--ios-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.phone[data-theme="dark"] .seg.on,
.phone[data-theme="system"].prefers-dark .seg.on {
  background: #636366;
}

.latest-card {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 12px;
}

.phone[data-theme="dark"] .latest-card,
.phone[data-theme="system"].prefers-dark .latest-card {
  background: rgba(10, 132, 255, 0.18);
}

.latest-label {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.scan-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.scan-icon {
  color: var(--ios-blue);
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}

.btn-prominent {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ios-blue);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-prominent:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-bordered {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid var(--ios-blue);
  border-radius: 8px;
  color: var(--ios-blue);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.group-box {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--ios-card);
  border-radius: 10px;
  border: 1px solid var(--ios-sep);
}

.group-box-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ios-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.group-box p {
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ios-sep);
}

.activity-list .act-label {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.activity-list .act-meta,
.activity-list .act-time {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ios-secondary);
}

.activity-list .act-time {
  font-size: 0.68rem;
  margin-top: 2px;
}

.empty-msg {
  margin-top: 8px;
}

.ios-form {
  margin: 0;
}

.form-section {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: var(--ios-card);
  border-radius: 10px;
  overflow: hidden;
}

.form-section legend {
  float: left;
  width: 100%;
  padding: 8px 12px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ios-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-section .ios-callout,
.form-section .ios-footnote {
  padding: 0 12px 10px;
}

.field {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--ios-sep);
}

.field-label {
  display: block;
  font-size: 0.68rem;
  color: var(--ios-secondary);
  margin-bottom: 2px;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ios-label);
  font: inherit;
  font-size: 0.85rem;
  padding: 2px 0;
  outline: none;
}

.btn-destructive {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--ios-destructive);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  border-top: 1px solid var(--ios-sep);
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: blur(12px);
  z-index: 5;
  padding: 2px 0 6px;
}

.phone[data-theme="dark"] .tab-bar,
.phone[data-theme="system"].prefers-dark .tab-bar {
  background: rgba(28, 28, 30, 0.94);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  background: none;
  color: var(--ios-secondary);
  font: inherit;
  font-size: 0.55rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.tab-ico {
  display: flex;
  line-height: 0;
}

.tab.on {
  color: var(--ios-blue);
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem;
  }

  .hero-inner {
    padding-bottom: 3.25rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone {
    width: 260px;
    height: 540px;
  }
}
