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

  :root {
    --void: #080808;
    --deep: #0E0E0E;
    --surface: #141414;
    --panel: #1A1A1A;
    --rim: #2A2020;
    --wire: #342828;
    --accent: #CFA3A0;
    --accent2: #B8847F;
    --accent3: #A8887A;
    --warm: #F0EAE8;
    --text: #F0EAE8;
    --muted: #9A8480;
    --dim: #5A4A48;
    --gold: #C9A96E;
    --serif: 'Playfair Display', serif;
    --mono: 'DM Mono', monospace;
    --sans: 'Jost', sans-serif;
  }

  html { scroll-behavior: smooth; }


  /* CURSOR */
  .cursor {
    width: 7px; height: 7px;
    background: var(--accent2);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none!important; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
  }
  .cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid rgba(207,163,160,0.5);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none!important; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 130px 56px 80px;
    position: relative;
    overflow: hidden;
  }

  .hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
  }

  .hero-orb {
    position: absolute;
    right: 5%; 
    top: 50%; 
    transform: translateY(-50%);
    width: 750px; 
    height: 750px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%,
      rgba(207,163,160,0.18) 0%,
      rgba(201,169,110,0.06) 45%,
      transparent 70%);
    border: 1px solid rgba(207,163,160,0.2);
    animation: orbPulse 7s ease-in-out infinite;
    z-index:0;
  }
  .hero-orb::before {
    content: '';
    position: absolute; inset: 24px;
    border-radius: 50%;
    border: 1px solid rgba(207,163,160,0.1);
    animation: orbSpin 10s linear infinite;
  }
  .hero-orb::after {
    content: '';
    position: absolute; inset: 72px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.1);
    animation: orbSpin 16s linear infinite reverse;
  }

  .face-wire {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .face-wire svg {
    width: 300px; height: 300px;
    animation: facePulse 4s ease-in-out infinite;
  }

  @keyframes orbPulse {
    0%,100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.025); }
  }
  @keyframes orbSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes facePulse {
    0%,100% { opacity: 0.55; }
    50% { opacity: 0.85; }
  }

  .scan-line {
    position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207,163,160,0.7), transparent);
    animation: scanMove 5s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes scanMove {
    0% { top: 15%; opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { top: 85%; opacity: 0; }
  }

  .hero-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 30px;
    display: flex; align-items: center; gap: 14px;
  }
  .hero-tag::before {
    content: '';
    display: block; width: 36px; height: 1px;
    background: var(--accent);
  }

  .hero-headline {
    font-family: var(--serif);
    font-size: clamp(50px, 6.5vw, 90px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.01em;
    max-width: 680px;
    margin-bottom: 34px;
    color: var(--text);
  }
  .hero-headline em {
    font-style: italic;
    color: var(--accent2);
  }
  .hero-headline span {
    display: block;
    color: var(--dim);
    font-size: 0.52em;
    letter-spacing: 0.08em;
    font-style: normal;
    font-weight: 300;
    margin-top: 10px;
    font-family: var(--mono);
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 52px;
    font-weight: 300;
  }

  .hero-actions { display: flex; gap: 16px; align-items: center; }

  .btn-primary {
    padding: 14px 42px;
    background: var(--text);
    color: var(--void);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: none;
    cursor: none;
    transition: all 0.3s;
  }
  .btn-primary:hover { background: var(--accent2); }

  .btn-ghost {
    padding: 14px 32px;
    border: 1px solid var(--rim);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: none;
    cursor: none;
    transition: all 0.3s;
  }
  .btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); }

  .hero-stats {
    position: absolute; bottom: 44px; left: 56px;
    display: flex; gap: 52px;
  }
  .stat-num {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 300;
    color: var(--accent2);
    line-height: 1;
  }
  .stat-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.2em;
    color: var(--dim);
    text-transform: uppercase;
    margin-top: 5px;
  }

  /* SECTIONS */

  .section-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-tag::before { content: attr(data-num); font-size: 9px; color: var(--dim); }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
  }
  .section-title em { font-style: italic; color: var(--accent2); }

  /* HOW IT WORKS */
  .how { background: var(--deep); position: relative; }
  .how::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
  }

  .how-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
    max-width: 1200px; margin: 0 auto;
  }

  .steps { display: flex; flex-direction: column; margin-top: 48px; }
  .step {
    display: flex; gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--rim);
    cursor: none; transition: all 0.3s;
  }
  .step:hover { padding-left: 8px; }
  .step-num {
    font-family: var(--mono); font-size: 9px;
    color: var(--dim); letter-spacing: 0.1em;
    flex-shrink: 0; padding-top: 4px;
  }
  .step-content h3 {
    font-family: var(--sans); font-size: 14px;
    font-weight: 500; margin-bottom: 8px; color: var(--text);
  }
  .step-content p { font-size: 13px; line-height: 1.75; color: var(--muted); font-weight: 300; }
  .step:hover .step-num { color: var(--accent2); }
  .step:hover h3 { color: var(--accent2); }

  /* MINI DEMO PANEL */
  .demo-panel {
    border: 1px solid #b8847f;
    overflow: hidden;
	width:45%;
	margin-left:55%;
	background-color:#f9f4f0;
  }
  .panel-header {
    padding: 13px 20px;
    border-bottom: 1px solid #b8847f;
    display: flex; align-items: center; gap: 12px;
  }
  .panel-dots { display: flex; gap: 6px; }
  .dot { width: 8px; height: 8px; border-radius: 50%; }
  .dot-r { background: #FF5F57; }
  .dot-y { background: #FFBD2E; }
  .dot-g { background: #28C940; }
  .panel-title {
    font-family: var(--mono); font-size: 9px;
    color: var(--dim); letter-spacing: 0.15em; margin-left: 8px;
  }
  .panel-status {
    margin-left: auto; font-family: var(--mono); font-size: 9px;
    color: var(--accent2); letter-spacing: 0.12em;
    display: flex; align-items: center; gap: 6px;
  }
  .status-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent2); animation: blink 2s infinite;
  }
  @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

  .panel-body { padding: 20px; }

  .face-3d-container {
    width: 100%; aspect-ratio: 1;
    position: relative;
    background: radial-gradient(ellipse at 50% 40%, rgba(207,163,160,0.06) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .face-3d { position: relative; width: 180px; height: 232px; }
  .face-svg-wrap {
    position: absolute; inset: 0;
    animation: faceRotate 8s ease-in-out infinite;
  }
  @keyframes faceRotate {
    0%,100% { transform: perspective(600px) rotateY(-8deg); }
    50% { transform: perspective(600px) rotateY(8deg); }
  }
  .face-mini-svg { width: 100%; height: 100%; }

  .data-point {
    position: absolute; width:3px; height:3px; border-radius:50%;
    background: var(--accent2); box-shadow:0 0 5px rgba(207,163,160,0.5);
    animation: dpulse 3s ease-in-out infinite;
  }
  @keyframes dpulse { 0%,100%{transform:scale(1);opacity:.7;} 50%{transform:scale(1.4);opacity:.9;} }

  .scan-active-mini {
    position: absolute; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, rgba(207,163,160,0.7), transparent);
    animation: activeScan 3s ease-in-out infinite;
  }
  @keyframes activeScan {
    0%{top:10%;opacity:0} 15%{opacity:.7} 85%{opacity:.7} 100%{top:90%;opacity:0}
  }

  .metrics-panel {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 16px;
  }
  .metric {
    border: 1px solid #b8847f;
    padding: 12px 14px; 
    position: relative; 
    overflow: hidden;
  }
  .metric::before {
    content: ''; position: absolute; top:0; left:0;
    width: var(--fill, 70%); height: 2px;
    background: var(--mc, var(--accent));
  }
  .metric-label { font-family:var(--mono); font-size:8px; color:var(--dim); letter-spacing:.15em; text-transform:uppercase; margin-bottom:6px; }
  .metric-val { font-family:var(--serif); font-size:20px; color:#b8847f; line-height:1; }
  .metric-unit { font-family:var(--mono); font-size:9px; color:var(--muted); margin-left:3px; }

  /* FEATURES */
  .features { background: var(--void); }
  .features-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1px; background: var(--rim);
    margin-top: 60px; max-width: 1200px; margin-left:auto; margin-right:auto;
  }
  .feature-card {
    background: var(--void); padding: 34px 26px;
    transition: all 0.4s; position: relative; overflow: hidden;
  }
  .feature-card::after {
    content:''; position:absolute; bottom:0; left:0;
    width:0; height:2px; background:var(--accent2); transition:width .4s;
  }
  .feature-card:hover { background: var(--deep); }
  .feature-card:hover::after { width:100%; }
  .feat-icon {
    width:38px; height:38px; border:1px solid var(--wire);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:22px; font-size:14px; color:var(--muted);
    transition:all .4s;
  }
  .feature-card:hover .feat-icon { border-color:var(--accent2); color:var(--accent2); }
  .feature-card h3 { font-family:var(--sans); font-size:13px; font-weight:500; margin-bottom:10px; letter-spacing:.02em; }
  .feature-card p { font-size:12px; line-height:1.75; color:var(--muted); font-weight:300; }

  /* INTERACTIVE DEMO */
  .demo-section { background: var(--deep); padding: 80px 0; }
  .demo-header { padding: 0 56px 48px; text-align:center; }

  .dashboard-frame {
    max-width: 1100px; 
    margin: 0 auto;
    margin-top:50px;
    border: 1px solid #b8847f;
  }
  .dash-topbar {
    padding: 12px 20px; 
    border-bottom: 1px solid #b8847f;
    display: flex; align-items: center; gap: 16px;
  }
  .dash-tabs { display:flex; gap:2px; margin-left:20px; }
  .dash-tab {
    font-family:var(--mono); font-size:9px; letter-spacing:.12em;
    padding:6px 16px; color:var(--dim); text-transform:uppercase;
    cursor:none; border:none; border-bottom:2px solid transparent;
    background:none; transition:all .2s;
  }
  .dash-tab:hover { color:var(--muted); }
  .dash-tab.active { color:var(--accent2); border-bottom:2px solid var(--accent2); }
  .dash-patient {
    margin-left:auto; font-family:var(--mono); font-size:9px;
    color:var(--muted); letter-spacing:.1em;
    display:flex; align-items:center; gap:8px;
  }
  .patient-avatar {
    width:24px; height:24px; border-radius:50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display:flex; align-items:center; justify-content:center;
    font-size:10px; font-family:var(--serif); color:white;
  }

  .dash-body { display:grid; grid-template-columns:1fr 310px; height:510px; }
  .dash-main {
    padding:24px; border-right:1px solid #b8847f;;
    position:relative; overflow:hidden;
    background: radial-gradient(ellipse at 50% 30%, rgba(207,163,160,0.04) 0%, transparent 60%);
  }
  .tab-content { display:none; height:100%; }
  .tab-content.active { display:flex; flex-direction:column; }

  /* Tab 1 — Realistic facial mesh */
  .view-3d { flex:1; display:flex; align-items:center; justify-content:center; position:relative; }
  .big-face { width:280px; height:360px; position:relative; }
  .bf-svg-wrap {
    position:absolute; inset:0;
    animation: bigFaceRotate 10s ease-in-out infinite;
    transform-style: preserve-3d;
  }
  @keyframes bigFaceRotate {
    0%,100%{transform:perspective(900px) rotateY(-9deg) rotateX(2deg);}
    50%{transform:perspective(900px) rotateY(9deg) rotateX(-2deg);}
  }
  .bf-face-svg { width:100%; height:100%; }

  .view-controls { position:absolute; bottom:0; left:0; right:0; display:flex; gap:8px; padding:12px 0; justify-content:center; }
  .view-btn {
    font-family:var(--mono); 
    font-size:8px; 
    letter-spacing:.12em;
    padding:5px 12px; 
    background:#f9f4f1;
    border:1px solid #b8847f;
    color:#b8847f;);
    cursor:none; text-transform:uppercase; transition:all .2s;
  }
  .view-btn:hover, .view-btn.active { border-color:var(--accent2); color:var(--accent2); }

  /* Tab 2 */
  .skin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; flex:1; overflow-y:auto; }
  .skin-card { background:#f9f4f1; border:1px solid #b8847f; padding:14px; }
  .skin-card-title { font-family:var(--mono); font-size:8px; color:var(--dim); letter-spacing:.15em; text-transform:uppercase; margin-bottom:10px; }
  .skin-bar { height:3px; background:#ccc; border-radius:2px; margin-bottom:8px; overflow:hidden; }
  .skin-fill { height:100%; border-radius:2px; }
  .skin-val { font-family:var(--serif); font-size:26px; font-weight:300; line-height:1; color:#b8847f;; }
  .skin-desc { font-family:var(--mono); font-size:8px; color:var(--muted); letter-spacing:.08em; margin-top:4px; text-transform:uppercase; }

  /* Tab 3 */
  .ba-container { flex:1; display:flex; gap:14px; align-items:stretch; }
  .ba-panel { flex:1; background:#f9f4f1; border:1px solid #b8847f; display:flex; flex-direction:column; overflow:hidden; }
  .ba-label { padding:9px 14px; font-family:var(--mono); font-size:8px; color:#b8847f; letter-spacing:.2em; text-transform:uppercase; border-bottom:1px solid #b8847f;}
  .ba-face { flex:1; display:flex; align-items:center; justify-content:center; }
  .ba-face-before {
    width:90px; height:118px;
    border-radius:50% 50% 45% 45% / 55% 55% 45% 45%;
    border:1px solid rgba(176,160,157,0.4);
    background:rgba(176,160,157,0.03);
  }
  .ba-face-after {
    width:90px; height:118px;
    border-radius:50% 50% 45% 45% / 55% 55% 45% 45%;
    border:1px solid rgba(207,163,160,0.6);
    background:rgba(207,163,160,0.04);
    box-shadow:0 0 18px rgba(207,163,160,0.08);
  }
  .ba-delta { display:flex; flex-direction:column; gap:10px; justify-content:center; padding:0 6px; }
  .delta-val { font-family:var(--serif); font-size:17px; font-weight:300; color:var(--accent2); text-align:center; }
  .delta-lbl { font-family:var(--mono); font-size:7px; color:var(--dim); letter-spacing:.1em; text-transform:uppercase; text-align:center; }

  /* Sidebar */
  .dash-sidebar { padding:18px; overflow-y:auto; }
  .sidebar-section { margin-bottom:22px; }
  .sidebar-title { font-family:var(--mono); font-size:8px; color:var(--dim); letter-spacing:.22em; text-transform:uppercase; margin-bottom:10px; padding-bottom:7px; border-bottom:1px solid var(--rim); }
  .info-row { display:flex; justify-content:space-between; padding:5px 0; border-bottom:1px solid var(--rim); }
  .info-key { font-family:var(--mono); font-size:8px; color:var(--dim); letter-spacing:.1em; }
  .info-val { font-family:var(--mono); font-size:8px; color:#000;; letter-spacing:.05em; }
  .progress-item { margin-bottom:10px; }
  .progress-header { display:flex; justify-content:space-between; margin-bottom:4px; }
  .progress-label { font-family:var(--mono); font-size:8px; color:var(--muted); letter-spacing:.08em; }
  .progress-pct { font-family:var(--mono); font-size:8px; color:#000; }
  .progress-bar { height:2px; background:var(--rim); border-radius:2px; overflow:hidden; }
  .progress-fill { height:100%; border-radius:2px; }
  .action-btn {
    width:100%; 
    padding:9px; 
    background:transparent;
    border:1px solid #000; 
    color:#000;
    font-family:var(--mono); 
    font-size:8px; 
    letter-spacing:.15em;
    text-transform:uppercase; 
    cursor:none; 
    transition:all .2s;
    margin-bottom:5px; 
    text-align:left; 
    display:flex; 
    align-items:center; gap:8px;
  }
  .action-btn:hover { border-color:#b8847f; color:#b8847f; }
  .action-btn span { opacity:.5; }

  /* CTA */
  .cta-section {
    padding: 120px 56px; text-align:center;
    position:relative; overflow:hidden;
    background: #080808;
  }
  .cta-section::before {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(207,163,160,0.08) 0%, transparent 70%);
  }
  .cta-section h2 { font-family:var(--serif); font-size:clamp(38px,5.5vw,74px); font-weight:300; line-height:1.1; margin-bottom:22px; }
  .cta-section p { font-size:14px; color:var(--muted); max-width:480px; margin:0 auto 48px; line-height:1.8; }


  /* REVEAL */
  .reveal { opacity:0; transform:translateY(28px); transition:all .85s cubic-bezier(.16,1,.3,1); }
  .reveal.visible { opacity:1; transform:translateY(0); }

  /* RESPONSIVE */
  @media (max-width:900px) {
    .hero { padding:100px 20px 60px; }
    .hero-orb { display:none; }
    .how-grid { grid-template-columns:1fr; gap:40px; }
    .features-grid { grid-template-columns:1fr 1fr; }
    .dash-body { grid-template-columns:1fr; }
    .dash-sidebar { display:none; }
    .hero-stats { display:none; }
  }