:root {
  --bg: #05070a;
  --bg-alt: #0c1016;
  --bg-soft: #11161f;
  --card: #151b26;
  --text: #f5f7fb;
  --muted: #a5afc7;
  --accent: #f4c750;
  --accent-soft: rgba(244, 199, 80, 0.15);
  --border: #252c3a;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
}

/* Global reset / base */

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1e2838 0, #05070a 55%, #020308 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #151b26 0, #05070a 60%);
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

/* Nav dropdown for Products */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

/* Make the toggle look like the other nav links */
.nav-dropdown .nav-link {
  display: inline-block;
}

/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;          /* sits directly under the Products button */
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  margin-top: 0;      /* IMPORTANT: remove the gap so hover doesn't break */
  background: #05070d;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  z-index: 999;
}

/* Show on hover (desktop) */
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #f5f5f7;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.hero-tagline {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top left, #262f41 0, #080b11 55%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-logo {
  width: 220px;
  margin-bottom: 1.2rem;
}

.hero-card-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ffffff);
  color: #05070a;
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

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

/* Feature cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.feature-card {
  background: rgba(15, 18, 28, 0.95);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  background: rgba(8, 11, 17, 0.96);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #333b4b;
  background: #05070a;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(244, 199, 80, 0.35);
}

.contact-form button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Product page */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.product-image-panel {
  background: radial-gradient(circle at top, #343f54 0, #05070a 60%);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-logo {
  max-width: 260px;
}

.product-detail-panel h2 {
  margin-top: 0;
}

.product-tagline {
  color: var(--muted);
}

.bullet-list {
  padding-left: 1.1rem;
}

.bullet-list li + li {
  margin-top: 0.5rem;
}

.product-status {
  margin-top: 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Page main */

.page-main {
  padding-top: 2.5rem;
}

/* Footer */

.site-footer {
  padding: 1.6rem 0 2.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(to top, #020308, rgba(2, 3, 8, 0.95));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-logo {
  width: 60px;
  margin-right: 0.75rem;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout,
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    position: static;
  }

  .nav {
    display: none; /* keep simple for now on mobile */
  }
}
