:root {
  --bg: #f6f3ec;
  --bg-accent: #e7dcc8;
  --bg-card: #fffdf8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d6c9b3;
  --shadow: 0 12px 30px rgba(34, 32, 28, 0.09);
  --gnosi-primary: #3b82f6;
  --gnosi-primary-dark: #2563eb;
  --gnosi-primary-rgb: 59, 130, 246;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  transition: all 0.2s;
}

.lang-switch a:hover {
  background: var(--bg-accent);
  color: var(--ink);
}

.lang-switch span.active {
  background: var(--gnosi-primary);
  color: white;
}

/* Layout */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 10ch;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 20px;
  color: var(--muted);
  max-width: 45ch;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gnosi-primary);
  color: white;
  border: 1px solid var(--gnosi-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: var(--gnosi-primary-dark);
  border-color: var(--gnosi-primary-dark);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg-accent);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* Hero Visual - Graph Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-placeholder {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-header {
  background: var(--bg-accent);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

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

.dot.red { background: #ff6b6b; }
.dot.yellow { background: #ffd93d; }
.dot.green { background: #6bcb77; }

.mockup-content {
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-preview {
  position: relative;
  width: 240px;
  height: 200px;
}

.node {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--gnosi-primary);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.node.n1 { top: 20%; left: 30%; }
.node.n2 { top: 10%; left: 60%; }
.node.n3 { top: 40%; left: 15%; }
.node.n4 { top: 50%; left: 50%; width: 32px; height: 32px; box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5); }
.node.n5 { top: 70%; left: 35%; }
.node.n6 { top: 80%; left: 65%; }

.edge {
  position: absolute;
  background: rgba(59, 130, 246, 0.4);
  height: 2px;
  transform-origin: left center;
}

.edge.e1 { top: 28%; left: 32%; width: 60px; transform: rotate(25deg); }
.edge.e2 { top: 18%; left: 32%; width: 70px; transform: rotate(10deg); }
.edge.e3 { top: 38%; left: 18%; width: 65px; transform: rotate(45deg); }
.edge.e4 { top: 58%; left: 38%; width: 30px; transform: rotate(0deg); }
.edge.e5 { top: 62%; left: 40%; width: 55px; transform: rotate(-30deg); }

/* Problem Section */
.problem {
  padding: 100px 0;
  background: radial-gradient(circle at 15% 90%, #ece4d4 0, transparent 38%),
              radial-gradient(circle at 85% 8%, var(--bg-accent) 0, transparent 40%),
              var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.problem-item {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.problem-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.problem-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.problem-item p {
  color: var(--muted);
  font-size: 15px;
}

.solution {
  text-align: center;
  padding: 40px;
  background: var(--bg-accent);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}

.solution h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.solution p {
  color: var(--muted);
}

/* Features Section */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-accent);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 280px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--muted);
  font-size: 14px;
}

.step-arrow {
  font-size: 32px;
  color: var(--muted);
}

/* Integrations */
.integrations {
  padding: 100px 0;
}

.integrations-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.integration-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-icon::before {
  content: "";
  width: 32px;
  height: 32px;
  background: var(--ink);
  mask-size: contain;
  mask-repeat: no-repeat;
}

.integration-icon.g::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 5.5v13c0 .8-.2 1.5-.7 2l-6-3.5v-8l6-3.5c.5.5.7 1.2.7 2z'/%3E%3C/svg%3E"); }
.integration-icon.gc::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='2' fill='%23233'/%3E%3C/svg%3E"); }
.integration-icon.notion::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='%23233'/%3E%3C/svg%3E"); }
.integration-icon.mastodon::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.3 8.4c0-4.5-2.8-5.2-2.8-5.2-1.4-.6-3.8-1-6.8-1H10c-3 0-5.5.4-6.8 1l-.2.1c0 .1 0 .2-.1.3-.1.2-.1.5-.1.7 0 6.8 4.1 11.4 10.5 12.8l.4.1v-3.5c-.8 0-1.7-.1-2.5-.4-.4-.2-.9-.4-1.3-.6l-.3-.2c-.4-.2-.8-.3-1.1-.4-.3-.1-.5-.2-.6-.2l-.1-.1h-.1c-.1 0-.2.1-.2.1l-.2.1-.1.1-.1.1v1.4l.4.1.6.2c.3.1.6.2 1 .4.7.3 1.6.5 2.5.6.8.1 1.7.2 2.6.2s1.8-.1 2.7-.2c.8-.1 1.7-.3 2.4-.6l.6-.3v-3.4c0-1 .1-2 .1-3 1.5-.5 2.8-1.2 3.8-2.1 1.2-1.1 1.9-2.4 1.9-4 0-.4 0-.7-.1-1.1z' fill='%23233'/%3E%3C/svg%3E"); }
.integration-icon.bluesky::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.1 0 2 .9 2 2v2c0 1.1-.9 2-2 2h-2c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h2zm-5 5c0 2.21 1.79 4 4 4h2c2.21 0 4-1.79 4-4v-2h-2v2h-4V7h2v3h2V7h-4v3h-2z' fill='%23233'/%3E%3C/svg%3E"); }
.integration-icon.zotero::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.5L19 8l-7 3.5L5 8l7-3.5zM4 16.5v-6l7 3.5v6l-7-3.5zm16 0v-6l-7 3.5v6l7-3.5z' fill='%23233'/%3E%3C/svg%3E"); }

.integration-item span {
  font-size: 14px;
  color: var(--muted);
}

/* Mockups Section */
.mockups {
  padding: 100px 0;
}

.mockups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.mockup-box {
  background: var(--bg-accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-box.vault { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%); }
.mockup-box.graph { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.mockup-box.graph .mockup-label { color: var(--bg); }
.mockup-box.calendar { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%); }
.mockup-box.chat { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-accent) 100%); }

.mockup-label {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 16px;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 50ch;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.cta .btn-primary:hover {
  background: var(--bg-accent);
}

.cta .btn-secondary {
  color: var(--bg);
  border-color: rgba(255,255,255,0.3);
}

.cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Footer */
footer {
  background: var(--bg-accent);
  border-top: 1px solid var(--line);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-brand .logo {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  color: var(--muted);
  max-width: 30ch;
}

.footer-links {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--muted);
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1, .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .mockup-placeholder {
    max-width: 320px;
  }
  
  .nav-links {
    display: none;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    justify-content: flex-start;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .subtitle {
    font-size: 18px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}
