/* Enfo Smart NFC Platform — Apple-inspired Predominantly White + Enfo Cobalt Blue Theme */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-surface-elevated: #ffffff;
  --color-ink: #0a0b0e;
  --color-ink-muted: #5b6475;
  --color-primary: #0052ff;
  --color-primary-dark: #0038b8;
  --color-primary-soft: #eef4ff;
  --color-border: #e5e9f0;
  --color-success: #059669;
  --color-success-soft: #ecfdf5;
  --color-warn: #d97706;
  --color-warn-soft: #fffbeb;
  --color-danger: #e11d48;
  --color-danger-soft: #fff1f2;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 11, 14, 0.05);
  --shadow: 0 12px 32px -12px rgba(10, 11, 14, 0.09);
  --shadow-lg: 0 24px 60px -16px rgba(0, 82, 255, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif; color: var(--color-ink); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--color-bg); color: var(--color-ink); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main { flex: 1; }

.container-content { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4rem; }
.section-sm { padding-block: 2.5rem; }
.section-surface { background: var(--color-surface); border-block: 1px solid var(--color-border); }

/* Announcement & Header */
.announcement-bar { background: var(--color-ink); color: #fff; font-size: 0.72rem; letter-spacing: 0.03em; }
.announcement-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 1rem; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand-logo { display: inline-flex; align-items: center; gap: 0.5rem; shrink: 0; }
.brand-logo img { height: 38px; width: auto; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav-link:hover, .nav-link.is-active { background: var(--color-primary-soft); color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.mobile-nav-strip { display: flex; gap: 1rem; overflow-x: auto; padding: 0.5rem 1.25rem; background: var(--color-surface); border-top: 1px solid var(--color-border); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-nav-strip { display: none; }
}

/* Typography & Layout Helpers */
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); }
.pill-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.38rem 0.9rem; border-radius: 999px; background: var(--color-primary-soft); border: 1px solid #dbeafe; color: var(--color-primary); font-size: 0.72rem; font-weight: 700; }
.pill-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--color-primary); }
.hero-title { margin: 0.75rem 0 0; font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.page-title { margin: 0.4rem 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.lead { margin: 0.9rem 0 0; color: var(--color-ink-muted); font-size: 1.02rem; max-width: 60ch; }
.muted { color: var(--color-ink-muted); }

/* Cards & Grids */
.apple-card { background: var(--color-surface-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .grid-sidebar { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; font-weight: 600; font-size: 0.875rem; padding: 0.75rem 1.4rem; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.15s, border-color 0.15s; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #0052ff 0%, #0038b8 100%); color: #fff; box-shadow: 0 8px 20px -6px rgba(0, 82, 255, 0.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(0, 82, 255, 0.55); }
.btn-dark { background: var(--color-ink); color: #fff; }
.btn-dark:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--color-ink); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; }
.icon-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cart-badge-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding-inline: 5px; border-radius: 999px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Inputs & Forms */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.75rem; font-weight: 700; color: var(--color-ink); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 12px; padding: 0.65rem 0.9rem; background: #fff; font-size: 0.875rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1); }
.alert { padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.82rem; font-weight: 600; }
.alert-info { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.alert-success { background: var(--color-success-soft); color: #065f46; }
.alert-danger { background: var(--color-danger-soft); color: #9f1239; }
.alert-warn { background: var(--color-warn-soft); color: #92400e; }

/* Chips & Tabs */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; font-size: 0.78rem; font-weight: 600; transition: all 0.15s; }
.chip.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tab-btn { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; font-size: 0.8rem; font-weight: 700; }
.tab-btn.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* Product & Category Cards */
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.product-card:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.product-thumb { background: var(--color-surface); padding: 1rem; position: relative; }
.product-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: contain; border-radius: 12px; }
.product-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.swatch-row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; }
.swatch { width: 15px; height: 15px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.18); display: inline-block; }

/* Card Customiser Preview */
.nfc-card-preview { aspect-ratio: 1.586/1; max-width: 440px; width: 100%; margin-inline: auto; border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 50px -12px rgba(10, 11, 14, 0.32); position: relative; overflow: hidden; }
.nfc-skin-cobalt { background: linear-gradient(135deg, #0052ff 0%, #002b8a 100%); color: #fff; }
.nfc-skin-obsidian { background: linear-gradient(135deg, #1b1e26 0%, #090a0d 100%); color: #fff; }
.nfc-skin-apple-white { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); color: #0a0b0e; border: 1px solid var(--color-border); }
.nfc-skin-champagne { background: linear-gradient(135deg, #2b2217 0%, #140f09 100%); color: #f8e4ad; }

/* Digital Business Card Profile Viewer (2nd Image Reference Styles) */
.profile-stage { min-height: 100vh; padding: 2rem 1rem; background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 45%, #eef4ff 100%); }
.profile-card { width: 100%; max-width: 430px; margin-inline: auto; border-radius: 32px; overflow: hidden; box-shadow: 0 28px 70px -16px rgba(10, 11, 14, 0.35); position: relative; }
.profile-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem 0; position: relative; z-index: 20; }
.profile-top-btn { border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.72rem; font-weight: 700; border: none; background: rgba(255,255,255,0.16); color: inherit; backdrop-filter: blur(8px); }
.profile-avatar { width: 96px; height: 96px; border-radius: 999px; overflow: hidden; margin: 0 auto 0.9rem; border: 4px solid rgba(255,255,255,0.9); background: #1e293b; box-shadow: 0 10px 24px rgba(0,0,0,0.28); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { padding: 0 1.5rem 2rem; text-align: center; position: relative; z-index: 10; }
.profile-social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-top: 1.15rem; }
.profile-circle-icon { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; transition: transform 0.15s; }
.profile-circle-icon:hover { transform: scale(1.08); }
.profile-actions { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.65rem; }
.profile-bar-btn { width: 100%; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.875rem; font-weight: 700; border: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: filter 0.15s, transform 0.15s; }
.profile-bar-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.profile-section-block { margin-top: 1.4rem; text-align: left; }
.profile-section-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; margin-bottom: 0.6rem; }
.profile-subcard { border-radius: 14px; padding: 0.8rem 0.95rem; font-size: 0.78rem; margin-bottom: 0.5rem; display: block; }

/* 5 Card Themes from 2nd Image */
.theme-enfo-cyber { background: #07090f; color: #ffffff; border: 1px solid #1e293b; }
.theme-enfo-cyber .profile-hero-cap { height: 145px; margin-top: -44px; background: linear-gradient(135deg, #0052ff 0%, #0284c7 60%, #0a0b0e 100%); clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%); }
.theme-enfo-cyber .profile-avatar { margin-top: -54px; }
.theme-enfo-cyber .profile-name { color: #38bdf8; }
.theme-enfo-cyber .profile-circle-icon { background: rgba(14,165,233,0.18); color: #38bdf8; border: 1px solid rgba(56,189,248,0.4); }
.theme-enfo-cyber .profile-bar-primary { background: linear-gradient(90deg, #0052ff, #0ea5e9); color: #fff; }
.theme-enfo-cyber .profile-bar-secondary, .theme-enfo-cyber .profile-subcard { background: rgba(255,255,255,0.08); color: #fff; }

.theme-obsidian-wave { background: linear-gradient(155deg, #171717 0%, #0b0c0e 55%, #1d1a14 100%); color: #ffffff; border: 1px solid rgba(255,255,255,0.12); }
.theme-obsidian-wave .profile-hero-cap { height: 118px; margin-top: -44px; background: radial-gradient(circle at 20% 20%, rgba(212,175,55,0.28), transparent 65%); }
.theme-obsidian-wave .profile-avatar { margin-top: -46px; }
.theme-obsidian-wave .profile-circle-icon { background: rgba(212,175,55,0.18); color: #f4d06f; border: 1px solid rgba(212,175,55,0.45); }
.theme-obsidian-wave .profile-bar-primary { background: linear-gradient(135deg, #d4af37, #b6891f); color: #161106; }
.theme-obsidian-wave .profile-bar-secondary, .theme-obsidian-wave .profile-subcard { background: rgba(255,255,255,0.08); color: #fff; }

.theme-noir-portrait { background: #08080a; color: #ffffff; border: 1px solid rgba(255,255,255,0.12); }
.theme-noir-portrait .profile-hero-cap { height: 168px; margin-top: -44px; background: radial-gradient(circle at top, rgba(0,82,255,0.45), #08080a 80%); }
.theme-noir-portrait .profile-avatar { margin-top: -66px; }
.theme-noir-portrait .profile-circle-icon { background: #fff; color: #0a0b0e; }
.theme-noir-portrait .profile-bar-primary { background: #fff; color: #0a0b0e; }
.theme-noir-portrait .profile-bar-secondary, .theme-noir-portrait .profile-subcard { background: rgba(255,255,255,0.09); color: #fff; }

.theme-warm-executive { background: linear-gradient(180deg, #2b2018 0%, #1a130e 60%, #110c09 100%); color: #fbf7f0; border: 1px solid #5b4530; }
.theme-warm-executive .profile-hero-cap { height: 118px; margin-top: -44px; background: linear-gradient(180deg, #493524, #281d15); }
.theme-warm-executive .profile-avatar { margin-top: -44px; }
.theme-warm-executive .profile-circle-icon { background: #e3b857; color: #1a1208; }
.theme-warm-executive .profile-bar-primary { background: #e3b857; color: #1a1208; }
.theme-warm-executive .profile-bar-secondary, .theme-warm-executive .profile-subcard { background: rgba(227,184,87,0.14); color: #fbf7f0; border: 1px solid rgba(227,184,87,0.28); }

.theme-apple-minimal { background: #ffffff; color: #0a0b0e; border: 1px solid var(--color-border); }
.theme-apple-minimal .profile-hero-cap { height: 84px; margin-top: -44px; background: linear-gradient(135deg, #eef4ff, #ffffff); }
.theme-apple-minimal .profile-top-btn { background: #f1f5f9; color: #0a0b0e; }
.theme-apple-minimal .profile-avatar { margin-top: -28px; }
.theme-apple-minimal .profile-circle-icon { background: #eef4ff; color: #0052ff; }
.theme-apple-minimal .profile-bar-primary { background: #0052ff; color: #fff; }
.theme-apple-minimal .profile-bar-secondary, .theme-apple-minimal .profile-subcard { background: #f5f7fa; color: #0a0b0e; border: 1px solid var(--color-border); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10,11,14,0.62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { width: 100%; max-width: 390px; background: #fff; color: #0a0b0e; border-radius: 24px; padding: 1.5rem; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35); }
.hidden { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: 3.5rem 0 2.5rem; font-size: 0.875rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.75rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; color: var(--color-ink-muted); }
.footer-list a:hover { color: var(--color-primary); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.76rem; color: var(--color-ink-muted); }

/* Analytics Trend Bar */
.trend-bar { height: 10px; border-radius: 999px; background: var(--color-surface); overflow: hidden; display: flex; }
.trend-seg-nfc { background: #0052ff; }
.trend-seg-qr { background: #38bdf8; }
.trend-seg-visit { background: #94a3b8; }
