/* LogicSync Center — soft neutral minimalist theme */
:root {
  --bg: #f3f5f4;
  --bg-elevated: #fafbfa;
  --surface: #ffffff;
  --ink: #1c2423;
  --ink-soft: #4a5553;
  --muted: #6b7674;
  --line: #d8dfdd;
  --accent: #2f4a4c;
  --accent-hover: #243a3c;
  --accent-soft: #8fa9a4;
  --accent-mist: #e4ecea;
  --focus: #3d6b6e;
  --error: #8b3a3a;
  --success: #2d5a45;
  --shadow: 0 18px 40px rgba(28, 36, 35, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143, 169, 164, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 74, 76, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f1 0%, var(--bg) 28%, #f7f8f7 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wide {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(243, 245, 244, 0.86);
  border-bottom: 1px solid rgba(216, 223, 221, 0.7);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, var(--accent-soft), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #f7fafa !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(250, 251, 250, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: fadeDown 0.3s var(--ease);
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }
}

/* Typography */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.55rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #f7fafa;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed visual plane */
.hero-bleed {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f7f6;
}

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 31, 0.15) 0%, rgba(20, 32, 31, 0.72) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-line {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  max-width: 28rem;
  margin: 0 0 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero-support {
  margin: 0;
  max-width: 32rem;
  color: rgba(244, 247, 246, 0.82);
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-content .btn-row {
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.hero-content .btn-primary {
  background: #f4f7f6;
  color: var(--accent);
}

.hero-content .btn-primary:hover {
  background: #fff;
  color: var(--accent-hover);
}

.hero-content .btn-ghost {
  border-color: rgba(244, 247, 246, 0.45);
  color: #f4f7f6;
}

.hero-content .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Split intro (home second section) */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.media-frame {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent-mist);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.04);
}

/* Feature list without cards */
.benefit-list {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.benefit-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-soft);
  line-height: 1;
}

/* Course / blog grids — interaction containers */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .item-grid {
    grid-template-columns: 1fr;
  }
}

.item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.item-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
  color: inherit;
}

.item-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.item-body {
  padding: 1.25rem 1.3rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.item-meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.item-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.item-body h3 {
  margin: 0;
}

/* Quotes / proof */
.quote-stack {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.quote {
  max-width: 40rem;
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-soft);
}

.quote p {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.quote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-tier.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(228, 236, 234, 0.65), var(--surface) 40%);
}

.price-tier h3 {
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.price-amount span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-tier li + li {
  margin-top: 0.45rem;
}

.price-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Forms */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--bg-elevated);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(61, 107, 110, 0.15);
}

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  min-height: 1.2em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e7f2ec;
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #f6eaea;
  color: var(--error);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-aside p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.contact-aside strong {
  color: var(--ink);
}

/* Legal / prose */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--accent-mist);
}

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1rem;
}

.page-hero .lede {
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Course detail */
.module-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.module-list li {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}

.module-list h3 {
  margin-bottom: 0.35rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.review-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.review-block p {
  margin: 0 0 0.75rem;
}

.stars {
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.case-study {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Blog article */
.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent-soft);
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(250, 251, 250, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 0 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-copy {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: fadeUp 0.4s var(--ease);
}

.cookie-banner p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f6eaea;
  color: var(--error);
  border-radius: var(--radius-sm);
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
