/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;line-height:1.6;-webkit-text-size-adjust:100%}
body{font-family:"Inter","Segoe UI","Helvetica Neue",Arial,sans-serif;font-weight:400;background:#0D1B2A;color:#E0E0E0;min-height:100vh;overflow-x:hidden}
ul,ol{list-style:none}
a{text-decoration:none;color:inherit;transition:color 0.25s}
a:focus-visible{outline:2px solid #00E676;outline-offset:4px;border-radius:2px}
img{display:block;max-width:100%}
button{border:none;background:transparent;cursor:pointer;font:inherit;color:inherit}
:focus-visible{outline:2px solid #00E676;outline-offset:4px}

/* ===== CSS Variables ===== */
:root{
  --color-primary:#1A237E;
  --color-primary-variant:#283593;
  --color-accent:#00E676;
  --color-accent-secondary:#FFD700;
  --color-surface:#0D1B2A;
  --color-on-primary:#FFFFFF;
  --color-on-accent:#000000;
  --color-on-surface:#E0E0E0;
  --color-error:#FF5252;
  --color-success:#00C853;
  --font-headline:"Montserrat","Helvetica Neue",Arial,sans-serif;
  --font-body:"Inter","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --font-special:"Playfair Display","Times New Roman",serif;
  --container-max:1280px;
  --header-height:64px;
  --progress-height:4px;
  --transition-speed:0.35s;
  --glass-bg:rgba(26,35,126,0.65);
  --glass-border:rgba(255,255,255,0.08);
}

/* ===== Skip Link ===== */
.skip-link{
  position:fixed;top:-100%;left:1rem;z-index:10000;
  padding:0.75rem 1.5rem;background:#1A237E;color:#FFFFFF;
  font-size:0.95rem;font-weight:600;border-radius:0 0 6px 6px;
  transition:top 0.3s;box-shadow:0 2px 12px rgba(0,0,0,0.5)
}
.skip-link:focus{top:0}

/* ===== Header ===== */
.site-header{
  position:fixed;top:0;left:0;width:100%;z-index:9000;
  background:#1A237E;height:var(--header-height);
  box-shadow:0 2px 20px rgba(0,0,0,0.4);
  display:flex;flex-direction:column;
  border-bottom:1px solid rgba(255,255,255,0.06)
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:100%;padding:0 1.5rem;
  max-width:var(--container-max);margin:0 auto;width:100%
}
.brand{display:flex;flex-direction:column;line-height:1.2}
.brand-name{
  font-family:var(--font-headline);font-weight:900;font-size:1.35rem;
  color:#FFFFFF;letter-spacing:-0.02em
}
.brand-subtext{
  font-family:var(--font-body);font-size:0.7rem;font-weight:400;
  color:rgba(255,255,255,0.55);letter-spacing:0.06em;text-transform:uppercase
}
.nav-toggle{
  position:relative;width:36px;height:36px;display:flex;
  flex-direction:column;justify-content:center;align-items:center;
  gap:5px;border-radius:4px;transition:background 0.25s;
  z-index:9100
}
.nav-toggle:hover{background:rgba(255,255,255,0.08)}
.nav-toggle-line{
  display:block;width:24px;height:2px;background:#FFFFFF;
  border-radius:2px;transition:all 0.3s
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1){
  transform:translateY(7px) rotate(45deg)
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2){
  opacity:0
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3){
  transform:translateY(-7px) rotate(-45deg)
}

/* ===== Navigation Menu ===== */
.nav-menu{
  position:fixed;top:var(--header-height);left:0;bottom:0;
  width:300px;max-width:80vw;z-index:8999;
  background:var(--glass-bg);backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-right:1px solid var(--glass-border);
  transform:translateX(-100%);transition:transform var(--transition-speed) ease;
  display:flex;flex-direction:column;padding:2rem 1.5rem 1.5rem;
  box-shadow:4px 0 40px rgba(0,0,0,0.5);
  overflow-y:auto
}
.nav-menu[data-open]{transform:translateX(0)}
.nav-list{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:2rem}
.nav-list a{
  display:block;padding:0.85rem 1rem;
  font-family:var(--font-headline);font-weight:700;font-size:1.1rem;
  color:rgba(255,255,255,0.75);letter-spacing:0.02em;
  border-radius:6px;transition:all 0.25s;
  border-left:3px solid transparent
}
.nav-list a:hover{
  color:#FFFFFF;background:rgba(0,230,118,0.15);border-left-color:#00E676
}
.nav-list a[aria-current="page"]{
  color:#FFFFFF;background:rgba(0,230,118,0.12);border-left-color:#00E676;
  font-weight:900
}
.nav-meta{margin-top:auto;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.08)}
.nav-meta-text{
  font-family:var(--font-special);font-size:0.85rem;color:rgba(255,215,0,0.6);
  font-style:italic
}

/* ===== Data Progress ===== */
.data-progress{
  position:absolute;bottom:0;left:0;width:100%;height:var(--progress-height);
  background:rgba(255,255,255,0.06);overflow:hidden
}
.progress-bar{
  display:block;height:100%;width:0%;
  background:linear-gradient(90deg,#00E676,#FFD700,#00E676);
  background-size:200% 100%;
  animation:progressFlow 3s ease-in-out infinite
}
@keyframes progressFlow{
  0%{width:0%;background-position:200% 0}
  40%{width:68%;background-position:100% 0}
  80%{width:82%;background-position:50% 0}
  100%{width:95%;background-position:0% 0}
}
@media (prefers-reduced-motion:reduce){
  .progress-bar{animation:none;width:72%;background:#00E676}
}

/* ===== Header Grid Decoration ===== */
.header-grid-line{
  position:fixed;top:var(--header-height);left:0;width:100%;height:1px;
  background:repeating-linear-gradient(90deg,rgba(0,230,118,0.12) 0,rgba(0,230,118,0.12) 2px,transparent 2px,transparent 40px);
  z-index:8998;pointer-events:none
}

/* ===== Footer ===== */
.site-footer{
  background:#0D1B2A;color:rgba(255,255,255,0.75);
  border-top:1px solid rgba(255,255,255,0.06);
  position:relative;padding:2.5rem 1.5rem 1.5rem;
  margin-top:4rem
}
.footer-grid-line{
  position:absolute;top:0;left:0;width:100%;height:1px;
  background:repeating-linear-gradient(90deg,rgba(255,215,0,0.1) 0,rgba(255,215,0,0.1) 2px,transparent 2px,transparent 48px);
  pointer-events:none
}
.footer-inner{
  max-width:var(--container-max);margin:0 auto;
  display:grid;grid-template-columns:1fr;gap:2rem
}
.footer-brand{display:flex;flex-direction:column;gap:0.5rem}
.footer-brand-name{
  font-family:var(--font-headline);font-weight:900;font-size:1.2rem;
  color:#FFFFFF;letter-spacing:-0.02em
}
.footer-brand-desc{
  font-family:var(--font-body);font-size:0.75rem;color:rgba(255,255,255,0.4);
  text-transform:uppercase;letter-spacing:0.04em
}
.footer-trust{
  font-size:0.85rem;line-height:1.6;color:rgba(255,255,255,0.55);
  max-width:480px;margin-top:0.25rem
}
.footer-links{
  display:flex;flex-wrap:wrap;gap:1rem 1.5rem;
  padding:0.75rem 0;border-top:1px solid rgba(255,255,255,0.06);
  border-bottom:1px solid rgba(255,255,255,0.06)
}
.footer-links a{
  font-size:0.9rem;font-weight:500;color:rgba(255,255,255,0.6);
  transition:color 0.25s;position:relative
}
.footer-links a::after{
  content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;
  background:#00E676;transition:width 0.3s
}
.footer-links a:hover{color:#FFFFFF}
.footer-links a:hover::after{width:100%}
.footer-contact{
  display:flex;flex-direction:column;gap:0.4rem;
  font-size:0.85rem;color:rgba(255,255,255,0.5)
}
.footer-address{color:rgba(255,255,255,0.35);font-size:0.8rem}
.footer-bottom{
  display:flex;flex-direction:column;gap:0.6rem;
  padding-top:1rem;border-top:1px solid rgba(255,255,255,0.04);
  font-size:0.78rem;color:rgba(255,255,255,0.35)
}
.trust-badge{
  display:inline-flex;align-items:center;gap:0.4rem;
  color:#FFD700;font-family:var(--font-special);font-size:0.8rem;
  font-style:italic;opacity:0.8
}
.trust-badge::before{
  content:'◈';font-size:0.7rem;color:#00E676;opacity:0.6
}
@media (min-width:640px){
  .footer-inner{grid-template-columns:1fr 1fr}
  .footer-bottom{grid-column:1/-1;flex-direction:row;justify-content:space-between}
}
@media (min-width:1024px){
  .footer-inner{grid-template-columns:2fr 1fr 1fr;gap:3rem}
  .footer-links{border-top:none;border-bottom:none;padding:0;flex-direction:column;gap:0.6rem}
  .footer-contact{padding-top:0}
  .footer-bottom{grid-column:1/-1}
}

/* ===== Common Components ===== */
.container{max-width:var(--container-max);margin:0 auto;padding:0 1.5rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:0.75rem 2rem;font-family:var(--font-headline);font-weight:700;
  font-size:0.95rem;border-radius:6px;transition:all 0.3s;
  border:1px solid transparent;cursor:pointer
}
.btn-primary{
  background:#00E676;color:#000000;border-color:#00E676
}
.btn-primary:hover{
  background:transparent;color:#00E676;box-shadow:0 0 0 1px #00E676
}
.btn-ghost{
  background:transparent;color:#E0E0E0;border-color:rgba(255,255,255,0.15)
}
.btn-ghost:hover{
  background:rgba(0,230,118,0.1);border-color:#00E676;color:#00E676
}
.float-card{
  background:rgba(13,27,42,0.7);backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;padding:1.5rem;box-shadow:0 8px 32px rgba(0,0,0,0.3);
  transition:transform 0.3s,box-shadow 0.3s
}
.float-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,0.4)}
.glass-panel{
  background:var(--glass-bg);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--glass-border);border-radius:12px
}
.timeline{
  position:relative;padding-left:2rem
}
.timeline::before{
  content:'';position:absolute;left:8px;top:0;bottom:0;width:2px;
  background:repeating-linear-gradient(to bottom,#00E676 0,#00E676 6px,transparent 6px,transparent 12px)
}
.timeline-item{
  position:relative;padding-bottom:1.5rem;font-family:var(--font-body)
}
.timeline-item::before{
  content:'○';position:absolute;left:-2rem;top:0.1rem;
  font-family:var(--font-special);color:#FFD700;font-size:1rem
}
.timeline-item time{
  font-family:var(--font-special);font-size:0.85rem;color:rgba(255,215,0,0.6);
  display:block;margin-bottom:0.25rem
}

/* ===== Utility ===== */
.text-accent{color:#00E676}
.text-gold{color:#FFD700}
.font-headline{font-family:var(--font-headline)}
.font-special{font-family:var(--font-special)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== Responsive ===== */
@media (max-width:480px){
  :root{--header-height:56px}
  .brand-name{font-size:1.1rem}
  .nav-menu{width:100%;max-width:100vw;padding:1.5rem 1rem}
  .nav-list a{font-size:1rem;padding:0.75rem 0.85rem}
  .footer-inner{gap:1.5rem}
}
@media (min-width:768px) and (max-width:1023px){
  .nav-menu{width:320px}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (min-width:1024px){
  .nav-menu{width:340px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}
  html{scroll-behavior:auto}
  .nav-menu{transition:none}
  .float-card:hover{transform:none}
}
