/* Luno Wear — styles (extracted from index.html) */

  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root { --navy:#0a0f1e; --teal:#00c9b1; --white:#f5f9ff; --muted:#8892a4; --card-bg:#111827; --card-border:#1e2d40; }
  html { scroll-behavior: smooth; }
  body { background: var(--navy); color: var(--white); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 3rem; background: rgba(10,15,30,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,201,177,0.1); }
  .logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--teal); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
  .nav-links a:hover { color: var(--teal); }
  .nav-cta { background: var(--teal); color: var(--navy); border: none; padding: 0.6rem 1.4rem; border-radius: 2rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
  .nav-cta:hover { background: #00e5cc; transform: translateY(-1px); }

  .hero { min-height: 100vh; display: flex; align-items: center; padding: 6rem 3rem 4rem; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,201,177,0.12) 0%, transparent 70%); pointer-events: none; }
  .hero-content { max-width: 600px; z-index: 1; }
  .hero-badge { display: inline-block; background: rgba(0,201,177,0.12); color: var(--teal); border: 1px solid rgba(0,201,177,0.3); border-radius: 2rem; padding: 0.4rem 1rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
  .hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.1rem,7vw,4.2rem); line-height: 1.12; font-weight: 600; margin-bottom: 1.5rem; }
  .hero h1 span { color: var(--teal); }
  .hero p { font-size: 1.05rem; line-height: 1.8; color: var(--muted); margin-bottom: 2.5rem; max-width: 500px; }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary { background: var(--teal); color: var(--navy); border: none; padding: 0.9rem 2rem; border-radius: 2rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
  .btn-primary:hover { background: #00e5cc; transform: translateY(-2px); }
  .btn-secondary { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); padding: 0.9rem 2rem; border-radius: 2rem; font-weight: 400; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
  .btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

  .hero-visual { position: absolute; right: 3rem; top: 50%; transform: translateY(-50%); width: 340px; }
  .device-ring { width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(0,201,177,0.3); display: flex; align-items: center; justify-content: center; position: relative; margin: 0 auto; animation: rotate 20s linear infinite; }
  @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .device-inner { width: 180px; height: 180px; border-radius: 50%; background: linear-gradient(135deg,#0f2027,#1a3a4a); border: 2px solid rgba(0,201,177,0.5); display: flex; align-items: center; justify-content: center; animation: rotate 20s linear infinite reverse; box-shadow: 0 0 40px rgba(0,201,177,0.15); }
  .device-icon { font-size: 3rem; }
  .pulse-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity:1; transform:translateX(-50%) scale(1); } 50% { opacity:0.4; transform:translateX(-50%) scale(0.7); } }
  .metric-card { position: absolute; background: rgba(17,24,39,0.95); border: 1px solid var(--card-border); border-radius: 12px; padding: 0.75rem 1rem; }
  .metric-card.top-right { top: 0; right: -20px; }
  .metric-card.bottom-left { bottom: 10px; left: -30px; }
  .metric-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.2rem; }
  .metric-value { font-size: 1.2rem; font-weight: 600; color: var(--teal); }

  .stats-bar { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 2rem 3rem; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
  .stat { text-align: center; }
  .stat-num { font-size: 2rem; font-weight: 600; color: var(--teal); }
  .stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

  section { padding: 5rem 3rem; }
  .section-label { color: var(--teal); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
  .section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 600; margin-bottom: 1rem; }
  .section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 540px; }

  .how-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.5rem; margin-top: 3rem; }
  .step-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 2rem 1.5rem; position: relative; overflow: hidden; transition: border-color 0.3s; }
  .step-card:hover { border-color: rgba(0,201,177,0.4); }
  .step-num { font-size: 3.5rem; font-weight: 700; color: rgba(0,201,177,0.08); position: absolute; top: 1rem; right: 1.2rem; }
  .step-icon { font-size: 1.8rem; margin-bottom: 1rem; }
  .step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; }
  .step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

  .features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; margin-top: 3rem; }
  .feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 1.8rem; transition: transform 0.2s, border-color 0.3s; }
  .feature-card:hover { transform: translateY(-4px); border-color: rgba(0,201,177,0.3); }
  .feature-icon { font-size: 2rem; margin-bottom: 1rem; }
  .feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
  .feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

  /* ALERTS SECTION */
  .alerts-section { background: rgba(226,75,74,0.03); border-top: 1px solid rgba(226,75,74,0.08); border-bottom: 1px solid rgba(226,75,74,0.08); }
  .alerts-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
  .alerts-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .filter-btn { background: transparent; border: 1px solid var(--card-border); color: var(--muted); padding: 0.4rem 1rem; border-radius: 2rem; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
  .filter-btn.active, .filter-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,201,177,0.07); }
  .alerts-list { display: flex; flex-direction: column; gap: 1rem; }
  .alert-item {
    background: var(--card-bg); border-left: 4px solid transparent;
    border-radius: 12px; padding: 1.2rem 1.4rem;
    display: flex; align-items: flex-start; gap: 1rem;
    cursor: pointer; transition: all 0.25s; position: relative;
  }
  .alert-item:hover { transform: translateX(4px); }
  .alert-item.critical { border-left-color: #e24b4a; }
  .alert-item.warning { border-left-color: #e5a32a; }
  .alert-item.info { border-left-color: var(--teal); }
  .alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
  .alert-body { flex: 1; }
  .alert-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
  .alert-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
  .alert-meta { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
  .alert-badge { font-size: 0.7rem; padding: 0.2rem 0.7rem; border-radius: 2rem; font-weight: 500; }
  .badge-critical { background: rgba(226,75,74,0.15); color: #f09595; }
  .badge-warning { background: rgba(229,163,42,0.15); color: #fac775; }
  .badge-info { background: rgba(0,201,177,0.12); color: var(--teal); }
  .alert-time { font-size: 0.75rem; color: var(--muted); }
  .alert-chevron { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; transition: transform 0.2s; }
  .alert-item:hover .alert-chevron { transform: translateX(3px); color: var(--teal); }
  .alert-detail { display: none; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 0.8rem 1rem; margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); line-height: 1.6; border-left: 2px solid rgba(0,201,177,0.2); }
  .alert-detail.open { display: block; }

  /* CHALLENGES SECTION */
  .challenges-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
  .tab-btn { background: transparent; border: 1px solid var(--card-border); color: var(--muted); padding: 0.5rem 1.2rem; border-radius: 2rem; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
  .tab-btn.active { background: var(--teal); color: var(--navy); border-color: var(--teal); font-weight: 600; }
  .tab-content { display: none; }
  .tab-content.active { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.2rem; }
  .challenge-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; }
  .challenge-card:hover { border-color: rgba(0,201,177,0.4); transform: translateY(-3px); }
  .challenge-card.completed { border-color: rgba(0,201,177,0.3); }
  .challenge-card.completed::after { content: '✓ Done'; position: absolute; top: 1rem; right: 1rem; background: rgba(0,201,177,0.15); color: var(--teal); font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 2rem; }
  .challenge-card.locked { opacity: 0.5; cursor: not-allowed; }
  .challenge-card.locked:hover { transform: none; border-color: var(--card-border); }
  .challenge-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
  .challenge-emoji { font-size: 1.8rem; }
  .challenge-diff { font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.7rem; border-radius: 2rem; }
  .diff-easy { background: rgba(0,201,177,0.12); color: var(--teal); }
  .diff-medium { background: rgba(229,163,42,0.12); color: #fac775; }
  .diff-hard { background: rgba(226,75,74,0.12); color: #f09595; }
  .challenge-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
  .challenge-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
  .challenge-progress { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 0.6rem; }
  .progress-bar { height: 100%; background: var(--teal); border-radius: 2px; transition: width 0.6s ease; }
  .progress-label { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }
  .challenge-btn { width: 100%; margin-top: 1rem; background: rgba(0,201,177,0.1); color: var(--teal); border: 1px solid rgba(0,201,177,0.25); padding: 0.6rem; border-radius: 2rem; font-size: 0.83rem; cursor: pointer; transition: all 0.2s; font-weight: 500; }
  .challenge-btn:hover { background: var(--teal); color: var(--navy); }
  .challenge-btn:disabled { opacity: 0.4; cursor: not-allowed; }
  .challenge-btn:disabled:hover { background: rgba(0,201,177,0.1); color: var(--teal); }
  .xp-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: #e5a32a; font-weight: 600; }

  /* DEMO */
  .demo-section { background: rgba(0,201,177,0.03); border-top: 1px solid rgba(0,201,177,0.08); border-bottom: 1px solid rgba(0,201,177,0.08); }
  .demo-inner { max-width: 700px; margin: 0 auto; text-align: center; }
  .risk-display { margin: 3rem auto; width: 200px; height: 200px; border-radius: 50%; border: 3px solid var(--teal); display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,201,177,0.05); box-shadow: 0 0 50px rgba(0,201,177,0.1); animation: breathe 4s ease-in-out infinite; }
  @keyframes breathe { 0%,100% { box-shadow: 0 0 30px rgba(0,201,177,0.1); } 50% { box-shadow: 0 0 60px rgba(0,201,177,0.2); } }
  .risk-pct { font-size: 3rem; font-weight: 700; color: var(--teal); }
  .risk-sublabel { font-size: 0.8rem; color: var(--muted); }
  .risk-legend { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
  .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; }

  /* CHATBOT */
  .chatbot-preview { max-width: 420px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 1.5rem; margin: 2.5rem auto 0; }
  .chat-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem; }
  .chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,201,177,0.15); border: 1px solid rgba(0,201,177,0.3); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
  .chat-name { font-size: 0.9rem; font-weight: 600; }
  .chat-status { font-size: 0.72rem; color: var(--teal); }
  .chat-bubble { border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.8rem; }
  .chat-bubble.ai { background: rgba(0,201,177,0.08); border: 1px solid rgba(0,201,177,0.15); }
  .chat-bubble.user { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--muted); text-align: right; }
  .chat-input-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
  .chat-input-row input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 2rem; padding: 0.6rem 1rem; color: var(--white); font-size: 0.85rem; outline: none; }
  .chat-send { background: var(--teal); border: none; border-radius: 50%; width: 36px; height: 36px; color: var(--navy); font-size: 1rem; cursor: pointer; }

  .cta-section { text-align: center; }
  .cta-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 1rem; }
  .cta-section p { color: var(--muted); margin-bottom: 2rem; }
  .cta-email { display: flex; gap: 0.75rem; justify-content: center; max-width: 420px; margin: 0 auto; flex-wrap: wrap; }
  .cta-email input { flex: 1; min-width: 200px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 2rem; padding: 0.85rem 1.3rem; color: var(--white); font-size: 0.9rem; outline: none; }
  .cta-email input:focus { border-color: rgba(0,201,177,0.4); }
  .cta-email button { background: var(--teal); color: var(--navy); border: none; padding: 0.85rem 1.8rem; border-radius: 2rem; font-weight: 600; cursor: pointer; font-size: 0.9rem; }

  /* App download badges (coming soon) */
  .app-download { margin-top: 3rem; }
  .app-download-label { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.1rem; letter-spacing: 0.02em; }
  .app-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .app-badge {
    position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
    background: #000; border: 1px solid var(--card-border); border-radius: 14px;
    padding: 0.6rem 1.15rem; min-width: 185px;
    cursor: not-allowed; opacity: 0.55; transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent; user-select: none;
  }
  .app-badge:hover { opacity: 0.8; }
  .app-badge svg { width: 26px; height: 26px; fill: var(--white); flex-shrink: 0; }
  .app-badge-text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
  .app-badge-text small { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .app-badge-text strong { font-size: 1rem; color: var(--white); font-weight: 600; }
  .app-badge-soon {
    position: absolute; top: -9px; right: -8px;
    background: var(--teal); color: var(--navy);
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem; border-radius: 1rem; text-transform: uppercase; white-space: nowrap;
  }

  footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
  footer .logo { font-size: 1.1rem; }

  /* HAMBURGER MENU */
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; z-index: 200; -webkit-tap-highlight-color: transparent; }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(10,15,30,0.97); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: var(--white); text-decoration: none; font-size: 1.5rem; font-weight: 500; transition: color 0.2s; }
  .mobile-nav a:hover { color: var(--teal); }
  .mobile-nav .nav-cta { font-size: 1rem; padding: 0.85rem 2.2rem; }

  /* LANGUAGE SWITCHER */
  .lang-switch { display: flex; gap: 0.25rem; align-items: center; }
  .lang-btn { background: transparent; border: 1px solid var(--card-border); color: var(--muted); padding: 0.3rem 0.55rem; border-radius: 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
  .lang-btn:hover { border-color: var(--teal); color: var(--teal); }
  .lang-btn.active { background: var(--teal); color: var(--navy); border-color: var(--teal); }
  .lang-btn.active:hover { color: var(--navy); }
  .nav-right { display: flex; align-items: center; gap: 1rem; }
  .mobile-nav .lang-switch { margin-top: 0.5rem; }
  .mobile-nav .lang-btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-right .nav-cta { display: none; }
    .nav-right .lang-switch { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 5.5rem 1.5rem 3rem; }
    .hero-visual { display: none; }
    .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.85rem; letter-spacing: 0.05em; }
    .hero p { font-size: 0.98rem; line-height: 1.7; }
    section { padding: 3.5rem 1.5rem; }
    .stats-bar { gap: 1.5rem; }
    footer { padding: 1.5rem; text-align: center; justify-content: center; }
  }
  @media (max-width: 400px) {
    .hero h1 { font-size: 1.95rem; }
    .hero-badge { font-size: 0.65rem; }
  }

  /* ===== ENHANCED VISUALS (SVG icons, media slots, polish) ===== */
  .svg-icon { width: 28px; height: 28px; display: block; }
  .svg-icon svg { width: 100%; height: 100%; }
  .icon-badge {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,201,177,0.18), rgba(0,201,177,0.04));
    border: 1px solid rgba(0,201,177,0.25); margin-bottom: 1.1rem;
  }
  .icon-badge .svg-icon { width: 26px; height: 26px; }
  .icon-badge svg { stroke: var(--teal); }

  /* Higgsfield media placeholder — swap data-hf slots with generated media later */
  .hf-slot {
    position: relative; border-radius: 18px; overflow: hidden;
    background:
      repeating-linear-gradient(45deg, rgba(0,201,177,0.04) 0 12px, rgba(0,201,177,0.08) 12px 24px),
      var(--card-bg);
    border: 1px dashed rgba(0,201,177,0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--muted); min-height: 200px; gap: 0.5rem; padding: 1.5rem;
  }
  .hf-slot .hf-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
  .hf-slot .hf-desc { font-size: 0.82rem; line-height: 1.5; max-width: 320px; }
  .hf-slot img, .hf-slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hf-slot .hf-ph-icon { opacity: 0.5; }

  /* Hero device — refined SVG */
  .hero-device { width: 340px; max-width: 100%; filter: drop-shadow(0 20px 50px rgba(0,201,177,0.18)); }
  .hd-ring { transform-origin: center; animation: rotate 26s linear infinite; }
  .hd-ring-2 { transform-origin: center; animation: rotate 32s linear infinite reverse; }
  .hd-pulse { animation: hdpulse 2.4s ease-in-out infinite; }
  @keyframes hdpulse { 0%,100%{opacity:1;} 50%{opacity:0.25;} }

  /* Promo video band */
  .promo-band { padding-top: 1rem; }
  .promo-frame {
    max-width: 860px; margin: 2.5rem auto 0; aspect-ratio: 16/9;
    border-radius: 20px; overflow: hidden; border: 1px solid var(--card-border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  }
  .promo-frame .hf-slot { height: 100%; min-height: 0; border-style: solid; border-color: var(--card-border); }
  .promo-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
  .promo-play {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg,#00c9b1,#00a896);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(0,201,177,0.4);
  }

  /* section image pair */
  .media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
  @media (max-width: 768px) { .media-grid { grid-template-columns: 1fr; } }
  .media-card {
    margin: 0; border-radius: 18px; overflow: hidden;
    background: var(--card-bg); border: 1px solid var(--card-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: flex; flex-direction: column;
  }
  .media-card picture { display: block; width: 100%; }
  .media-card img { width: 100%; aspect-ratio: 17 / 10; object-fit: contain; display: block; background: #fff; }
  .media-card figcaption {
    font-size: 0.82rem; color: var(--muted); text-align: center;
    padding: 0.85rem 1rem; background: var(--card-bg); border-top: 1px solid var(--card-border);
  }

  /* safe-area for notched phones */
  #floatingChatBtn { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }

/* ===== Chat modal & floating button ===== */
  @keyframes dot1 { 0%,60%,100%{opacity:0.2;transform:scale(0.8);} 30%{opacity:1;transform:scale(1);} }
  @keyframes slideUp { from{transform:translateY(40px);opacity:0;} to{transform:translateY(0);opacity:1;} }

  #chatModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.65);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }
  #chatModal.open { display: flex; }

  #chatModalBox {
    width: 100%;
    max-width: 480px;
    height: 90dvh;
    max-height: 660px;
    background: #111827;
    border: 1px solid #1e2d40;
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.25s ease;
  }
  @media(min-width:540px) {
    #chatModal { padding: 1rem; align-items: flex-end; }
    #chatModalBox { border-radius: 22px; max-height: 640px; }
  }

  .chat-modal-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(0,201,177,0.12);
    background: rgba(0,201,177,0.04);
    flex-shrink: 0;
  }
  .chat-modal-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,201,177,0.15);
    border: 1px solid rgba(0,201,177,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
  }
  .chat-close-btn {
    background: rgba(255,255,255,0.06); border: none; color: #8892a4;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
  }
  .chat-close-btn:active { background: rgba(255,255,255,0.12); }

  #chatMessages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.7rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #chatMessages::-webkit-scrollbar { width: 3px; }
  #chatMessages::-webkit-scrollbar-thumb { background: rgba(0,201,177,0.2); border-radius: 2px; }

  .luno-msg {
    border-radius: 16px; padding: 0.8rem 1rem;
    font-size: 0.88rem; line-height: 1.65;
    max-width: 90%; word-wrap: break-word; word-break: break-word;
  }
  .ai-msg { background: rgba(0,201,177,0.08); border: 1px solid rgba(0,201,177,0.15); color: #f5f9ff; align-self: flex-start; }
  .user-msg { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: #c8d3e0; align-self: flex-end; text-align: right; }
  .error-msg { background: rgba(226,75,74,0.08); border: 1px solid rgba(226,75,74,0.2); color: #f09595; align-self: flex-start; }

  #typingIndicator { display:none; padding: 0 1rem 0.3rem; }
  .typing-dots {
    display: inline-flex; gap: 4px; align-items: center;
    background: rgba(0,201,177,0.08); border: 1px solid rgba(0,201,177,0.15);
    border-radius: 12px; padding: 0.55rem 0.85rem;
  }
  .typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: #00c9b1;
  }
  .typing-dots span:nth-child(1){animation:dot1 1.2s infinite;}
  .typing-dots span:nth-child(2){animation:dot1 1.2s infinite 0.2s;}
  .typing-dots span:nth-child(3){animation:dot1 1.2s infinite 0.4s;}

  .chat-input-area {
    padding: 0.75rem 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; gap: 0.5rem; flex-shrink: 0;
    background: #111827;
  }
  #chatInput {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2rem; padding: 0.7rem 1.1rem;
    color: #f5f9ff; font-size: 16px; /* 16px prevents iOS zoom */
    outline: none; font-family: 'DM Sans', sans-serif;
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.2s;
  }
  #chatInput:focus { border-color: rgba(0,201,177,0.45); }
  #chatSendBtn {
    background: #00c9b1; border: none; border-radius: 50%;
    width: 42px; height: 42px; min-width: 42px;
    color: #0a0f1e; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  #chatSendBtn:active { transform: scale(0.92); }
  #chatSendBtn:disabled { opacity: 0.45; }

  .chat-disclaimer {
    padding: 0.45rem 1rem 0.7rem;
    text-align: center; font-size: 0.67rem; color: #3d4d62; line-height: 1.4;
    flex-shrink: 0;
  }

  #floatingChatBtn {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
    background: linear-gradient(135deg,#00c9b1,#00a896);
    border: none; border-radius: 50%;
    width: 56px; height: 56px;
    color: #0a0f1e; font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,201,177,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  #floatingChatBtn:active { transform: scale(0.92); }
