/* Design System & Variables */
:root {
  --bg: #0D1117;
  --surface: #2A2F36;
  --surface-hover: #323842;
  --border: #223043;
  --border-focus: rgba(15, 160, 141, 0.5);
  --text: #F5F3EE;
  --text-secondary: #8B949E;
  --primary: #0FA08D;
  --primary-glow: rgba(15, 160, 141, 0.25);
  --secondary: #2563EB;
  --secondary-glow: rgba(37, 99, 235, 0.25);
  --accent: #D6B273;
  --accent-glow: rgba(214, 178, 115, 0.25);
  --line: #324156;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  top: -200px;
  left: -200px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite alternate;
}

.bg-glow-secondary {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  bottom: 10%;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1, h2, h3, h4 {
  color: var(--text);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 1.6;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-text-arch {
  font-family: var(--font-display);
  font-weight: 400;
}

.logo-text-labs {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: #0D1117;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
  transform: translateY(-2px);
}

.btn-brass {
  background: var(--accent);
  color: #0D1117;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-brass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214, 178, 115, 0.1);
  border: 1px solid rgba(214, 178, 115, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.hero-badge svg {
  fill: currentColor;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 32px;
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--surface-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(15, 160, 141, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* Product Section */
.product-showcase {
  background: radial-gradient(ellipse at center, rgba(42, 47, 54, 0.5) 0%, var(--bg) 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--text);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(42, 47, 54, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
  .product-card {
    grid-template-columns: 1.2fr 1fr;
  }
}

.product-preview {
  position: relative;
  display: flex;
  justify-content: center;
}

.preview-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  border: 4px solid var(--surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--bg);
  overflow: hidden;
}

.mockup-header {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.mockup-dot:nth-child(2) { background: var(--primary); }
.mockup-dot:nth-child(3) { background: var(--secondary); }

.mockup-content {
  padding: 24px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-doc {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-btn {
  height: 36px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bg);
}

.product-badge {
  display: inline-block;
  background: var(--accent);
  color: #0D1117;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.product-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Manifesto Section */
.manifesto {
  background: var(--bg);
}

.manifesto-card {
  background: rgba(42, 47, 54, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.manifesto-card:hover {
  border-color: var(--line);
  background: var(--surface-hover);
}

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: block;
}

.manifesto-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* Contact / Form Section */
.contact-section {
  position: relative;
  background: rgba(42, 47, 54, 0.2);
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(42, 47, 54, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  appearance: none;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 160, 141, 0.15);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238B949E' stroke-width='2'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

/* Footer */
footer {
  background: #070A10;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-about {
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* Utility classes — replace inline styles (html-validate no-inline-style) */
.mockup-app-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: auto;
}
.mockup-doc-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.btn-block { width: 100%; }
.footer-wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 1.6px;
}
.footer-wordmark strong { font-weight: 600; }
.footer-link-muted { opacity: 0.5; }
