:root{
  --bg:#060607;
  --card:#0f1720;
  --text:#e6f1f8;
  --muted:#9aa6b2;
  --accent:#00b4ff;
  --glass: rgba(255,255,255,0.03);
  --radius:12px;
  --max:1100px;
  --gap:24px;
  --base-scale: 1;
}

:root[data-theme="light"]{
  --bg: #f7fbff;
  --card: #ffffff;
  --text: #0a1929;
  --muted: #54707a;
  --accent: #006fb3;
  --glass: rgba(0,0,0,0.02);
  color-scheme: light;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif;
  background:linear-gradient(180deg,var(--bg) 0%, #07080a 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  transform-origin: top left;
  font-size: calc(16px * var(--base-scale));
  line-height:1.6;
}

:root[data-theme="light"] body{
  background:linear-gradient(180deg,var(--bg) 0%, #eef5fb 100%);
}

.container{max-width:var(--max);margin:0 auto;padding:48px 20px}

/* Header */
.site-header{
  backdrop-filter: blur(12px);
  padding:16px 0;
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(6,6,7,0.7);
  border-bottom:1px solid rgba(255,255,255,0.05);
}

:root[data-theme="light"] .site-header{
  background:rgba(247,251,255,0.8);
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.logo{display:flex;align-items:center;gap:12px}
.logo img{border-radius:8px}

.nav{display:flex;gap:6px}
.nav a{
  color:var(--muted);
  padding:8px 14px;
  text-decoration:none;
  font-weight:600;
  border-radius:6px;
  transition:all 0.2s ease;
}
.nav a:hover{background:var(--glass);color:var(--text)}
.nav a.cta{color:var(--accent)}

.mobile-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
}

.mobile-toggle span{
  width:24px;
  height:2px;
  background:var(--muted);
  transition:all 0.3s ease;
  border-radius:2px;
}

.mobile-toggle.active span:nth-child(1){transform:rotate(45deg) translate(7px,7px)}
.mobile-toggle.active span:nth-child(2){opacity:0}
.mobile-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}

.controls{display:flex;gap:8px;align-items:center}
.controls select{
  background:var(--card);
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:0.85rem;
}

:root[data-theme="light"] .controls select{
  border:1px solid rgba(0,0,0,0.1);
}

.controls button{
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  transition:all 0.2s;
}

.controls button:hover{background:var(--card);color:var(--accent)}

:root[data-theme="light"] .controls button{
  border:1px solid rgba(0,0,0,0.1);
}

.visually-hidden{
  position:absolute!important;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

/* Hero */
.hero{
  padding:100px 0 80px;
  text-align:left;
}

.hero h1{
  font-size:clamp(32px,5vw,56px);
  margin:0 0 20px;
  color:var(--accent);
  font-weight:800;
  line-height:1.1;
}

.lead{
  color:var(--muted);
  font-size:1.15rem;
  max-width:800px;
  margin-bottom:32px;
}

.hero-actions{display:flex;gap:12px;flex-wrap:wrap}

.btn{
  display:inline-block;
  padding:14px 24px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.2s ease;
  cursor:pointer;
  border:none;
  font-size:1rem;
}

.btn.primary{
  background:linear-gradient(135deg,var(--accent),#00e1ff);
  color:#041018;
  box-shadow:0 4px 12px rgba(0,180,255,0.2);
}

.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(0,180,255,0.3);
}

.btn.ghost{
  background:transparent;
  border:2px solid rgba(255,255,255,0.1);
  color:var(--muted);
}

.btn.ghost:hover{
  border-color:var(--accent);
  color:var(--accent);
}

.btn:focus{outline:3px solid rgba(0,180,255,0.3);outline-offset:2px}

.btn.primary:disabled{opacity:0.6;cursor:not-allowed}

/* Sections */
.section{padding:60px 0}
.section h2{
  font-size:clamp(28px,4vw,42px);
  margin-bottom:16px;
  color:var(--text);
}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
  margin-top:32px;
}

.feature{
  background:var(--glass);
  padding:28px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
  transition:all 0.3s ease;
}

.feature:hover{
  transform:translateY(-4px);
  border-color:rgba(0,180,255,0.2);
  box-shadow:0 8px 24px rgba(0,180,255,0.08);
}

:root[data-theme="light"] .feature{
  border:1px solid rgba(0,0,0,0.08);
}

.feature-icon{font-size:2.5rem;margin-bottom:12px}
.feature h3{margin:0 0 12px;color:var(--text)}
.feature p{color:var(--muted);margin:0}

/* About / Reverse section */
.reverse{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}

@media(min-width:900px){
  .reverse{grid-template-columns:1fr 1fr}
}

.card-media{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
}

.card-media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

.about-text ul{
  list-style:none;
  margin-top:16px;
}

.about-text ul li{
  padding:8px 0;
  padding-left:28px;
  position:relative;
  color:var(--muted);
}

.about-text ul li:before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:bold;
}

/* Pricing */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
  margin-top:32px;
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,0.03),transparent);
  padding:28px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
  transition:all 0.3s ease;
  position:relative;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 32px rgba(0,0,0,0.3);
}

