:root{
  --bg: #0b0c0e;
  --bg-alt: #111316;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #e9e9ea;
  --muted: #a6a8ad;
  --accent: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, #1a1c20 0%, transparent 60%) , var(--bg);
  line-height: 1.6;
}

/* Layout */
.container{ width: min(1100px, 92vw); margin: 0 auto; }
.section{ padding: 35px 0; }
.section.alt{ background: var(--bg-alt); }
.grid-2{
  display: grid; gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,12,14,0.85), rgba(11,12,14,0.65));
  border-bottom: 1px solid var(--border);
}
.nav-wrap{ display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-slot{ width: 40px; height: 40px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; justify-content: center; }
.logo-slot.small{ width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;}
.brand-name{ font-weight: 800; letter-spacing: -0.02em; }

.main-nav a{
  color: var(--muted); text-decoration: none; margin-left: 18px; padding: 8px 10px; border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a:hover{ color: var(--accent); background: var(--panel); }
.main-nav a.active{ color: var(--accent); }

/* Hero */
.hero{ padding-top: 140px; padding-bottom: 30px; }
.hero h1{ font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.lead{ color: var(--muted); font-size: 18px; }

.cta-row{ display: flex; gap: 12px; margin: 24px 0 10px; }
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--accent); background: transparent;
  padding: 12px 16px; border-radius: 12px; text-decoration: none; cursor: pointer

}
.btn-primary{ background: #ffffff10; border-color: #ffffff20; }
.btn-ghost:hover{ background: var(--panel); }
.btn-ghost { font-size: 13px;}

.hero-visual{ display: grid; gap: 20px; align-content: start; }
.glass-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.grid-cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card{
  border: 1px solid var(--border); background: #ffffff08; padding: 12px; border-radius: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--muted);
}
.k-dot{ width: 8px; height: 8px; border-radius: 999px; background: #fff; opacity: .8; }

/* Cards */
.cards{
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  border: 1px solid var(--border); background: #ffffff07; padding: 22px; border-radius: 16px; box-shadow: var(--shadow);
}
.card-header{ display:flex; align-items:center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.badge{
  font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.badge.soon{ color:#fff; background:#fff1; }
.badge.building{ background:#fff1; }

/* Lists in service cards */
.list{ margin: 14px 0 0; padding: 0 0 0 16px; color: var(--muted); }
.list li{ margin: 8px 0; }

/* About stats */
.about-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.stat{ background:#ffffff08; border:1px solid var(--border); border-radius:14px; padding:18px; text-align:center; }
.stat .num{ display:block; font-size: clamp(28px, 5vw, 40px); font-weight:800; }
.stat .label{ color: var(--muted); font-size: 13px; }

/* Form */
.contact-form{ max-width: 640px; }
.form-row{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
input, textarea{
  background:#0d0f13; color: var(--text); border:1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline:none;
}
input:focus, textarea:focus{ border-color:#ffffff40; }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); padding: 24px 0 48px; background: linear-gradient(0deg, rgba(255,255,255,0.02), transparent); }
.footer-grid{ display:grid; grid-template-columns: 1fr auto auto; align-items:start; gap: 32px; }
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 6px; }
.footer-nav a{ color: var(--muted); text-decoration:none; padding: 6px 12px; border-radius: 6px; transition: all .2s; }
.footer-nav a:hover{ color: var(--accent); background: var(--panel); }
.tiny{ padding-top: 16px; }
.muted{ color: var(--muted); }

/* Social links */
.social-links{ display: flex; flex-direction: column; gap: 8px; }
.social-link{
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 8px; 
  border: 1px solid var(--border); transition: all .2s;
  min-width: 120px;
}
.social-link:hover{ color: var(--accent); border-color: #ffffff30; background: var(--panel); }
.social-icon{ width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.social-link span{ font-size: 14px; font-weight: 500; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-nav{ justify-content: center; }
  .social-links{ flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .social-link{ min-width: auto; }
}

@media (max-width: 600px){
  .social-links{ flex-direction: column; align-items: center; }
  .social-link{ width: 200px; justify-content: center; }
}


/* Services Grid */
.services-grid{
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px){
  .services-grid{ grid-template-columns: 1fr; }
}

.service-card{ padding: 28px; }
.service-header{
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.service-icon{ font-size: 24px; opacity: 0.8; }

.service-features{ margin: 20px 0; }
.service-features h4{ 
  color: var(--accent); font-size: 14px; font-weight: 600; 
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.5px; 
}
.feature-list{ 
  margin: 0; padding: 0 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; 
}
.feature-list li{ margin: 6px 0; }
.feature-list strong{ color: var(--text); font-weight: 500; }

.service-tech{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-badge{
  font-size: 11px; padding: 4px 8px; background: #ffffff0a; border: 1px solid var(--border);
  border-radius: 12px; color: var(--muted); font-weight: 500;
}

/* GitHub link in footer */
.footer-grid{ grid-template-columns: 1fr auto auto; gap: 24px; }
.github-link{
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 8px; 
  border: 1px solid var(--border); transition: all .2s;
}
.github-link:hover{ color: var(--accent); border-color: #ffffff30; }
.github-icon{ width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
  .footer-nav{ order: -1; }
}

/* Blog styles */
.page-blog .section{ padding-top: 120px; }

.blog-header{ text-align: center; margin-bottom: 48px; }
.blog-header h1{ font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }

.blog-post{
  max-width: 800px; margin: 0 auto 64px;
  background: #ffffff06; border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}

.post-header{ margin-bottom: 32px; }
.post-header h2{ 
  font-size: clamp(24px, 4vw, 36px); line-height: 1.2; 
  margin: 0 0 12px; color: var(--accent); 
}
.post-meta{ 
  color: var(--muted); font-size: 14px; 
  display: flex; align-items: center; gap: 8px; 
}

.post-content{ line-height: 1.7; }
.post-content h3{ 
  color: var(--accent); margin: 32px 0 16px; 
  font-size: 22px; font-weight: 600; 
}
.post-content h4{ 
  color: var(--text); margin: 24px 0 12px; 
  font-size: 18px; font-weight: 500; 
}
.post-content p{ margin: 16px 0; }
.post-content ul{ margin: 16px 0; padding-left: 20px; }
.post-content li{ margin: 8px 0; color: var(--muted); }
.post-content strong{ color: var(--accent); }

.post-intro{ 
  font-size: 18px; color: var(--accent); 
  font-weight: 400; margin: 0 0 24px; 
}

.comparison-table{ margin: 24px 0; overflow-x: auto; }
.comparison-table table{ 
  width: 100%; border-collapse: collapse; 
  background: #ffffff05; border-radius: 12px; overflow: hidden;
}
.comparison-table th, .comparison-table td{ 
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); 
}
.comparison-table th{ 
  background: #ffffff10; font-weight: 600; color: var(--accent); 
}
.comparison-table td{ color: var(--muted); font-size: 14px; }

.conclusion{ 
  background: #ffffff08; border-left: 4px solid var(--accent); 
  padding: 16px 20px; margin: 24px 0 0; border-radius: 0 8px 8px 0; 
  font-style: italic; 
}

.post-footer{ 
  margin-top: 40px; padding-top: 24px; 
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.tag{ 
  background: #ffffff0a; color: var(--muted); padding: 4px 12px; 
  border-radius: 16px; font-size: 12px; border: 1px solid var(--border); 
}

.share{ display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.share-link{ color: var(--muted); text-decoration: none; }
.share-link:hover{ color: var(--accent); }

.more-posts{ margin-top: 64px; }
.more-posts h2{ margin-bottom: 24px; color: var(--accent); }
.card-meta{ margin-top: 12px; color: var(--muted); font-size: 12px; }

@media (max-width: 800px){
  .blog-post{ padding: 24px; }
  .post-footer{ flex-direction: column; align-items: flex-start; }
}

/* Hamburger menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.3s ease;
}

@media (max-width: 880px) {
  .hamburger {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 20px;
  }
  
  .main-nav a {
    display: block;
    margin: 8px 0;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  opacity: 1;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  opacity: 1;
}
