/* HamCheen WebSite — offline-first, IRANYekanXFaNum, HamCheen Mobile theme */

@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #42a5f5;
  --accent-yellow: #f3ba0f;
  --accent-green: #419e5e;
  --accent-red: #dd4b38;
  --accent-blue: #4b86e5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5a6b7d;
  --border: rgba(21, 101, 192, 0.12);
  --shadow: 0 8px 32px rgba(13, 71, 161, 0.1);
  --shadow-lg: 0 20px 60px rgba(13, 71, 161, 0.15);
  --radius: 20px;
  --radius-lg: 32px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: 'IRANYekanXFaNum', Tahoma, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

body.is-splashing { overflow: hidden; }

.site-root {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.site-root.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Splash (مثل اپ موبایل) ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d47a1 0%, #1565c0 35%, #1976d2 72%, #42a5f5 100%);
  color: #fff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.splash-orb {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
.splash-orb-1 { width: 240px; height: 240px; top: -90px; right: -70px; opacity: 0.09; animation: splashOrb1 4.2s ease-in-out infinite; }
.splash-orb-2 { width: 300px; height: 300px; bottom: -130px; left: -90px; opacity: 0.07; animation: splashOrb2 4.2s ease-in-out infinite; }
.splash-orb-3 { width: 72px; height: 72px; top: 140px; left: 30px; opacity: 0.06; animation: splashOrb3 4.2s ease-in-out infinite; }
.splash-orb-4 { width: 96px; height: 96px; bottom: 180px; right: 40px; opacity: 0.05; animation: splashOrb4 4.2s ease-in-out infinite; }

@keyframes splashOrb1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 18px); }
}
@keyframes splashOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -22px); }
}
@keyframes splashOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 12px); }
}
@keyframes splashOrb4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 14px); }
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  width: min(100%, 400px);
}

