/* Modern styles with CSS variables, responsive layout, and small animations */
:root{
  --bg: #f7f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent-start: #7c3aed;
  --accent-end: #06b6d4;
  --text: #0f172a;
  --glass: rgba(255,255,255,0.6);
  --radius: 12px;
  --container: 1100px;
  --shadow: 0 8px 24px rgba(16,24,40,0.06);
}

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

html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg),#eef2ff 60%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* Container */
.container{
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* Header */
.site-header{
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(15,23,42,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(4px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: 1rem 0;
}
.brand{ display:flex; align-items:center; gap:1.25rem; }
.logo{ margin:0; font-size:1.15rem; font-weight:700; letter-spacing: -0.02em; }
.logo .accent{ background: linear-gradient(90deg,var(--accent-start),var(--accent-end)); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Nav */
.main-nav a{
  margin-right: 1rem;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color:var(--text); }

/* Header actions */
.icon-btn{
  background:transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  cursor:pointer;
  font-size:1.05rem;
}

/* Hero */
.hero{
  padding: 3.25rem 0;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items:center;
}
.hero-content h2{ font-size: clamp(1.5rem, 3vw, 2rem); margin:0 0 .5rem 0; }
.lead{ color:var(--muted); margin:0 0 1.25rem 0; }
.hero-cta{ display:flex; gap:0.75rem; align-items:center; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
}
.btn-primary{
  background: linear-gradient(90deg,var(--accent-start),var(--accent-end));
  color:white;
  box-shadow: 0 8px 20px rgba(124,58,237,0.12);
}
.btn-ghost{
  background: transparent;
  border: 1px solid rgba(15,23,42,0.06);
  color:var(--text);
}

/* Hero illustration */
.hero-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.robot-svg{ width: 100%; height: auto; max-width: 260px; animation: float 6s ease-in-out infinite; }
.robot-svg.sm{ max-width:160px; }

/* Features grid */
.features{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  margin: 2.25rem auto;
}
.card{
  padding:1.25rem;
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,24,40,0.03);
}

/* Footer */
.site-footer{
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(15,23,42,0.04);
  background: transparent;
}
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:1rem; }

/* Small utilities */
.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; }

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width:900px){
  .hero-inner{ grid-template-columns: 1fr; text-align:center; }
  .hero-illustration{ margin-top: 1rem; }
  .footer-inner{ flex-direction:column; align-items:flex-start; gap:0.5rem; }
}

/* Dark mode (controlled by JS toggling .dark on <body>) */
body.dark{
  --bg: #071025;
  --card: #07122a;
  --muted: #94a3b8;
  --text: #e6eef8;
  background: linear-gradient(180deg,#061226 40%, #021627);
}
body.dark .site-header{ background: rgba(7,18,38,0.6); border-bottom-color: rgba(255,255,255,0.04); }
body.dark .hero-illustration{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }