/* ========================================
   Arcline Project — Landing Page
   Hand-crafted, not generated.
   ======================================== */

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

:root {
  --bg:            #0d0e10;
  --bg-raised:     #15171b;
  --bg-card:       #1a1c22;
  --bg-card-hover: #1f2128;
  --border:        hsl(225 7% 18%);
  --border-hover:  hsl(225 8% 26%);
  --text:          hsl(223 8% 88%);
  --text-soft:     hsl(223 6% 65%);
  --text-faint:    hsl(223 5% 41%);
  --accent:        #0acf97;
  --accent-dim:    hsl(162 88% 33%);
  --accent-bg:     hsla(162 88% 43% / 0.09);
  --accent-border: hsla(162 88% 43% / 0.18);
  --amber:         #f09d51;
  --amber-bg:      hsla(28 84% 63% / 0.07);
  --mono:  "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace;
  --sans:  system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-card:   22px;
  --w-main:     1040px;
  --w-narrow:   680px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(225 6% 6% / 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--w-main);
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-icon { flex-shrink: 0; }

.nav nav { display: flex; gap: 2px; }

.nav nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 0.825rem;
  font-weight: 470;
  transition: color 0.18s, background 0.18s;
}

.nav nav a:hover {
  color: var(--text);
  background: hsl(225 6% 14%);
}

/* Hero */
.hero {
  padding: 130px 28px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 30%;
  width: 960px;
  height: 960px;
  background: radial-gradient(ellipse at center, hsla(162 88% 43% / 0.075) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background:
    linear-gradient(25deg, transparent 48%, var(--border) 48%, var(--border) 52%, transparent 52%),
    linear-gradient(25deg, transparent 48%, var(--border) 48%, var(--border) 52%, transparent 52%);
  background-size: 90px 90px;
  background-position: 0 0, 45px 45px;
}

.hero-inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: hsla(162 88% 43% / 0.06);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  margin-bottom: 32px;
}

.hero-badge::before {
  content: "$ ";
  color: var(--text-faint);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 26px;
  color: var(--text);
}

.hero-highlight { color: var(--accent); }

.tagline {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 42px;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: hsl(0 0% 8%);
  padding: 13px 30px;
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
  transition: background 0.18s, transform 0.14s;
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

.cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  padding: 13px 30px;
  font-size: 0.92rem;
  font-weight: 470;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.18s, color 0.18s;
}

.cta-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* Sections */
.section {
  padding: 105px 28px;
  position: relative;
}

.section-alt { background: var(--bg-raised); }

.section-inner {
  max-width: var(--w-main);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.section-label::before { content: "// "; color: var(--text-faint); }

.section-inner h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  font-weight: 680;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--text);
  max-width: 680px;
}

.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 590px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(302px, 1fr));
  gap: 10px;
}

.principle {
  display: flex;
  gap: 17px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--pad-card);
  transition: border-color 0.22s;
  position: relative;
  overflow: hidden;
}

.principle::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--accent-bg);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.principle:hover { border-color: var(--accent-border); }
.principle:hover::after { opacity: 1; }

.principle-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.principle h3 {
  font-family: var(--mono);
  font-size: 0.83rem;
  font-weight: 620;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.principle p {
  color: var(--text-soft);
  font-size: 0.845rem;
  line-height: 1.6;
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.22s;
  position: relative;
}

.stack-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  transition: width 0.2s;
}

.stack-card:nth-child(1)::before { background: var(--accent); }
.stack-card:nth-child(2)::before { background: hsl(280 45% 55%); }
.stack-card:nth-child(3)::before { background: hsl(200 60% 52%); }
.stack-card:nth-child(4)::before { background: var(--amber); }

.stack-card:hover { border-color: var(--border-hover); }
.stack-card:hover::before { width: 5px; }

.stack-header {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  padding: 20px 22px 10px 22px;
  color: var(--text-faint);
}

.stack-card:nth-child(1) .stack-header { color: var(--accent); }
.stack-card:nth-child(2) .stack-header { color: hsl(280 45% 65%); }
.stack-card:nth-child(3) .stack-header { color: hsl(200 60% 58%); }
.stack-card:nth-child(4) .stack-header { color: var(--amber); }

.stack-card ul {
  list-style: none;
  padding: 0 22px 22px 22px;
  margin: 0;
}

.stack-card li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.5;
}

.stack-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
}

