:root {
  --bg0: #0a0f1a;
  --bg1: #ffffff;
  --text: #0f172a;
  --text-light: #e2e8f0;
  --muted: #475569;
  --muted-light: #cbd5e1;
  --line: #e2e8f0;
  --line-dark: rgba(226, 232, 240, 0.1);
  --accent: #5BA3D0;
  --accent-light: #E8F3F9;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow2: 0 2px 10px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --max: 1000px;
    --header-h: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { 
  height: auto;
    min-height: 100%;
  overflow-x: hidden;
    overflow-y: auto;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  background: linear-gradient(180deg, #0a0f1a 0%, #121721 100%);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  font-size: 15px;

}

/* Header Styling - Dark translucent */
header {
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
  display: none;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  background: transparent;
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav a {
  color: var(--muted-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

nav a.active {
  background: rgba(255, 255, 255, 1);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero Section - Full Screen, No Scroll (Homepage only) */
.hero {
  position: relative;
    height: auto;
  min-height: calc(100vh - var(--header-h));
padding-top: var(--header-h);
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: visible;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;}

/* Dark overlay with vignette */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(10, 15, 26, 0.4) 0%, rgba(10, 15, 26, 0.75) 100%);
  z-index: 1;
}

/* CSS Grid Overlay Effect */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, rgba(91, 163, 208, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 163, 208, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  text-align: center;
  color: var(--text-light);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero > .hero-content > p {
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Details Section - No White Background */
.hero-details {
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 0 20px;
}

.hero-details p {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-details p:last-child {
  margin-bottom: 0;
}

.hero-details ul {
  margin: 10px 0 12px 18px;
  padding: 0;
}

.hero-details li {
  margin: 6px 0;
  color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Container and Panel */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: auto%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

main {
  padding: 0;
  flex: 1;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 40px;
  margin: 0;
  max-width: var(--max);
  text-align: left;
}

.panel h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.panel h2 {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  margin: 24px 0 12px;
}

.panel p {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.panel p strong, .panel strong { 
  color: #ffffff;
  font-weight: 600;
}

.panel ul {
  margin: 14px 0 18px 20px;
}

.panel li {
  margin: 8px 0;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  font-size: 15px;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
  color: #ffffff;
}

h2 {
  font-size: 22px;
  margin: 24px 0 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

p {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

ul {
  margin: 14px 0 18px 20px;
}

li {
  margin: 8px 0;
  color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: #ffffff;
  text-underline-offset: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

a:hover {
  opacity: 0.85;
}

.contact-line {
  margin-top: 12px;
}

.contact-line a {
  font-weight: 600;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 26, 0.6);
  margin-top: auto;
  position: static;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.03);
}

footer .container {
  padding: 16px 24px;
  color: var(--muted-light);
  font-size: 13px;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    padding: 14px 24px;
    min-height: auto;
    gap: 14px;
  }
  
  .logo {
    align-self: flex-start;
  }
  
  .logo img {
    height: 36px;
  }
  
  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  
  .hero {
    height: auto;
        min-height: calc(100vh - var(--header-h));
    padding: 20px 16px;
  }
  
  .hero-content {
    padding: 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero > .hero-content > p {
    font-size: 16px;
  }
  
  .hero-details {
    padding: 0 12px;
  }
  
  .hero-details p,
  .hero-details li {
    font-size: 14px;
  }
  
  .panel {
    padding: 28px 20px;
  }
  
  h1 {
    font-size: 34px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  p, .panel p, .panel li {
    font-size: 14px;
  }
}

/* Demo Request Form */
.demo-form-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-form-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.demo-submit {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-submit:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.demo-submit:active {
  transform: translateY(0);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* Allow scrolling on mobile */
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
      overflow-y: auto;}

  /* Let main content scroll instead of being locked */
  main {
    overflow: visible;
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* Hero should size to content, not force full viewport height */
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    padding-left: 16px;
    padding-right: 16px;
  }

  /* General side padding for other pages/containers */
  .container,
  .panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Reduce hero and heading font sizes */
  .hero h1,
  h1 {
    font-size: 30px;
  }

  .hero > .hero-content > p,
  p,
  .panel p,
  .panel li {
    font-size: 14px;
        }

      /* Fix footer overlap on mobile */
  body {
    padding-bottom: 60px;
  }

  footer {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    margin-top: 24px;
        padding: 16px 24px;
  }

      footer .container {
    height: auto !important;
    display: block !important;
  }
  }
}
