@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --- DESIGN SYSTEM SYSTEM VARIABLES --- */
:root {
  /* Color Palette */
  --bg-primary: #0F100F;        /* Deep Volcanic Gray */
  --bg-card: #191A19;           /* Basalt Gray */
  --border-color: #292A29;      /* Concrete Hairline */
  --text-high: #F4F3F0;         /* Bleached Chalk Off-White */
  --text-muted: #8A908A;        /* Muted Secondary Gravel */
  --accent-pine: #2D3F34;       /* Deep Muted Forest Green (Brand Base) */
  --accent-ui: #3F634B;         /* High-Contrast UI Pine Green (WCAG AA compliant) */
  --accent-ui-hover: #4C7559;   /* Slightly lighter green for subtle hover states */
  
  /* Fonts */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;

  /* Spacing (Precise 8px-based Grid) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Constraints & Layout */
  --max-width: 1100px;
  --header-height: 72px;
  --radius-sharp: 2px;
  
  /* Subtle Timing */
  --transition-smooth: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-high);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- ACCESSIBILITY --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-ui);
  outline-offset: 4px;
}

/* --- TYPOGRAPHY SCALE --- */
h1, h2, h3, h4 {
  color: var(--text-high);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Restrained Serif Accents - strictly limited to special headers and hero statements */
.serif-header {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

strong {
  color: var(--text-high);
  font-weight: 600;
}

.technical-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ui);
  margin-bottom: var(--space-sm);
}

/* --- STRUCTURE & LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

/* Grid & Flex Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 850px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* --- STICKY NAVIGATION HEADER --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(15, 16, 15, 0.95);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Minimal Typographic Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text-high);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-graphic {
  height: 24px;
  width: 24px;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.logo:hover .logo-graphic {
  transform: rotate(-5deg) scale(1.05); /* Soft technical interaction */
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

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

/* Language Toggle Button */
.lang-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px var(--space-xs);
  border-radius: var(--radius-sharp);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.lang-toggle:hover {
  border-color: var(--accent-ui);
  color: var(--text-high);
}

/* --- HERO SECTION --- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 780px;
}

.hero-lead {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* --- PRODUCT PORTFOLIO CARDS --- */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
  text-decoration: none;
}

.product-card:hover {
  border-color: var(--accent-ui);
}

.product-image-container {
  position: relative;
  width: 100%;
  background-color: #121312;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-image {
  width: 100%;
  height: auto;        /* Let the image define its own height — no cropping */
  object-fit: contain; /* Show full portrait screenshot, pillarbox if needed */
  display: block;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-image {
  transform: scale(1.02);
}

/* --- SCREENSHOT GALLERY CAROUSEL --- */
.gallery-container {
  position: relative;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background-color: rgba(15, 16, 15, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-high);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
  z-index: 10;
}

.gallery-container:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  border-color: var(--accent-ui);
  background-color: var(--bg-primary);
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.gallery-prev {
  left: var(--space-xs);
}

.gallery-next {
  right: var(--space-xs);
}

.gallery-indicator {
  position: absolute;
  bottom: var(--space-xs);
  right: var(--space-xs);
  background-color: rgba(15, 16, 15, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-high);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.05em;
}

/* Card title link override */
.product-title-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

.product-title-link:hover {
  color: var(--accent-ui);
}


.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  color: var(--text-high);
  margin-bottom: var(--space-2xs);
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xs);
  margin-top: auto;
}

.product-platform {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-ui);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- TECHNICAL ADVISORY / SERVICES SECTION --- */
.service-card {
  padding: var(--space-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sharp);
  transition: border-color var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--accent-ui);
}

.service-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent-ui);
  margin-bottom: var(--space-sm);
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: var(--text-high);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- BUTTONS & INTERFACE ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px var(--space-md);
  border-radius: var(--radius-sharp);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  gap: var(--space-xs);
}

.btn-primary {
  background-color: var(--accent-ui);
  color: var(--text-high);
}

.btn-primary:hover {
  background-color: var(--accent-ui-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-high);
}

.btn-secondary:hover {
  border-color: var(--accent-ui);
  background-color: rgba(63, 99, 75, 0.05);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- ABOUT PAGE SPECIFICS --- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-lg);
  align-items: start;
}

.credibility-card {
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sharp);
  background-color: var(--bg-card);
}

.credibility-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ui);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.credibility-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 850px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
  background-color: #0c0d0c;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.footer-links-group {
  display: flex;
  gap: var(--space-xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-high);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-smooth);
}

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

.footer-org {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

@media (max-width: 650px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-links-group {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-md);
  }
}

/* --- MOBILE NAVIGATION PANEL --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-high);
  stroke-width: 2;
  fill: none;
}

@media (max-width: 750px) {
  .nav {
    display: none; /* Hide standard nav on mobile */
  }
  
  .mobile-menu-btn {
    display: block; /* Show menu button on mobile */
  }
}

/* Fullscreen Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 150;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.mobile-drawer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: var(--text-high);
}

/* --- SCROLL ANIMATION EFFECTS --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

/* --- BREADCRUMBS & INNER HEADERS --- */
.inner-hero {
  padding: var(--space-xl) 0 var(--space-sm) 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition-smooth);
}

.breadcrumbs a:hover {
  color: var(--text-high);
}

/* --- LEGAL / TEXT RICH STYLING --- */
.text-layout {
  max-width: 720px;
  margin: 0 auto var(--space-xl) auto;
}

.text-layout p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.text-layout h2 {
  font-size: 1.4rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.text-layout ul {
  list-style: none;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.text-layout li {
  color: var(--text-muted);
  margin-bottom: 6px;
  position: relative;
  padding-left: var(--space-sm);
  font-size: 1.05rem;
}

.text-layout li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-ui);
}

/* --- NOTIFY ME LAUNCH SIGNUP FORM --- */
.notify-box {
  margin-top: var(--space-sm);
  width: 100%;
}

.notify-form {
  display: flex;
  gap: var(--space-2xs);
  width: 100%;
}

.notify-input {
  flex-grow: 1;
  background-color: rgba(15, 16, 15, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-high);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 6px var(--space-xs);
  border-radius: var(--radius-sharp);
  transition: border-color var(--transition-smooth);
}

.notify-input:focus {
  outline: none;
  border-color: var(--accent-ui);
}

.notify-btn {
  background-color: var(--accent-ui);
  border: none;
  color: var(--text-high);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px var(--space-sm);
  border-radius: var(--radius-sharp);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-smooth);
}

.notify-btn:hover {
  background-color: var(--accent-ui-hover);
}

.notify-status {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--accent-ui);
  font-weight: 500;
  min-height: 16px;
}