.stack-card:nth-child(1) li::before { background: var(--accent); opacity: 0.55; }
.stack-card:nth-child(2) li::before { background: hsl(280 45% 55%); opacity: 0.55; }
.stack-card:nth-child(3) li::before { background: hsl(200 60% 52%); opacity: 0.55; }
.stack-card:nth-child(4) li::before { background: var(--amber); opacity: 0.55; }

/* Edition Teaser */
.edition-teaser {
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px dashed var(--accent-border);
  background: hsla(162 88% 43% / 0.04);
  position: relative;
}

.edition-teaser-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--accent-dim);
  margin-bottom: 8px;
}

.edition-teaser p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 700px;
}

.edition-teaser strong { color: var(--text); font-weight: 660; }

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 8px;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
  border: 0 solid var(--accent-border);
  border-left-width: 2px;
  padding: 19px 22px;
  transition: border-color 0.2s, background 0.18s, border-left-width 0.2s;
}

.tool:hover {
  border-left-width: 4px;
  border-left-color: var(--accent);
  background: var(--bg-card-hover);
}

.tool code {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 580;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.tool span {
  color: var(--text-soft);
  font-size: 0.81rem;
  line-height: 1.55;
}

/* Compare Grid */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 26px 22px;
  transition: border-color 0.22s, background 0.2s;
}

.compare-card:hover { border-color: var(--border-hover); }

.compare-highlight {
  border-color: var(--accent-border);
  background: linear-gradient(155deg, var(--bg-card) 0%, hsla(162 88% 43% / 0.06) 100%);
}

.compare-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 620;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--text-faint);
}

.compare-highlight .compare-label { color: var(--accent); }

.compare-desc {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Contribute Grid */
.contribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.contribute-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.22s, background 0.2s;
  position: relative;
}

.contribute-card::after {
  content: " →";
  position: absolute;
  right: 22px;
  top: 28px;
  font-family: var(--mono);
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.contribute-card:hover { border-color: var(--accent-border); }
.contribute-card:hover::after { opacity: 1; transform: translateX(0); }

.contribute-card span {
  font-size: 0.96rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.contribute-card small {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.contribute-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(162 88% 43% / 0.07);
  margin-bottom: 2px;
}

/* Inline Link */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 1px;
  transition: border-color 0.18s;
}

.inline-link:hover { border-bottom-color: var(--accent); }

/* Sponsor */
.sponsor-section .section-inner { text-align: left; }

.sponsor-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

.sponsor-desc {
  max-width: 600px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.sponsor-desc strong { color: var(--text); font-weight: 660; }

.sponsor-tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 8px 0;
}

.sponsor-tagline::before { content: "# "; color: var(--border-hover); }

/* Waitlist */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
  max-width: 480px;
}

.waitlist-form .input,
.waitlist-form .btn {
  width: 100%;
}

/* Edition Checkboxes */
.edition-checkboxes {
  border: none;
  padding: 0;
  display: flex;
  gap: 22px;
}

.edition-checkboxes legend {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 10px;
  padding: 0;
  float: left;
  width: 100%;
}

.edition-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-soft);
  user-select: none;
  transition: color 0.18s;
}

.edition-checkbox:hover { color: var(--text); }

.edition-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
}

.edition-checkbox input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.edition-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid hsl(0 0% 8%);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Waitlist Form Row */
.waitlist-row {
  display: flex;
  gap: 11px;
}

.input {
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 310px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: var(--mono);
}

.input::placeholder { color: var(--text-faint); font-family: var(--mono); }

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.btn {
  padding: 13px 30px;
  border: none;
  border-radius: 3px;
  background: var(--accent);
  color: hsl(0 0% 8%);
  font-size: 0.9rem;
  font-weight: 620;
  cursor: pointer;
  transition: background 0.18s;
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

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

.confirmation {
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  font-weight: 520;
  font-size: 0.88rem;
  display: inline-block;
  font-family: var(--mono);
}

.waitlist-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Footer */
.footer {
  padding: 44px 28px 30px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--w-main);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.84rem;
  margin-top: 5px;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 620;
  color: var(--text);
  text-decoration: none;
}

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.18s;
}

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

.footer-bottom {
  max-width: var(--w-main);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.footer-bottom p {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.74rem;
}

/* Responsive */
@media (max-width: 920px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 90px 22px 72px; }
  .section { padding: 68px 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta, .cta-secondary { justify-content: center; text-align: center; }
  .principles-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .hero { padding: 62px 18px 50px; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 50px 18px; }
  .section-inner h2 { font-size: 1.4rem; }
  .nav nav a { padding: 7px 9px; font-size: 0.76rem; }
  .input { min-width: 100%; }
  .btn { width: 100%; }
  .stack-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .contribute-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

