*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#0e0c12;
  --bg2:#16141c;
  --bg3:#1e1b24;
  --text:#e8e4ef;
  --text2:#8a8494;
  --accent:#e87b3e;
  --accent2:#c46a2e;
  --accent3:#ffffff;
  --rose:#7b4a8e;
  --plum:#5a3d7a;
}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:'';position:fixed;inset:0;z-index:9999;pointer-events:none;
  opacity:.035;
  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)'/%3E%3C/svg%3E");
}

/* NAV */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:1.25rem 2rem;
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(14,12,18,.8);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(232,123,62,.06);
}
.nav-logo{
  font-family:'DM Serif Display',serif;
  font-size:1.1rem;
  color:var(--accent3);
  letter-spacing:.08em;
  text-decoration:none;
}
.nav-links{display:flex;gap:2rem;align-items:center}
.nav-links a{
  color:var(--text2);text-decoration:none;font-size:.82rem;
  font-weight:400;letter-spacing:.03em;transition:color .2s;
}
.nav-links a.btn-primary{color:var(--bg)}.nav-links a.btn-primary:hover{color:var(--bg)}
.nav-links a:hover{color:var(--text)}

/* HERO */
.hero{
  min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;padding:6rem 2rem 4rem;
  position:relative;
}
.hero-svg-wrap{
  width:320px;height:320px;margin-bottom:3rem;
  position:relative;opacity:0;animation:fadeUp .8s .2s forwards;
}
.hero-svg-wrap svg{width:100%;height:100%}
.hero h1{
  font-family:'DM Serif Display',serif;
  font-size:clamp(2.8rem,6vw,4.5rem);
  font-weight:400;letter-spacing:.04em;
  color:var(--accent3);
  margin-bottom:.75rem;
  opacity:0;animation:fadeUp .8s .4s forwards;
}
.hero p{
  font-size:1.05rem;color:var(--text2);
  max-width:440px;line-height:1.7;font-weight:350;
  margin-bottom:2.5rem;
  opacity:0;animation:fadeUp .8s .6s forwards;
}
.hero-actions{
  display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;
  opacity:0;animation:fadeUp .8s .8s forwards;
}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1.75rem;border-radius:6px;
  font-size:.88rem;font-weight:500;letter-spacing:.02em;
  text-decoration:none;transition:all .25s;border:none;cursor:pointer;
}
.btn-primary{
  background:var(--accent);color:var(--bg);
}
.btn-primary:hover{background:var(--accent3);transform:translateY(-1px)}
.btn-secondary{
  background:transparent;color:var(--text2);
  border:1px solid rgba(232,123,62,.2);
}
.btn-secondary:hover{border-color:var(--accent);color:var(--text)}

/* SECTIONS */
section{padding:6rem 2rem}
#features,#pedigree,#database,#screenshots{padding:3rem 2rem}
.container{max-width:960px;margin:0 auto}
.section-label{
  font-family:'JetBrains Mono',monospace;
  font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--accent2);margin-bottom:1rem;
}
.section-title{
  font-family:'DM Serif Display',serif;
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  font-weight:400;color:var(--text);
  margin-bottom:1rem;line-height:1.25;
}
.section-desc{
  color:var(--text2);font-size:.95rem;max-width:520px;
  line-height:1.75;margin-bottom:3rem;font-weight:350;
}

/* FEATURES GRID */
.features-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1px;background:rgba(232,123,62,.08);
  border:1px solid rgba(232,123,62,.08);border-radius:10px;
  overflow:hidden;
}
.feature{
  background:var(--bg2);padding:2rem;
  transition:background .3s;
}
.feature:hover{background:var(--bg3)}
.feature-icon{
  width:36px;height:36px;margin-bottom:1.25rem;
  color:var(--accent);opacity:.7;
}
.feature h3{
  font-size:.95rem;font-weight:500;margin-bottom:.5rem;
  color:var(--text);letter-spacing:.01em;
}
.feature p{
  font-size:.84rem;color:var(--text2);line-height:1.65;font-weight:350;
}

/* PEDIGREE SECTION */
.pedigree{
  display:grid;grid-template-columns:1fr 1fr;gap:4rem;
  align-items:center;
}
.pedigree-visual{
  position:relative;
  display:flex;align-items:center;justify-content:center;
}
.pedigree-visual svg{width:100%;max-width:380px;height:auto}

/* DATABASE SECTION */
.db-tags{
  display:flex;flex-wrap:wrap;gap:.5rem;margin-top:2rem;
}
.db-tag{
  padding:.4rem .9rem;border-radius:20px;
  font-size:.78rem;font-weight:400;
  border:1px solid rgba(232,123,62,.15);
  color:var(--text2);background:rgba(232,123,62,.04);
  transition:all .2s;
}
.db-tag:hover{border-color:var(--accent);color:var(--text)}
.db-tag.active{
  border-color:var(--accent);color:var(--accent);
  background:rgba(232,123,62,.08);
}

/* STATS */
.stats{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:rgba(232,123,62,.08);
  border:1px solid rgba(232,123,62,.08);border-radius:10px;
  overflow:hidden;margin-top:4rem;
}
.stat{background:var(--bg2);padding:2.5rem 2rem;text-align:center}
.stat-num{
  font-family:'DM Serif Display',serif;
  font-size:2.2rem;color:var(--accent3);margin-bottom:.25rem;
}
.stat-label{font-size:.78rem;color:var(--text2);letter-spacing:.04em}