:root[data-theme="light"] .card{
  background:white;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.card.popular{
  border-color:rgba(0,180,255,0.3);
  box-shadow:0 8px 32px rgba(0,180,255,0.12);
}

.badge{
  position:absolute;
  top:-12px;
  right:20px;
  background:linear-gradient(135deg,var(--accent),#00e1ff);
  color:#041018;
  padding:6px 16px;
  border-radius:20px;
  font-size:0.8rem;
  font-weight:700;
  text-transform:uppercase;
}

.card h3{margin:0 0 16px;color:var(--text);font-size:1.5rem}

.price{
  font-size:2rem;
  font-weight:800;
  color:var(--accent);
  margin:16px 0;
}

.price span{
  font-size:1rem;
  color:var(--muted);
  font-weight:600;
}

.card ul{list-style:none;margin:20px 0;padding:0}
.card ul li{
  padding:10px 0;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,0.03);
}

:root[data-theme="light"] .card ul li{
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.card ul li:last-child{border:none}

.block{width:100%;text-align:center;margin-top:20px}

/* Contact */
.grid-contact{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  margin-top:32px;
}

@media(min-width:900px){
  .grid-contact{grid-template-columns:1.5fr 1fr}
}

.contact-form{
  background:var(--card);
  padding:28px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
}

:root[data-theme="light"] .contact-form{
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.contact-form label{
  display:block;
  margin-bottom:16px;
  font-size:0.9rem;
  color:var(--muted);
  font-weight:600;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin-top:6px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.1);
  background:#fff;
  color:#001;
  font-family:inherit;
  font-size:1rem;
  transition:all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(0,180,255,0.1);
}

.contact-form .checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.contact-form .checkbox input{
  width:auto;
  margin-top:4px;
}

.contact-form .checkbox a{color:var(--accent)}

.form-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.btn-spinner{
  display:inline-block;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

.form-result{
  color:#9fffdc;
  font-size:0.9rem;
  font-weight:600;
}

.contact-info{padding:8px}

.info{margin-bottom:24px}
.info h4{
  margin:0 0 8px;
  color:var(--muted);
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.info p,.hours p{
  color:var(--text);
  margin:0;
}

.info a{color:var(--accent);text-decoration:none}
.info a:hover{text-decoration:underline}

/* Footer */
.site-footer{
  background:rgba(0,0,0,0.2);
  border-top:1px solid rgba(255,255,255,0.05);
  padding:32px 0;
  margin-top:60px;
}

:root[data-theme="light"] .site-footer{
  background:rgba(0,0,0,0.02);
  border-top:1px solid rgba(0,0,0,0.08);
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:24px;
  padding:20px 0;
}

.footer-links a{
  display:inline-block;
  margin-right:16px;
  color:var(--accent);
  text-decoration:none;
  transition:color 0.2s;
}

.footer-links a:hover{color:var(--text)}

.muted{color:var(--muted)}

/* Animations */
.fade-in{
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.6s ease,transform 0.6s ease;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

/* Mobile */
@media(max-width:768px){
  .mobile-toggle{display:flex}
  
  .nav{
    position:fixed;
    top:72px;
    left:0;
    right:0;
    background:var(--card);
    flex-direction:column;
    padding:20px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    box-shadow:0 8px 24px rgba(0,0,0,0.3);
    transform:translateY(-120%);
    transition:transform 0.3s ease;
  }
  
  .nav.open{transform:translateY(0)}
  
  :root[data-theme="light"] .nav{
    border-bottom:1px solid rgba(0,0,0,0.08);
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
  }
  
  .controls{flex-wrap:wrap}
  
  .container{padding:32px 16px}
  
  .hero{padding:60px 0 40px}
  
  .hero h1{font-size:32px}
  
  .hero-actions{flex-direction:column;width:100%}
  .hero-actions .btn{width:100%;text-align:center}
  
  .features-grid{grid-template-columns:1fr}
  
  .pricing-grid{grid-template-columns:1fr}
  
  .footer-grid{grid-template-columns:1fr;text-align:center}
}

@media(max-width:500px){
  .header-inner{flex-wrap:wrap;justify-content:space-between}
  .controls{order:3;width:100%;justify-content:center;margin-top:8px}
}

/* Scroll to top button */
.scroll-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:50px;
  height:50px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),#00e1ff);
  border:none;
  color:#041018;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 6px 24px rgba(0,180,255,0.3);
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.scroll-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.scroll-top:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 32px rgba(0,180,255,0.4);
}

.scroll-top:active{
  transform:translateY(-2px);
}

/* Fade-in animations */
.fade-in{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

/* Button loading state */
.btn .btn-loader{
  display:none;
  width:16px;
  height:16px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin 0.6s linear infinite;
  margin-left:8px;
}

.btn.loading .btn-text{display:none}
.btn.loading .btn-loader{display:inline-block}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* Mobile menu toggle */
.mobile-toggle{
  display:none;
  flex-direction:column;
  gap:4px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1001;
}

.mobile-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:var(--muted);
  transition:all 0.3s ease;
  border-radius:2px;
}

.mobile-toggle.active span:nth-child(1){
  transform:rotate(45deg) translateY(9px);
}

.mobile-toggle.active span:nth-child(2){
  opacity:0;
}

.mobile-toggle.active span:nth-child(3){
  transform:rotate(-45deg) translateY(-9px);
}

@media(max-width:900px){
  .mobile-toggle{display:flex}
  
  .nav{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(300px, 80vw);
    background:var(--card);
    flex-direction:column;
    align-items:flex-start;
    padding:80px 32px 32px;
    gap:24px;
    transform:translateX(100%);
    transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:-4px 0 24px rgba(0,0,0,0.2);
    z-index:1000;
  }
  
  .nav.open{
    transform:translateX(0);
  }
  
  .nav a{
    margin:0;
    font-size:1.1rem;
  }
}

/* Enhanced focus styles for accessibility */
*:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

button:focus-visible, 
a:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}