.splash-logo-stage {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 32px;
}
.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: splashRing 1.8s ease-out 0.45s both;
}
@keyframes splashRing {
  from { transform: scale(0.6); opacity: 0.55; }
  to { transform: scale(1.55); opacity: 0; }
}
.splash-logo-circle {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.3);
  animation: splashLogoIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both, splashPulse 1.4s ease-in-out 1.5s infinite;
}
@keyframes splashLogoIn {
  from { transform: scale(0.35); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes splashPulse {
  0%, 100% { box-shadow: 0 0 36px rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 48px rgba(255, 255, 255, 0.42); }
}
.splash-logo {
  animation: splashSpin 2s ease-in-out 0.55s both;
}
@keyframes splashSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splash-title {
  margin: 0 0 14px;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  animation: splashFadeUp 0.9s ease 0.75s both;
}
.splash-tagline {
  margin: 0 0 40px;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.7;
  animation: splashFadeUp 0.9s ease 0.95s both;
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-loader {
  animation: splashFadeUp 0.9s ease 1.15s both;
}
.splash-progress {
  width: 220px;
  height: 4px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  overflow: hidden;
}
.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 99px;
  animation: splashProgress 3s ease-in-out 0.45s forwards;
}
@keyframes splashProgress {
  to { width: 100%; }
}
.splash-label {
  font-size: 0.88rem;
  opacity: 0.85;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(13, 71, 161, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 44px; height: 44px; }
.site-nav:not(.scrolled) .brand { color: #fff; }
.site-nav:not(.scrolled) .nav-links a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.95);
}
.site-nav:not(.scrolled) .nav-links a:not(.nav-cta):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.site-nav:not(.scrolled) .menu-toggle { color: #fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.35);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }
.nav-cta-outline {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1.5px solid rgba(21, 101, 192, 0.45);
  box-shadow: none !important;
}
.site-nav:not(.scrolled) .nav-cta-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}
.nav-cta-outline:hover {
  background: rgba(21, 101, 192, 0.08) !important;
  color: var(--primary) !important;
}
.site-nav:not(.scrolled) .nav-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 48px) 80px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 45%, #1976d2 100%);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--accent-yellow); top: -10%; left: -5%; animation-delay: 0s; }
.blob-2 { width: 360px; height: 360px; background: var(--accent-green); bottom: 10%; right: -8%; animation-delay: -4s; }
.blob-3 { width: 280px; height: 280px; background: var(--accent-red); top: 40%; right: 20%; animation-delay: -8s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 16px;
  animation: fadeInUp 0.8s 0.1s ease both;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 24px;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-desc {
  font-size: 1.05rem;
  color: #fff;
  opacity: 0.95;
  max-width: 520px;
  margin: 0 0 32px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.hero-visual {
  position: relative;
  animation: fadeInUp 1s 0.3s ease both;
}
.phone-mockup {
  position: relative;
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  backdrop-filter: blur(8px);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 24px 20px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.phone-logo { width: 72px; margin: 0 auto 16px; }
.phone-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  animation: cardSlide 0.6s ease both;
}
.phone-card:nth-child(2) { animation-delay: 0.15s; }
.phone-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes cardSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.phone-card-title { font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); margin-bottom: 4px; }
.phone-card-value { font-weight: 700; font-size: 1.2rem; }
.phone-card-sub { font-size: 0.8rem; color: var(--text-muted); }

.floating-chip {
  position: absolute;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: chipBob 4s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -12%; animation-delay: 0s; }
.chip-2 { bottom: 18%; right: -14%; animation-delay: -2s; }
@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Stats ── */
.stats {
  margin-block: -40px 0;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ── Sections ── */
.section {
  padding-block: 80px;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding: 6px 14px;
  background: rgba(21, 101, 192, 0.08);
  border-radius: 999px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--primary-dark);
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Architecture cards ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.arch-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.arch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.arch-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.arch-icon svg { width: 26px; height: 26px; }
.arch-icon-blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.arch-icon-green { background: linear-gradient(135deg, #2e7d52, var(--accent-green)); }
.arch-icon-yellow { background: linear-gradient(135deg, #c49000, var(--accent-yellow)); }
.arch-icon-red { background: linear-gradient(135deg, #c62828, var(--accent-red)); }
.arch-icon-purple { background: linear-gradient(135deg, #5e35b1, #7e57c2); }
.arch-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.arch-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary-dark);
  flex: 1;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-premium {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}
.badge-phase {
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary);
}
.feature-card p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
  padding-block: 4px;
}
.feature-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Principles strip ── */
.principles {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding-block: 64px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.principle-item {
  text-align: center;
  padding: 20px;
}
.principle-item svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  opacity: 0.9;
}
.principle-item h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.principle-item p { margin: 0; font-size: 0.88rem; opacity: 0.85; }

/* ── Phases timeline ── */
.timeline {
  position: relative;
  padding-inline: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 50%;
  width: 3px;
  background: linear-gradient(var(--primary), var(--primary-light));
  border-radius: 3px;
  transform: translateX(50%);
}
.phase-item {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
.phase-item:nth-child(even) { flex-direction: row-reverse; text-align: left; }
.phase-item:nth-child(even) .phase-content { text-align: right; }
.phase-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-light);
  z-index: 1;
}
.phase-content {
  flex: 1;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.phase-content h3 { margin: 0 0 6px; font-size: 1rem; color: var(--primary-dark); }
.phase-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ── Experience: Life Hub + Bento ── */
.experience-section {
  background: linear-gradient(180deg, var(--bg) 0%, #eef3f9 50%, var(--bg) 100%);
}

.life-hub {
  position: relative;
  width: min(400px, 88vw);
  height: min(400px, 88vw);
  margin: 0 auto 40px;
}
.life-hub-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(21, 101, 192, 0.18);
}
.life-hub-ring-2 {
  inset: 22%;
  border-style: solid;
  border-color: rgba(21, 101, 192, 0.08);
  animation: hubRingPulse 3s ease-in-out infinite;
}
@keyframes hubRingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.life-hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  border: 3px solid rgba(21, 101, 192, 0.12);
}
.life-hub-center img { width: 52px; height: 52px; }
.life-hub-center span { font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; }

.life-hub-orbit {
  position: absolute;
  inset: 0;
}

.hub-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  margin: -44px 0 0 -44px;
  padding: 12px 8px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: hubNodeFloat 4s ease-in-out infinite;
}
.hub-node:nth-child(2) { animation-delay: -0.6s; }
.hub-node:nth-child(3) { animation-delay: -1.2s; }
.hub-node:nth-child(4) { animation-delay: -1.8s; }
.hub-node:nth-child(5) { animation-delay: -2.4s; }
.hub-node:nth-child(6) { animation-delay: -3s; }
@keyframes hubNodeFloat {
  0%, 100% { transform: var(--hub-pos) translateY(0); }
  50% { transform: var(--hub-pos) translateY(-6px); }
}
.hub-node:hover {
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.hub-node svg { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--primary); }
.hub-node span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--primary-dark); }

.hub-node-finance { --hub-pos: rotate(0deg) translateY(-168px); }
.hub-node-shopping { --hub-pos: rotate(60deg) translateY(-168px) rotate(-60deg); }
.hub-node-inventory { --hub-pos: rotate(120deg) translateY(-168px) rotate(-120deg); }
.hub-node-meal { --hub-pos: rotate(180deg) translateY(-168px) rotate(-180deg); }
.hub-node-reminder { --hub-pos: rotate(240deg) translateY(-168px) rotate(-240deg); }
.hub-node-family { --hub-pos: rotate(300deg) translateY(-168px) rotate(-300deg); }
.hub-node-finance { transform: rotate(0deg) translateY(-168px); }
.hub-node-shopping { transform: rotate(60deg) translateY(-168px) rotate(-60deg); }
.hub-node-inventory { transform: rotate(120deg) translateY(-168px) rotate(-120deg); }
.hub-node-meal { transform: rotate(180deg) translateY(-168px) rotate(-180deg); }
.hub-node-reminder { transform: rotate(240deg) translateY(-168px) rotate(-240deg); }
.hub-node-family { transform: rotate(300deg) translateY(-168px) rotate(-300deg); }

.flow-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin-bottom: 40px;
  padding: 20px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-width: 100px;
}
.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step span { font-size: 0.82rem; font-weight: 600; color: var(--text); text-align: center; }
.flow-arrow {
  color: var(--primary-light);
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.7;
  animation: flowPulse 2s ease-in-out infinite;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.bento-hero {
  grid-row: span 2;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary) 55%, #1976d2);
  color: #fff;
  border: none;
}
.bento-card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }
.bento-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.bento-card.bento-hero h3,
.bento-card.bento-hero p {
  color: #fff !important;
}
.bento-card.bento-hero p { opacity: 1; }
.bento-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-yellow);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  top: -40%;
  left: -20%;
  animation: blobFloat 8s ease-in-out infinite;
}
.bento-wide { grid-column: span 2; }
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-icon-blue { background: rgba(21, 101, 192, 0.12); color: var(--primary); }
.bento-icon-green { background: rgba(65, 158, 94, 0.12); color: var(--accent-green); }
.bento-icon-yellow { background: rgba(243, 186, 15, 0.15); color: #c49000; }

/* ── CTA ── */
.cta-section {
  padding-block: 80px;
}
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1976d2 50%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-yellow);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  top: -50%;
  left: -10%;
  animation: blobFloat 10s ease infinite;
}
.cta-box h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.cta-box p {
  position: relative;
  margin: 0 0 28px;
  color: #fff;
  opacity: 1;
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}
.cta-box .btn-primary { position: relative; }

