/* fossal.to — Design System: Linear-inspired dark mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg-deep: #010102;
  --bg-marketing: #08090a;
  --bg-panel: #0f1011;
  --bg-surface: #191a1b;
  --bg-elevated: #28282c;

  /* Text */
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-tertiary: #8a8f98;
  --text-quaternary: #62666d;

  /* Brand */
  --brand-indigo: #5e6ad2;
  --brand-violet: #7170ff;
  --brand-hover: #828fff;
  --brand-glow: rgba(94, 106, 210, 0.15);

  /* Status */
  --green: #27a644;
  --emerald: #10b981;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-standard: rgba(255, 255, 255, 0.08);
  --border-solid: #23252a;

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 9999px;
  --r-circle: 50%;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 200ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv01", "ss03";
  background: var(--bg-marketing);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--brand-violet); text-decoration: none; transition: color var(--duration); }
a:hover { color: var(--brand-hover); }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  transition: color var(--duration);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--brand-indigo);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: background var(--duration), transform var(--duration);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-standard);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
}

/* ─── HERO ─── */
.hero {
  padding: 180px 24px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-circle);
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--brand-violet), #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--brand-indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(94, 106, 210, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid var(--border-standard);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

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

/* ─── SECTIONS ─── */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 560px;
  letter-spacing: -0.01em;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all var(--duration) var(--ease-out);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  background: var(--brand-glow);
  border: 1px solid rgba(94, 106, 210, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-violet);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 590;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ─── ABOUT TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--duration) var(--ease-out);
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--r-circle);
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.team-info h3 {
  font-size: 17px;
  font-weight: 590;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.team-info .role {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-violet);
  margin-bottom: 10px;
}

.team-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ─── PRODUCTS ─── */
.product-showcase {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-violet), transparent);
  opacity: 0;
  transition: opacity var(--duration);
}

.product-card:hover::before { opacity: 1; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-glow);
  border: 1px solid rgba(94, 106, 210, 0.2);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-violet);
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: 640px;
  margin-bottom: 24px;
}

.product-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-quaternary);
}

.spec .check {
  color: var(--emerald);
  font-size: 14px;
}

/* ─── CODE BLOCK ─── */
.code-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.code-block .keyword { color: var(--brand-violet); }
.code-block .string { color: var(--emerald); }
.code-block .comment { color: var(--text-quaternary); }
.code-block .func { color: #60a5fa; }

/* ─── CONTACT ─── */
.contact-section {
  text-align: center;
}

.contact-card {
  max-width: 560px;
  margin: 48px auto 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-xl);
  padding: 48px;
}

.contact-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-standard);
  border-radius: var(--r-md);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--brand-violet);
  color: var(--brand-violet);
}

.contact-email svg {
  color: var(--brand-violet);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-quaternary);
  transition: color var(--duration);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-quaternary);
  margin-top: 24px;
  text-align: center;
  width: 100%;
}

/* ─── MOBILE NAV ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 10, 0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 32px 24px;
}

.mobile-menu.open { display: flex; flex-direction: column; gap: 24px; }

.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero { padding: 140px 20px 80px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero p { font-size: 16px; }

  .section { padding: 64px 20px; }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card { padding: 28px; }

  .contact-card { padding: 32px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── UTILITIES ─── */
.text-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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