/* ============================================================
   TASKLOID — STYLE
   Brutalist-Swiss hybrid with terminal accents.
   Raw structural honesty. Swiss precision.
   ============================================================ */

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

:root {
  --bg:            #faf8f5;
  --fg:            #141413;
  --fg-body:       #2d2a26;
  --fg-muted:      #4a4540;
  --fg-faint:      #6b6560;
  --fg-ultra:      #d8d3ca;
  --accent:        #e6a100;
  --accent-dim:    rgba(230, 161, 0, 0.08);
  --border:        #d5d0c8;
  --border-faint:  #e7e2da;
  --font-body:     "Inter", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:     "SF Mono", "JetBrains Mono", "Fira Code", "Consolas", "Courier New", monospace;
  --font-display:  "Chakra Petch", monospace;
  --spacing-xs:    0.5rem;
  --spacing-sm:    1rem;
  --spacing-md:    2rem;
  --spacing-lg:    4rem;
  --spacing-xl:    7rem;
  --max-w:         1200px;
  --grid-gap:      2rem;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { color: var(--fg); background: rgba(230, 161, 0, 0.28); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.5rem var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  max-width: calc(var(--max-w) + (var(--spacing-lg) * 2));
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
  position: relative;
}
.wordmark::after {
  content: '';
  position: absolute;
  top: 0.15em;
  right: -0.55em;
  width: 5px; height: 5px;
  background: var(--accent);
}

.site-header nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 3px;
  transition: border-color 0.12s;
}
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a:hover { border-color: var(--accent); }
/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
main > * {
  min-width: 0;
}

/* ============================================================
   HERO — big type, badge left, accent rule right
   ============================================================ */
.hero {
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-xl);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.hero h1 .line { display: block; }
.hero h1 .line:first-child { font-weight: 700; }
.hero h1 .line:last-child { color: var(--fg-muted); }

.hero-micro {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}
.hero-meta p { color: var(--fg-body); font-size: 1rem; line-height: 1.7; }
.text-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  white-space: nowrap;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: var(--spacing-lg);
  width: 120px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--fg);
  margin-bottom: 2rem;
}
/* ============================================================
   "NO." STRIP — the tonal anchor
   ============================================================ */
.not-that {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}
.not-that .section-label {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.big-declaration {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  line-height: 1;
  max-width: 500px;
}
.big-declaration .dim { color: var(--fg-muted); }

.no-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--spacing-lg);
  max-width: 800px;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.no-list li {
  display: flex;
  gap: 0.75rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--fg-body);
  line-height: 1.5;
}
.no-list .marker {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
}
.no-list strong { color: var(--fg); font-weight: 700; }

/* ============================================================
   FEATURE COLUMNS
   ============================================================ */
.features {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.feature-card {
  padding-top: 1.5rem;
  border-top: 2px solid var(--fg);
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--fg-body);
  line-height: 1.7;
}
.feature-card:nth-child(2) { border-top-color: var(--accent); }
/* ============================================================
   INFRASTRUCTURE / COMPUTE PROFILE
   ============================================================ */
.infrastructure {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, var(--accent-dim) 100%);
}
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.infra-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.infra-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  color: var(--fg);
}
.infra-card p {
  font-size: 0.9rem;
  color: var(--fg-body);
  line-height: 1.7;
}

/* ============================================================
   WHY / ETHOS
   ============================================================ */
.why, .ethos {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}

.statement-large {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.body-text {
  font-size: 1rem;
  color: var(--fg-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ethos .section-label {
  text-align: left;
}
.ethos .statement-large {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: left;
  max-width: none;
  width: 100%;
  margin-bottom: 2rem;
}
.ethos .body-text {
  text-align: left;
  max-width: none;
  width: 100%;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-intro {
  width: 100%;
  max-width: none;
  margin: 0 auto 3rem;
  text-align: center;
}
.contact-intro .statement-large {
  text-align: center;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  width: 100%;
}
.contact-intro .body-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  width: 100%;
}
.contact-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.hp-field {
  position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden;
}

.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.error-msg {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #c0392b;
  margin-top: 0.3rem;
  min-height: 0.9rem;
}

button[type="submit"] {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--fg);
  padding: 0.85rem 2.5rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  margin-top: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
button[type="submit"]:hover { background: var(--fg); color: var(--bg); }
button[type="submit"]:disabled { opacity: 0.4; cursor: not-allowed; }

.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  min-height: 1rem;
}
.form-status.success { color: #2a7d2a; }
.form-status.error   { color: #c0392b; }

.tiny-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  margin-top: 2rem;
  padding-left: 0;
  border-left: none;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.5rem var(--spacing-lg);
  border-top: 1px solid var(--border);
  max-width: calc(var(--max-w) + (var(--spacing-lg) * 2));
  margin: 0 auto;
}
.site-footer .wordmark { font-size: 1.3rem; }
.copyright {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --grid-gap: 1rem; --spacing-lg: 2rem; --spacing-xl: 4rem; }
  .no-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }
  :root { --spacing-lg: 1.5rem; --spacing-xl: 3rem; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: 1.5rem; }
  .site-header nav a { font-size: 0.68rem; padding: 0.4rem 0; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); overflow-wrap: anywhere; }
  .hero-meta { grid-template-columns: 1fr; align-items: start; margin-top: 2rem; }
  .big-declaration { font-size: 1.6rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}