/**
 * SoloApps Innovations – Stylesheet
 * Handcrafted Design System for an Independent Software Studio
 * High-performance, accessible, modern typography and clean engineering aesthetic.
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color Palette: Refined Slate & Technical Indigo */
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162238;
  --bg-surface-subtle: #0c1322;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: #1e293b;
  --border-focus: #3b82f6;
  --border-hover: rgba(59, 130, 246, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  /* Restrained Accents */
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(37, 99, 235, 0.28);
  --accent-cyan: #06b6d4;
  --accent-cyan-subtle: rgba(6, 182, 212, 0.12);
  --status-green: #10b981;
  --status-green-subtle: rgba(16, 185, 129, 0.12);
  --status-red: #ef4444;
  --status-red-subtle: rgba(239, 68, 68, 0.12);

  /* Typography System */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sizing & Spacing */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows (subtle, natural) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-cyan);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.2em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  background: var(--accent-primary);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   3. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background-color: rgba(9, 13, 22, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background-color: rgba(9, 13, 22, 0.98);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

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

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

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  overflow: hidden;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.primary-nav a:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
}

.primary-nav a.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.06);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background-color: var(--bg-surface);
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.btn-arrow {
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 15% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
              var(--bg-page);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 20px;
}

.text-accent {
  color: #60a5fa;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-subtle);
}

/* Hero Tech Workbench Card */
.tech-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-green);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-green);
}

.tech-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.mini-app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.mini-app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mini-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  flex-shrink: 0;
}

.mini-name {
  font-weight: 600;
  color: var(--text-primary);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-cat {
  font-size: 0.6875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tech-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.policy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-green);
}

/* ==========================================================================
   6. SECTION HEADERS & COMMON LAYOUT
   ========================================================================== */
.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-border-top {
  border-top: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #60a5fa;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.875rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.about-story {
  display: flex;
  flex-direction: column;
}

.about-subheading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-story p {
  font-size: 1.03125rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-card {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pillar-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: #60a5fa;
  border: 1px solid var(--accent-border);
}

.pillar-content {
  display: flex;
  flex-direction: column;
}

.pillar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.pillar-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   8. SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-header {
  margin-bottom: 12px;
}

.service-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-primary);
}

.service-summary {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--status-green);
  flex-shrink: 0;
}

/* ==========================================================================
   9. OUR APPLICATIONS (PRODUCTION APPS)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.app-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.app-card-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-letter {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.app-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-meta-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.meta-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.meta-category {
  color: #60a5fa;
  background-color: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}

.meta-platform {
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.app-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

.app-desc {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.app-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.app-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--status-green);
  flex-shrink: 0;
}

/* Screenshots Carousel/Strip */
.app-screenshots {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.app-screenshots::-webkit-scrollbar {
  height: 5px;
}

.app-screenshots::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.screenshot-frame {
  flex: 0 0 240px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background-color: var(--bg-page);
  aspect-ratio: 526 / 296;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.screenshot-frame:hover img {
  transform: scale(1.02);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Google Play Store Badge Button */
.btn-play-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

.btn-play-store:hover {
  background-color: #0d1117;
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-2px);
}

.play-ico {
  flex-shrink: 0;
}

.btn-play-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn-play-copy small {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.btn-play-copy strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-green);
}

/* Catalog Banner */
.apps-catalog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
}

.catalog-banner-copy h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-banner-copy p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.catalog-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   10. PROCESS SECTION
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.process-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 16px;
}

.process-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.process-card-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.process-card-desc {
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   11. CONTACT SECTION & FUNCTIONAL FORM
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
}

.contact-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-panel-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--accent-subtle);
  color: #60a5fa;
  border: 1px solid var(--accent-border);
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.channel-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-cyan);
  overflow-wrap: anywhere;
}

.channel-link:hover {
  text-decoration: underline;
}

.channel-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-support-note {
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-support-note h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-support-note p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form-panel {
  padding: 36px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required-star {
  color: var(--status-red);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background-color: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-select {
  cursor: pointer;
}

.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--status-red);
}

.field-error {
  font-size: 0.75rem;
  color: var(--status-red);
  margin-top: 5px;
}

.hp-field {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.btn-submit {
  flex-shrink: 0;
}

.privacy-notice {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Alert Boxes */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.alert p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.alert-success {
  background-color: var(--status-green-subtle);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.alert-success .alert-title {
  color: #10b981;
}

.alert-success p {
  color: #a7f3d0;
}

.alert-error {
  background-color: var(--status-red-subtle);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.alert-error .alert-title {
  color: #ef4444;
}

.alert-error p {
  color: #fca5a5;
}

/* ==========================================================================
   12. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: #05080f;
  border-top: 1px solid var(--border-subtle);
  padding-top: 64px;
}

.footer-main {
  padding-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-email-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-all-apps {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.developer-store-link {
  font-weight: 600;
  color: var(--accent-cyan) !important;
}

.footer-tech-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-tech-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tech-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0 28px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.copyright-text, .trademark-text {
  margin-bottom: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.back-to-top:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   13. LEGAL PAGE (PRIVACY POLICY)
   ========================================================================== */
.legal-page {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
}

.legal-container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-medium);
}

.legal-title {
  font-size: clamp(2.2rem, 4vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.legal-section li {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-contact-box {
  padding: 18px 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 520px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .apps-catalog-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: rgba(9, 13, 22, 0.98);
    border-bottom: 1px solid var(--border-medium);
    padding: 12px 18px 20px;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-cta-btn {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .metric-divider {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .app-highlights {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   15. ACCESSIBILITY & PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .btn-primary, .app-card, .btn-play-store, .service-card, .pillar-card {
    border: 1px solid CanvasText;
  }
}