/* CTA */
.cta-section{
  text-align:center;padding:8rem 2rem;
  border-top:1px solid rgba(232,123,62,.06);
}
.cta-section h2{
  font-family:'DM Serif Display',serif;
  font-size:clamp(1.6rem,3vw,2.2rem);
  color:var(--text);margin-bottom:.75rem;font-weight:400;
}
.cta-section p{
  color:var(--text2);margin-bottom:2rem;font-size:.92rem;
}

/* FOOTER */
footer{
  padding:2rem;text-align:center;
  border-top:1px solid rgba(232,123,62,.06);
}
footer p{font-size:.75rem;color:var(--text2);opacity:.6}
.footer-disclaimer{color:#3f3f46;opacity:1;margin-top:.5rem}
.footer-email{color:var(--accent);opacity:1}

/* ANIMATIONS */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}
.reveal{opacity:0;transform:translateY(20px);transition:all .6s cubic-bezier(.22,1,.36,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* SVG ANIM */
.node-pulse{animation:pulse 3s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.5}50%{opacity:1}}
.line-draw{
  stroke-dasharray:200;stroke-dashoffset:200;
  animation:draw 2s ease forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}
.line-draw-d1{animation-delay:.3s}
.line-draw-d2{animation-delay:.6s}
.line-draw-d3{animation-delay:.9s}
.line-draw-d4{animation-delay:1.2s}
.line-draw-d5{animation-delay:1.5s}
.node-fade{opacity:0;animation:nodeIn .5s ease forwards}
.nd1{animation-delay:.5s}.nd2{animation-delay:.8s}
.nd3{animation-delay:1.1s}.nd4{animation-delay:1.4s}
.nd5{animation-delay:1.7s}.nd6{animation-delay:2s}
.nd7{animation-delay:2.3s}
@keyframes nodeIn{to{opacity:1}}

/* CAROUSEL */
.carousel{position:relative;margin-top:3rem}
.carousel-stage{position:relative;overflow:hidden;border-radius:10px;border:1px solid rgba(232,123,62,.08);background:var(--bg2);aspect-ratio:16/9;cursor:pointer}
.carousel-track{display:flex;height:100%;transition:transform .4s cubic-bezier(.22,1,.36,1);will-change:transform}
.carousel-slide{min-width:100%;height:100%}
.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(14,12,18,.75);border:1px solid rgba(232,123,62,.2);color:var(--text);font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s;z-index:2;backdrop-filter:blur(6px)}
.carousel-arrow:hover{background:rgba(232,123,62,.15);border-color:var(--accent)}
.carousel-arrow.prev{left:.75rem}
.carousel-arrow.next{right:.75rem}
.carousel-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1.25rem}
.carousel-dot{width:8px;height:8px;border-radius:50%;background:rgba(232,123,62,.15);border:none;cursor:pointer;padding:0;transition:background .25s,transform .25s}
.carousel-dot:hover{background:rgba(232,123,62,.35)}
.carousel-dot.active{background:var(--accent);transform:scale(1.3)}

/* FULLSCREEN OVERLAY */
.gallery-overlay{position:fixed;inset:0;z-index:200;background:rgba(14,12,18,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s}
.gallery-overlay.active{opacity:1;pointer-events:auto}
.gallery-overlay img{max-width:92vw;max-height:90vh;border-radius:10px;box-shadow:0 0 60px rgba(232,123,62,.08);transform:scale(.95);transition:transform .3s}
.gallery-overlay.active img{transform:scale(1)}
.gallery-close{position:absolute;top:1.5rem;right:1.5rem;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:var(--text);font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
.gallery-close:hover{background:rgba(255,255,255,.1);color:var(--accent3)}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:var(--text);font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.gallery-nav:hover{background:rgba(255,255,255,.1)}
.gallery-nav.prev{left:1.5rem}
.gallery-nav.next{right:1.5rem}
.gallery-counter{position:absolute;bottom:1.5rem;left:50%;transform:translateX(-50%);font-size:.78rem;color:var(--text2);font-family:'JetBrains Mono',monospace}

/* RESPONSIVE */
/* SCROLLBAR */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:linear-gradient(to bottom,var(--accent),var(--rose));border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--accent)}

@media(max-width:768px){
  .pedigree{grid-template-columns:1fr;gap:2rem}
  .pedigree-visual{display:none}
  .stats{display:flex;flex-wrap:wrap;justify-content:center;gap:0;background:none;border:none;margin-top:2rem}
  .stat{padding:1rem 1.25rem;background:none}
  .stat-num{font-size:1.3rem}
  .stat-label{font-size:.7rem}
  .feature{padding:1.25rem 1.5rem}
  .feature-icon{width:28px;height:28px;margin-bottom:.75rem}
  .feature h3{font-size:.85rem}
  .feature p{font-size:.78rem;line-height:1.5}
  .nav-logo{display:none}
  .nav-links{width:100%;justify-content:center}
  .nav-links .btn-primary{display:none}
  nav{padding:1rem;justify-content:center}
  .hero-svg-wrap{width:240px;height:240px}
}