/* ── About developer ── */
.about-section {
  background: linear-gradient(180deg, var(--bg) 0%, #eef4fb 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.about-profile {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary) 55%, #1976d2);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.about-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.about-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}
.about-role {
  margin: 0 0 18px;
  opacity: 0.92;
  font-size: 0.95rem;
}
.about-meta {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.92;
}
.about-meta li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.about-meta li:last-child { border-bottom: 0; }
.about-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition);
}
.about-site-btn:hover { transform: translateY(-2px); }
.about-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.about-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.85;
  margin: 0 0 16px;
}
.about-content p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.85;
  font-size: 0.98rem;
}
.about-content p:last-of-type { margin-bottom: 22px; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ── Contact ── */
.contact-section {
  background: var(--surface);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, 0.25);
}
.contact-card-static { cursor: default; }
.contact-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}
.contact-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.contact-map {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-map-link {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.08);
}

/* ── Footer ── */
.site-footer {
  background: #0a1929;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 48px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { width: 56px; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 0.92rem; line-height: 1.8; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.footer-credit a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

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

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-hero { grid-row: span 1; }
  .bento-wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-profile { position: static; }
  .life-hub { width: min(340px, 92vw); height: min(340px, 92vw); }
  .hub-node-finance { --hub-pos: rotate(0deg) translateY(-140px); transform: rotate(0deg) translateY(-140px); }
  .hub-node-shopping { --hub-pos: rotate(60deg) translateY(-140px) rotate(-60deg); transform: rotate(60deg) translateY(-140px) rotate(-60deg); }
  .hub-node-inventory { --hub-pos: rotate(120deg) translateY(-140px) rotate(-120deg); transform: rotate(120deg) translateY(-140px) rotate(-120deg); }
  .hub-node-meal { --hub-pos: rotate(180deg) translateY(-140px) rotate(-180deg); transform: rotate(180deg) translateY(-140px) rotate(-180deg); }
  .hub-node-reminder { --hub-pos: rotate(240deg) translateY(-140px) rotate(-240deg); transform: rotate(240deg) translateY(-140px) rotate(-240deg); }
  .hub-node-family { --hub-pos: rotate(300deg) translateY(-140px) rotate(-300deg); transform: rotate(300deg) translateY(-140px) rotate(-300deg); }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .floating-chip { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .flow-arrow { display: none; }
  .flow-strip { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
