/* ── FAGRELLWORKS THEME ── */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE5;
  --bg-dark: #1A1917;
  --text: #1A1917;
  --text-mid: #5A5750;
  --text-light: #8E897E;
  --accent: #C45A2D;
  --accent-light: #E8DDD3;
  --teal: #2D7A6E;
  --teal-light: #D4E8E4;
  --border: rgba(26,25,23,0.12);
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

/* ── UTILITY ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,25,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(247,245,240,0.08);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; color: #F7F5F0;
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; color: rgba(247,245,240,0.55); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #F7F5F0; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 56px; position: relative;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,25,23,0.88) 0%,
    rgba(26,25,23,0.75) 50%,
    rgba(26,25,23,0.45) 100%
  );
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  max-width: 640px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: var(--serif); font-size: 52px; font-weight: 400;
  line-height: 1.12; margin-bottom: 24px; letter-spacing: -0.01em;
  color: #F7F5F0;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
}
.hero-desc {
  font-size: 16px; line-height: 1.75; color: rgba(247,245,240,0.7);
  max-width: 440px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  background: var(--accent); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: #A84A24; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  background: transparent; color: #F7F5F0; border: 1px solid rgba(247,245,240,0.25);
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(247,245,240,0.6); }

/* ── MARQUEE ── */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-item {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-light);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── PROBLEM ── */
.problem-section { padding: 8rem 0; }
.section-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-bottom: 4rem;
}
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-light);
  display: flex; align-items: center; gap: 10px;
}
.section-label span {
  font-family: var(--mono); font-size: 11px; color: var(--text-light);
}
.section-title {
  font-family: var(--serif); font-size: 38px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 16px; line-height: 1.75; color: var(--text-mid);
}
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 0.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.problem-legacy {
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.problem-legacy p {
  font-size: 15px; line-height: 1.8; color: var(--text-mid);
  margin: 0;
}
.problem-card {
  background: var(--bg); padding: 2rem;
  display: flex; flex-direction: column; gap: 12px;
}
.problem-card .num {
  font-family: var(--mono); font-size: 32px; font-weight: 500;
  color: var(--accent); line-height: 1;
}
.problem-card h3 {
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.problem-card p {
  font-size: 14px; line-height: 1.65; color: var(--text-mid);
}

/* ── APPROACH ── */
.approach-section {
  padding: 8rem 0;
  background: var(--bg-dark); color: #F7F5F0;
}
.approach-section .section-label { color: rgba(247,245,240,0.4); }
.approach-section .section-label span { color: rgba(247,245,240,0.4); }
.approach-section .section-title { color: #F7F5F0; }
.approach-section .section-subtitle { color: rgba(247,245,240,0.55); }
.approach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.approach-card {
  border: 0.5px solid rgba(247,245,240,0.1);
  border-radius: 10px; padding: 2rem;
  transition: border-color 0.3s;
  position: relative; overflow: hidden;
}
.approach-card:hover { border-color: rgba(247,245,240,0.25); }
.approach-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.approach-card .icon-bar {
  width: 32px; height: 3px; border-radius: 2px;
  margin-bottom: 16px;
}
.approach-card h3 {
  font-size: 16px; font-weight: 500; margin-bottom: 10px;
}
.approach-card p {
  font-size: 14px; line-height: 1.7; color: rgba(247,245,240,0.55);
}

/* ── TEAM ── */
.team-section { padding: 8rem 0; background: var(--bg-alt); }
.team-content {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem;
  margin-top: 3rem;
}
.team-text p {
  font-size: 15px; line-height: 1.8; color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.team-text p:last-child { margin-bottom: 0; }
.team-values {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 0.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
  align-self: start;
}
.team-value {
  background: var(--bg-alt); padding: 1.25rem 1.5rem;
}
.team-value-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.team-value-text {
  font-size: 14px; line-height: 1.5; color: var(--text);
  font-weight: 500;
}

/* ── SPECS ── */
.specs-section { padding: 8rem 0; }
.specs-table {
  border-top: 0.5px solid var(--border);
  margin-top: 3rem;
}
.spec-row {
  display: grid; grid-template-columns: 240px 1fr 1fr;
  border-bottom: 0.5px solid var(--border);
  align-items: baseline;
  padding: 1.25rem 0;
}
.spec-row .spec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-light);
}
.spec-row .spec-value {
  font-size: 15px; font-weight: 500;
}
.spec-row .spec-note {
  font-size: 13px; color: var(--text-mid); text-align: right;
}

/* ── TIMELINE ── */
.timeline-section { padding: 8rem 0; background: var(--bg-alt); }
.timeline {
  position: relative; margin-top: 3rem;
  padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px;
  width: 1px; background: var(--border);
}
.timeline-item {
  position: relative; padding: 0 0 3rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg-alt);
  z-index: 1;
}
.timeline-item.active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196,90,45,0.15);
}
.timeline-date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.timeline-item h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.timeline-item p {
  font-size: 14px; line-height: 1.65; color: var(--text-mid);
  max-width: 480px;
}

