:root {
  --ink: #f7fbf2;
  --muted: #b9c8bf;
  --soft: #dce7dd;
  --deep: #071314;
  --deep-2: #0d1b20;
  --panel: #132323;
  --panel-2: #182a2b;
  --line: rgba(247, 251, 242, 0.15);
  --line-strong: rgba(244, 204, 111, 0.38);
  --emerald: #24d49a;
  --emerald-dark: #0e6f59;
  --gold: #f4cc6f;
  --coral: #ff816f;
  --shadow: rgba(0, 0, 0, 0.36);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(36, 212, 154, 0.08), transparent 34%),
    linear-gradient(235deg, rgba(244, 204, 111, 0.09), transparent 40%),
    var(--deep);
  content: "";
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 50;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--gold);
  color: #201703;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

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

.brand,
.nav-links,
.subnav,
.site-footer nav,
.card-actions,
.hero-actions,
.inline-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #102420;
  color: var(--gold);
  box-shadow: 0 10px 26px var(--shadow);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links,
.subnav,
.site-footer nav,
.inline-links {
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a,
.subnav a,
.site-footer a,
.inline-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.subnav a:hover,
.subnav a[aria-current="page"],
.site-footer a:hover,
.inline-links a:hover,
.legal-document a:hover {
  color: var(--gold);
}

.subnav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.subnav {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68svh;
  padding: 122px max(24px, calc((100vw - 1180px) / 2)) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 19, 20, 0.98) 0%, rgba(7, 19, 20, 0.86) 54%, rgba(7, 19, 20, 0.5) 100%),
    url("/assets/images/wordify-logo.jpg") right 12% center / min(540px, 62vw) auto no-repeat;
}

.home-hero {
  min-height: 70svh;
}

.wordify-hero {
  background:
    linear-gradient(90deg, rgba(7, 19, 20, 0.98) 0%, rgba(9, 24, 26, 0.86) 48%, rgba(9, 24, 26, 0.52) 100%),
    url("/assets/images/wordify-logo.jpg") right 10% center / min(520px, 58vw) auto no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 5.2rem;
  line-height: 0.94;
}

.page-title h1 {
  font-size: 4rem;
}

.hero-line {
  margin-bottom: 18px;
  color: var(--emerald);
  font-size: 1.9rem;
  font-weight: 900;
}

.hero-summary,
.section-heading p,
.split-section p,
.product-card p,
.feature-card p,
.support-band p,
.legal-document p,
.legal-document li,
.contact-panel p,
.route-list p {
  color: var(--muted);
}

.hero-summary {
  max-width: 610px;
  font-size: 1.12rem;
}

.hero-actions,
.card-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: #201703;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(247, 251, 242, 0.08);
  color: var(--ink);
}

.section,
.split-section,
.support-band,
.legal-page,
.page-hero,
.route-list,
.contact-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section,
.page-hero,
.legal-page,
.route-list,
.contact-grid {
  padding: 56px 0;
}

.page-hero {
  padding-top: 48px;
  padding-bottom: 34px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split-section h2,
.support-band h2,
.legal-document h1,
.page-hero h1 {
  margin-bottom: 12px;
  font-size: 3rem;
  line-height: 1.06;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.feature-card,
.contact-panel,
.route-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.product-card {
  display: grid;
  gap: 20px;
  min-height: 320px;
  padding: 24px;
}

.featured-product {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  min-height: 0;
}

.product-card img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 42%;
}

.product-card h3,
.feature-card h3,
.contact-panel h2,
.route-list h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.meta-line {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.feature-card {
  min-height: 178px;
  padding: 22px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip-grid li {
  min-height: 46px;
  border: 1px solid rgba(36, 212, 154, 0.24);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(36, 212, 154, 0.08);
  color: var(--soft);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 36px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #142620;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  justify-content: flex-end;
}

.legal-page {
  padding-top: 40px;
}

.legal-document {
  max-width: 900px;
}

.legal-document section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-document a,
.contact-panel a,
.route-list a {
  color: var(--gold);
  font-weight: 900;
}

.legal-document ul,
.contact-panel ul {
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-panel {
  min-height: 220px;
  padding: 24px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
}

.route-list article {
  padding: 22px;
}

.inline-links {
  margin-top: 16px;
}

@media (max-width: 940px) {
  .site-header {
    position: static;
    padding: 18px 0;
  }

  .hero {
    min-height: 560px;
    padding-top: 70px;
    background:
      linear-gradient(180deg, rgba(7, 19, 20, 0.95) 0%, rgba(7, 19, 20, 0.84) 100%),
      url("/assets/images/wordify-logo.jpg") center top 26px / min(460px, 94vw) auto no-repeat;
  }

  .hero-content {
    padding-top: 180px;
  }

  h1,
  .page-title h1 {
    font-size: 4rem;
  }

  .hero-line {
    font-size: 1.55rem;
  }

  .section-heading h2,
  .split-section h2,
  .support-band h2,
  .legal-document h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .featured-product,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .feature-grid,
  .contact-grid,
  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

  .support-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links,
  .subnav {
    width: 100%;
    gap: 10px;
  }

  .hero {
    min-height: 520px;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-content {
    padding-top: 138px;
  }

  h1,
  .page-title h1 {
    font-size: 3rem;
  }

  .hero-line {
    font-size: 1.28rem;
  }

  .section,
  .page-hero,
  .legal-page,
  .route-list,
  .contact-grid {
    padding: 40px 0;
  }

  .section-heading h2,
  .split-section h2,
  .support-band h2,
  .legal-document h1,
  .page-hero h1 {
    font-size: 2rem;
  }

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

  .button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-grid,
  .feature-grid,
  .contact-grid,
  .route-list,
  .chip-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .feature-card,
  .contact-panel,
  .route-list article,
  .support-band {
    padding: 20px;
  }
}
