/* Polar-inspired dark theme with JetBrains Mono */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #101011;
  --bg-secondary: #1a1a1a;
  --text-primary: #c7c7cc;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --accent: #ffffff;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
}

@media (min-width: 768px) {
  .page-wrapper {
    height: 100vh;
    width: 100vw;
  }
}

.page-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font-size: 0.875rem;
}

/* Layout */
.container {
  width: 100%;
  height: 100%;
  padding: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 3rem;
  }
}

/* Header & Navigation */
header {
  margin-bottom: 3rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 4rem;
  }
}

.logo {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  nav ul {
    flex-direction: row;
    gap: 2rem;
  }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
}

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

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

/* Main Content */
main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  main {
    gap: 6rem;
    margin-bottom: 6rem;
  }
}

section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section-content {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }

  .section-left {
    flex-shrink: 0;
    flex-basis: 35%;
    max-width: 500px;
  }

  .section-text {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  .section-content {
    gap: 8rem;
  }
}

.section-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .founder-info {
    flex-direction: row;
    gap: 3rem;
  }
}

.founder-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
}

h3 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

h4 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
}

p a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
}

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

.lead {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

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

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    gap: 2rem;
  }
}

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

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

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card h3 {
  color: var(--text-primary);
}

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

/* Product Cards */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
  display: inline-block;
}

.product-card h3 a::after {
  content: " →";
}

.product-card h3 a:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.product-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.product-status.active {
  border-color: #10b981;
  color: #10b981;
}

/* Image Placeholders */
.image-placeholder {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.founder-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  corner-shape: squircle;
}

@media (min-width: 768px) {
  .founder-photo {
    width: 200px;
    max-width: 200px;
  }
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: auto;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  footer {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section h4 {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section li {
  font-size: 0.75rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.footer-bottom {
  display: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* Policies Layout */
.policies-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .policies-layout {
    flex-direction: row;
    gap: 4rem;
  }
}

@media (min-width: 1280px) {
  .policies-layout {
    gap: 8rem;
  }
}

.policies-nav {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .policies-nav {
    flex-basis: 35%;
    max-width: 300px;
  }
}

.policies-nav h2 {
  margin-bottom: 1.5rem;
}

.policies-nav nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policies-nav nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
}

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

.policies-nav nav a:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.policy-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-content h1 {
  margin-bottom: 0.5rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.policy-content ul,
.policy-content ol {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.policy-content a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding-bottom: 2px;
}

.policy-content a:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
