:root {
  --bg: #fbfaf8;
  --bg-soft: #f2f0ed;
  --surface: #ffffff;
  --black: #111114;
  --black-soft: #1b1b20;
  --text: #202025;
  --muted: #66666d;
  --line: #e4dfda;
  --red: #b11226;
  --red-dark: #7e0d1b;
  --shadow-sm: 0 8px 22px rgba(17, 17, 20, 0.06);
  --shadow-md: 0 18px 46px rgba(17, 17, 20, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(177, 18, 38, 0.075), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(17, 17, 20, 0.055), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #ffffff 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1220px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-symbol {
  min-width: 118px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--black);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
  color: var(--black);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--black);
  color: var(--surface);
  padding-inline: 16px;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--red);
  color: var(--surface);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
  border-radius: 10px;
}

.menu-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  padding: 58px 0 68px;
}

.hero-copy,
.hero-card,
.text-panel,
.quote-panel,
.feature-card,
.tool-card,
.learning-card,
.contact-panel,
.social-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.hero-copy {
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-md);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2 {
  margin: 0;
  color: var(--black);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(2.35rem, 6.1vw, 5.1rem);
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--surface);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
  outline: none;
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--black);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--black);
  transform: translateY(-2px);
  outline: none;
}

.hero-card {
  min-height: 360px;
  padding: clamp(26px, 4vw, 34px);
  background: var(--black);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.card-label {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f7d7dc;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card p {
  margin: 28px 0;
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 750;
}

.section {
  padding: 76px 0;
}

.section-muted {
  background: rgba(242, 240, 237, 0.75);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--black);
  color: var(--surface);
}

.section-dark .section-head h2,
.section-dark .section-subtitle {
  color: var(--surface);
}

.section-dark .section-kicker {
  color: #ff6576;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.text-panel,
.quote-panel {
  padding: clamp(24px, 4vw, 34px);
}

.text-panel h3,
.feature-card h3,
.tool-content h3,
.learning-card-content h3 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.text-panel p,
.feature-card p,
.tool-content p,
.learning-card-content p {
  margin: 0;
  color: var(--muted);
}

.text-panel p + p {
  margin-top: 14px;
}

.quote-panel {
  background: var(--red);
  border-color: var(--red);
  color: var(--surface);
  display: flex;
  align-items: flex-end;
}

.quote-panel p {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(177, 18, 38, 0.28);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-logo {
  display: grid;
  place-items: center;
  min-height: 235px;
  padding: clamp(18px, 3vw, 28px);
  background: #fffefe;
  border-bottom: 1px solid var(--line);
}

.tool-logo img {
  width: min(100%, 420px);
  object-fit: contain;
}

.tool-content {
  padding: 26px;
}

.tool-content p {
  min-height: 52px;
}

.tool-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
}

.tool-link:hover,
.tool-link:focus-visible {
  color: var(--red-dark);
  outline: none;
}


.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.learning-card {
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.learning-card:hover,
.learning-card:focus-within {
  border-color: rgba(177, 18, 38, 0.34);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.learning-card-media {
  min-height: 100%;
  padding: 14px;
  display: grid;
  place-items: center;
  background: #fffefe;
  border-right: 1px solid var(--line);
}

.learning-card-media img {
  width: 100%;
  height: 100%;
  max-height: 206px;
  object-fit: cover;
  border-radius: 18px;
}

.learning-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.learning-card-label {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(177, 18, 38, 0.08);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learning-card-content h3 {
  font-size: 1.2rem;
}

.learning-card-content p {
  font-size: 0.94rem;
}

.learning-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.learning-detail-media img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.learning-detail-content h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.learning-detail-content p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.learning-detail-content .btn {
  margin-top: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.contact-panel {
  padding: 26px;
  color: var(--black);
  display: grid;
  gap: 12px;
}

.contact-panel a {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
  background: #ffffff;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.copy-mail {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--black);
  color: var(--surface);
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-mail:hover,
.copy-mail:focus-visible {
  background: var(--red);
  outline: none;
}

.copy-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  min-height: 128px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: rgba(177, 18, 38, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.social-card strong {
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 900;
}

.social-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--black);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .btn,
  .feature-card,
  .learning-card,
  .social-card,
  .nav-links a {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    z-index: 10;
    width: min(340px, calc(100vw - 40px));
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero,
  .about-grid,
  .learning-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 280px;
  }

  .feature-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {
  .container,
  .nav {
    width: min(100% - 28px, var(--container));
  }

  .nav {
    min-height: 70px;
  }

  .brand {
    gap: 8px;
    max-width: calc(100% - 56px);
  }

  .brand-symbol {
    min-width: 108px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding: 34px 0 50px;
    gap: 16px;
  }

  .hero-copy,
  .hero-card,
  .text-panel,
  .quote-panel,
  .feature-card,
  .tool-content,
  .learning-card,
  .learning-card-content,
  .contact-panel,
  .social-card {
    border-radius: 22px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-card {
    min-height: 260px;
  }

  .section {
    padding: 56px 0;
  }

  .feature-grid,
  .tools-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .learning-card {
    grid-template-columns: 1fr;
  }

  .learning-card-media {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .learning-card-media img {
    max-height: 220px;
  }

  .tool-logo {
    min-height: 190px;
  }

  .tool-logo img {
    width: min(100%, 350px);
  }

  .tool-content p {
    min-height: auto;
  }

  .footer-inner {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 22px 0;
  }
}

@media (max-width: 440px) {
  .container,
  .nav {
    width: min(100% - 22px, var(--container));
  }

  .brand-symbol {
    min-width: 100px;
    font-size: 0.72rem;
  }

  .brand-copy strong {
    max-width: 118px;
    font-size: 0.92rem;
  }

  .nav-links {
    width: calc(100vw - 22px);
  }

  .hero h1 {
    font-size: clamp(2.1rem, 13vw, 3rem);
  }

  .section-head h2 {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }

  .hero-card p {
    font-size: 1.75rem;
  }
}

@media (max-width: 1040px) {
  .nav-links.is-page-nav {
    position: static;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .nav-links.is-page-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