/* ── CTA / SIGNUP ── */
.cta-section {
  padding: 8rem 0; text-align: center;
}
.cta-section h2 {
  font-family: var(--serif); font-size: 42px; font-weight: 400;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px; color: var(--text-mid); margin-bottom: 36px;
  max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.signup-form {
  display: flex; gap: 8px; max-width: 420px;
  margin: 0 auto;
}
.signup-input {
  flex: 1; padding: 14px 16px; font-size: 14px;
  font-family: var(--sans);
  border: 1px solid var(--border); border-radius: 6px;
  background: transparent; color: var(--text);
  transition: border-color 0.2s;
}
.signup-input:focus { outline: none; border-color: var(--accent); }
.signup-input::placeholder { color: var(--text-light); }
.signup-btn {
  padding: 14px 28px; font-size: 14px; font-weight: 500;
  font-family: var(--sans);
  background: var(--accent); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.signup-btn:hover { background: #A84A24; }
.signup-success {
  display: none; font-size: 14px; color: var(--teal);
  font-family: var(--mono); margin-top: 12px;
}
.signup-error {
  display: none; font-size: 14px; color: var(--accent);
  font-family: var(--mono); margin-top: 12px;
}

/* ── FOOTER ── */
footer {
  padding: 3rem 0;
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left {
  font-family: var(--mono); font-size: 12px; color: var(--text-light);
  display: flex; flex-direction: column; gap: 4px;
}
.footer-right {
  display: flex; gap: 24px;
}
.footer-right a {
  font-size: 13px; color: var(--text-mid); text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--text); }

/* ── GHOST CONTENT ── */
.gh-content {
  max-width: 720px; margin: 0 auto;
  padding: 6rem 2rem;
}
.gh-content .kg-width-wide {
  max-width: 1040px;
  margin-left: calc(50% - 520px);
  margin-right: calc(50% - 520px);
}
.gh-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  width: 100%;
}
.gh-content h1, .gh-content h2, .gh-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 2rem 0 1rem;
}
.gh-content h1 { font-size: 38px; }
.gh-content h2 { font-size: 28px; }
.gh-content h3 { font-size: 22px; }
.gh-content p {
  font-size: 16px; line-height: 1.8; color: var(--text-mid);
  margin-bottom: 1.5rem;
}
.gh-content img {
  max-width: 100%; height: auto; border-radius: 6px;
  margin: 2rem 0;
}
.gh-content a { color: var(--accent); }
.gh-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem; margin: 2rem 0;
  font-family: var(--serif); font-size: 18px;
  color: var(--text-mid);
}
.gh-post-meta {
  font-family: var(--mono); font-size: 13px; color: var(--text-light);
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--border);
}
.gh-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}
.gh-tags a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-mid);
  text-decoration: none; padding: 4px 12px;
  border: 0.5px solid var(--border); border-radius: 4px;
  transition: all 0.2s;
}
.gh-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; }
  .nav-logo { font-size: 11px; letter-spacing: 0.08em; flex-shrink: 0; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; }
  .hero-grid { max-width: 100%; }
  .hero h1 { font-size: 36px; }
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-title { font-size: 30px; }
  .problem-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .team-content { grid-template-columns: 1fr; gap: 2rem; }
  .spec-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .spec-row .spec-note { text-align: left; grid-column: 1 / -1; }
  .cta-section h2 { font-size: 32px; }
  .signup-form { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 10px; }
  .nav-logo { font-size: 10px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 26px; }
  .container { padding: 0 1.25rem; }
}
