/* freeport — landing page styles. Light, calm, minimal. */

:root {
  --bg: #FAFAF7;
  --ink: #0A0A0A;
  --gray: #6B7280;
  --line: #E5E7EB;
  --code-bg: #F3F4F6;
  --green: #16A34A;
  --green-deep: #15803D;
  --white: #FFFFFF;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- shared bits ---------- */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 9px;
  vertical-align: middle;
  flex: none;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 18px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 11vw, 132px) 0 clamp(48px, 8vw, 88px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  margin-bottom: clamp(28px, 5vw, 44px);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.badge:hover {
  border-color: #D1D5DB;
  transform: translateY(-1px);
}

.hero__wordmark {
  margin: 0;
  max-width: 100%;
  font-weight: 600;
  font-size: clamp(56px, 15.5vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero__subtitle {
  max-width: 560px;
  margin: clamp(20px, 3.5vw, 32px) auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: #262626;
}

.btn--secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.btn--secondary:hover {
  border-color: #D1D5DB;
}

/* ---------- inline code box (hero) ---------- */
.code-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: min(620px, 100%);
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 10px 18px;
}

.code-inline code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: #1F2937;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-inline code::-webkit-scrollbar {
  display: none;
}

.prompt {
  color: var(--green);
  font-weight: 500;
  margin-right: 6px;
}

.copy-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  flex: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: #D1D5DB;
}
.copy-btn.copied {
  color: var(--green-deep);
  border-color: var(--green);
}

/* ---------- sections ---------- */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.section__title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  max-width: 18ch;
}

.section__lead {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--gray);
  line-height: 1.6;
}

/* positioning values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 64px);
}
.value h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.value p {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
}

/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: #D8DCE2;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.04);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.55;
}

/* quickstart */
.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 56px);
}
.qs-block {
  min-width: 0;
}
.qs-block__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qs-block__title--wide {
  margin-top: 40px;
}

.code-block {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #1F2937;
}
.code-block .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.code-block .kw { color: var(--green-deep); }
.code-block .str { color: #4B5563; }

.qs-note {
  margin: 28px 0 0;
  font-size: 14.5px;
  color: var(--gray);
}
.qs-note code,
.status-box code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* status */
.status-box {
  margin-top: clamp(32px, 5vw, 48px);
  max-width: 70ch;
}
.status-box p {
  margin: 0 0 18px;
  font-size: 16px;
  color: #374151;
}
.status-box p:last-child {
  margin-bottom: 0;
}
.status-box strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- about page ---------- */
.page-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(8px, 3vw, 24px);
  text-align: center;
}
.page-hero .badge {
  margin-bottom: clamp(24px, 4vw, 36px);
}
.page-hero__title {
  margin: 0;
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.page-hero__title em {
  font-style: italic;
  font-weight: 400;
}
.page-hero__lead {
  max-width: 620px;
  margin: clamp(20px, 3vw, 28px) auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--gray);
  line-height: 1.55;
}

.prose {
  max-width: 64ch;
  margin-top: clamp(28px, 4vw, 40px);
}
.prose p {
  margin: 0 0 18px;
  font-size: 17px;
  color: #374151;
  line-height: 1.7;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }

/* pillars / principles reuse .card grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 56px);
}
.pillar__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: block;
  margin-bottom: 10px;
}

/* projects list */
.projects {
  margin-top: clamp(40px, 6vw, 56px);
  border-top: 1px solid var(--line);
}
.project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.15s ease;
}
.project:hover { padding-left: 8px; }
.project__main { min-width: 0; }
.project__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.project__desc {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--gray);
}
.project__status {
  flex: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.project__status--live { color: var(--green-deep); }

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .project { flex-direction: column; gap: 6px; }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wordmark--footer {
  font-size: 16px;
}
.footer__brand p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--gray);
  max-width: 30ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__links a:hover {
  color: var(--ink);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .qs-grid {
    grid-template-columns: 1fr;
  }
  .nav__links {
    gap: 18px;
  }
  .nav__links a[href="#features"] {
    display: none;
  }
  .nav-long {
    display: none;
  }
  .hero__cta {
    width: 100%;
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav__inner {
    height: 58px;
  }
  .code-inline {
    gap: 10px;
    padding: 8px 8px 8px 14px;
  }
  .copy-btn {
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
