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

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

:root {
  --bg:      #080808;
  --surface: #101010;
  --border:  rgba(255,255,255,0.08);
  --text:    #f0f0f0;
  --muted:   #5a5a5a;
  --font:    'Inter', system-ui, -apple-system, sans-serif;
  --max-w:   1100px;
  --pad-x:   2.5rem;
}

html.day {
  --bg:      #ffffff;
  --surface: #f2f2f2;
  --border:  rgba(0,0,0,0.08);
  --text:    #111111;
  --muted:   #909090;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 var(--pad-x);
}

html.day header { background: rgba(255,255,255,0.88); }

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.theme-toggle:hover { color: var(--text); }

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

html.day .icon-sun  { display: block; }
html.day .icon-moon { display: none; }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

header nav { display: flex; gap: 2rem; align-items: center; }

header nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

header nav a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   MAIN
───────────────────────────────────────── */
main { flex: 1; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: 9rem var(--pad-x) 8rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

/* ── Terminal ── */
.terminal {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Courier New', monospace;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0px);
  transition: transform 0.12s ease-out;
  will-change: transform;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.55rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1rem 1.125rem 1.25rem;
  font-size: 0.8rem;
  height: 72px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.t-prompt { color: rgba(255,255,255,0.6); white-space: nowrap; }
.t-cmd    { color: #fff; }

.t-cursor {
  color: rgba(255,255,255,0.9);
  animation: blink 1s step-end infinite;
}

.t-out {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  min-height: 1.1em;
  white-space: pre;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 14ch;
  margin-bottom: 2.25rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2.75rem;
}

/* ─────────────────────────────────────────
   PILLARS
───────────────────────────────────────── */
.pillars {
  border-top: 1px solid var(--border);
}

.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  padding: 3.5rem 3rem 3.5rem 0;
  border-right: 1px solid var(--border);
}

.pillar:not(:first-child) { padding-left: 3rem; }

.pillar:last-child {
  border-right: none;
  padding-right: 0;
}

.pillar-num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2rem;
  font-variant-numeric: tabular-nums;
}

.pillar h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   FOUNDER / PROJECTS / CONTACT SECTIONS
───────────────────────────────────────── */
.founder,
.projects,
.contact {
  border-top: 1px solid var(--border);
  padding: 6rem var(--pad-x);
}

.founder-inner,
.projects-inner,
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.founder-name {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.founder-name:hover { border-color: var(--text); }

.projects-list {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
}

.project-row:last-child { border-bottom: none; }

.project-row:hover { background: var(--surface); }

.project-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

.project-row svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.detail-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

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

.contact-note {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.founder-bio p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.founder-bio p:last-child { margin-bottom: 0; }

/* reuse .about-inner for .company-inner alignment */
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-left p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-right {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.detail-row {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.detail-row:last-child { border-bottom: none; }

.detail-row .key {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.1rem;
}

.detail-row .value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

footer nav { display: flex; gap: 1.75rem; }

footer nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

footer nav a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   IMPRINT PAGE
───────────────────────────────────────── */
.imprint-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem var(--pad-x) 8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 3.5rem;
  transition: color 0.15s;
}

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

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.imprint-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.imprint-sections {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.imprint-section {
  padding: 1.625rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.imprint-section:last-child { border-bottom: none; }

.imprint-section h2 {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.imprint-section address,
.imprint-section p {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner,
  .founder-inner,
  .projects-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .terminal { display: none; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --pad-x: 1.5rem; }

  .hero { padding: 5.5rem var(--pad-x) 4rem; }

  .pillars-inner { grid-template-columns: 1fr; }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0 !important;
  }

  .pillar:last-child { border-bottom: none; }

  .detail-row { grid-template-columns: 1fr; gap: 0.25rem; }

  .imprint-section { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 480px) {
  :root { --pad-x: 1.25rem; }

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