@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  color-scheme: light;

  /* macOS El Capitan "Light Sandalwood + Ash" Color Palette */
  --bg-deep: linear-gradient(135deg, #eae1d4 0%, #cbd3db 50%, #98a7b8 100%);

  /* Highly Pronounced Frosted Glass (70% Transparent / 30% Opacity) */
  --bg-dark: rgba(255, 255, 255, 0.3);
  --bg-panel: rgba(255, 255, 255, 0.3);
  --bg-panel-hover: rgba(255, 255, 255, 0.5);

  /* Corporate Cobalt Blues & Grays */
  --accent-blue: #0f62fe;
  --accent-light: #0078d4;
  --accent-teal: #0070ad;
  --accent-success: #198754;

  /* UI Text Tokens */
  --text-primary: #090d16;
  --text-secondary: #243247;
  --text-muted: #4e5e78;

  /* High-Contrast Aero Frosted Translucent Glass Borders */
  --border-muted: rgba(255, 255, 255, 0.45);
  --border-strong: rgba(255, 255, 255, 0.7);
  --border-focus: #0f62fe;

  /* Typographical Fonts */
  --font-headings: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Roboto Mono', monospace;

  /* Aero Shadows & Highlights */
  --shadow-card: 0 15px 35px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg-deep) fixed;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* FIXED VISUAL BACKGROUND TEXTURES */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(234, 221, 204, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(15, 98, 254, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Page Shell & Container */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

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

/* Scroll Reveal base animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Clear Corporate Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

/* Liquid Glass hover effects for main titles */
h1:hover,
h2:hover,
h3:hover {
  text-shadow: 0 0 15px rgba(0, 120, 212, 0.15);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: 10px;
}

p {
  margin-bottom: 14px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-primary);
}

/* Text Neutralization */
.text-gradient,
.text-gradient-secondary {
  color: var(--text-primary);
}

/* Site Header (macOS Translucent Aero Glass) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 172px;
  height: 36px;
  display: block;
}

/* Desktop Compact Navigation Menu (Liquid Active states) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  /* Elastic Liquid Spring transition for next-gen UI feel */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Liquid active link slide effect */
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-50%);
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 60%;
}

.site-nav a.active {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.45);
}

.site-nav a:active {
  transform: scale(0.95);
}

.menu-toggle {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 110;
}

/* Eyebrows */
.eyebrow {
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-block;
}

.page-intro {
  padding: 40px 0;
}

.page-intro p {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--text-secondary);
}

/* 
  LIQUID GLASS BUTTONS (Elastic bounce, diagonal reflection sweep, active gel-press) 
*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  /* Elastic Liquid Spring transition */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Diagonal reflection sweep sheen pseudo-element */
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button:hover::before {
  left: 150%;
  /* Sweep reflection sweep animation across the button */
}

/* Responsive Liquid gel-press active state */
.button:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 98, 254, 0.1);
}

.button-primary:hover {
  background: #0052cc;
  box-shadow: 0 8px 20px rgba(15, 98, 254, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.button-success {
  background: var(--accent-success);
  color: #ffffff;
}

.button-success:hover {
  background: #157347;
}

/* Split Layouts */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

/* 
  LIQUID GLASS PANEL CARDS (Glossy top-left reflection glow on hover, elastic spring bounce) 
*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.product-card,
.feature-card,
.service-card,
.project-card,
.timeline-card,
.doc-card,
.security-card,
.panel-card,
.contact-info {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  /* Elastic Liquid transition */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glossy top-left reflections */
.product-card::after,
.feature-card::after,
.service-card::after,
.project-card::after,
.timeline-card::after,
.doc-card::after,
.security-card::after,
.panel-card::after,
.contact-info::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover,
.feature-card:hover,
.service-card:hover,
.project-card:hover,
.timeline-card:hover,
.doc-card:hover,
.security-card:hover,
.panel-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-strong);
  background: var(--bg-panel-hover);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.product-card:hover::after,
.feature-card:hover::after,
.service-card:hover::after,
.project-card:hover::after,
.timeline-card:hover::after,
.doc-card:hover::after,
.security-card:hover::after,
.panel-card:hover::after {
  opacity: 1;
  /* Fade in glossy sheen on hover */
}

/* Gel-press active states for cards */
.product-card:active,
.feature-card:active,
.service-card:active,
.project-card:active,
.timeline-card:active,
.doc-card:active,
.panel-card:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.12s ease;
}

.product-card h2,
.feature-card h3,
.service-card h2,
.project-card h2,
.doc-card h2,
.security-card h2 {
  margin-bottom: 8px;
}

.product-card ul,
.feature-card ul,
.service-card ul,
.project-card ul,
.panel-card ul {
  list-style: none;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.product-card li,
.feature-card li,
.service-card li,
.project-card li,
.panel-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.product-card li::before,
.feature-card li::before,
.service-card li::before,
.project-card li::before,
.panel-card li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.65rem;
  top: 0.2rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-primary);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.badge-secondary {
  border-color: rgba(0, 120, 212, 0.2);
  color: var(--accent-light);
}

/* Hero Section (Homepage) */
.hero {
  min-height: calc(85vh - 120px);
  align-items: center;
  gap: 36px;
}

.hero-panel {
  width: 100%;
}

.slide-show {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-muted);
  background: var(--bg-dark);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
}

.slide {
  display: none;
  flex-direction: column;
  padding: 28px;
  animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
}

.slide.active {
  display: flex;
}

.slide img {
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border-muted);
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

.slide-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-tag {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  font-weight: 700;
}

.slide-copy h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.slide-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.slide-pill-group span {
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-muted);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.slide-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: all 0.2s;
}

.slide-dot.active {
  background: var(--accent-light);
  transform: scale(1.2);
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Why QXS (3-Column Metrics Dashboard) */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.intro-grid article {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-grid article:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--border-strong);
}

.intro-grid article h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.intro-grid article h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-grid article h3::before {
  content: '▪';
  color: var(--accent-light);
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.visual-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.visual-card:hover {
  border-color: var(--border-strong);
}

/* Highlight Banner */
.highlight-banner {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

.highlight-banner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
}

.highlight-banner p {
  font-size: 1.05rem;
  max-width: 800px;
}

/* Custom Lists */
.list-grid {
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-grid li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.list-grid li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* Architecture Tree Display (macOS Terminal Console Box) */
.architecture-tree {
  font-family: var(--font-mono);
  background: #1a1a24;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.45;
  margin-bottom: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Roadmap Visual Timeline Layout */
.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

.timeline-card h2 {
  font-size: 1.3rem;
  margin: 0;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  background: rgba(15, 23, 42, 0.02);
}

.timeline-step.completed {
  background: var(--accent-blue);
  color: #ffffff;
}

.timeline-step.in-progress {
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(0, 112, 173, 0.04);
}

.timeline-step.planned {
  color: var(--text-secondary);
}

.timeline-step.future {
  opacity: 0.4;
}

/* Contact Page form formatting */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-bottom: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

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

.contact-form label {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.contact-info h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}

.contact-info p span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* Site Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-muted);
  padding-top: 30px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 2px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-light);
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {

  .hero,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .slide-show {
    min-height: auto;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 0 16px 30px;
  }

  .site-header {
    padding: 14px 0;
    background: #cbd3db;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #cbd3db;
    border-left: 1px solid var(--border-muted);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 12px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .card-grid,
  .intro-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    padding: 6px;
    gap: 4px;
  }

  .timeline-step {
    border-radius: var(--radius-sm);
    padding: 10px;
    align-items: flex-start;
  }

  .timeline-step.completed {
    box-shadow: none;
  }
}