/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  --color-bg: #0a0a0f;
  --color-bg-surface: #12121a;
  --color-bg-elevated: #1a1a26;
  --color-border: rgba(124, 58, 237, 0.2);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-accent: #7c3aed;
  --color-accent-light: #9d5ffa;
  --color-accent-dim: rgba(124, 58, 237, 0.15);
  --color-accent-glow: rgba(124, 58, 237, 0.35);
  --color-accent-2: #2563eb;
  --color-text: #f0f0f8;
  --color-text-muted: #9090b0;
  --color-text-faint: #50506a;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Vollkorn', Georgia, serif;
  --nav-height: 72px;
  --container-max: calc(1200px + 1in);
}

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

html {
  scroll-behavior: smooth;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 1em;
  line-height: 1.6;
}

body {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

::selection {
  background: var(--color-accent-dim);
  color: var(--color-text);
  text-shadow: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

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

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

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  box-shadow: 0 4px 20px var(--color-accent-glow);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border-color: var(--color-border-subtle);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--purple {
  background: var(--color-accent-light);
  color: #fff;
  border-color: var(--color-accent-light);
  font-family: var(--font-display);
}

.btn--purple:hover {
  background: #b070ff;
  border-color: #b070ff;
  box-shadow: 0 4px 20px rgba(157, 95, 250, 0.5);
  color: #fff;
}

.btn--yellow {
  background: #e49400;
  color: #1a1000;
  border-color: #e49400;
  font-family: var(--font-display);
}

.btn--yellow:hover {
  background: #f5a800;
  border-color: #f5a800;
  box-shadow: 0 4px 20px rgba(228, 148, 0, 0.45);
  color: #1a1000;
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  border-bottom: none;
  transition: transform 0.35s ease, background 0.35s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem 0 0.5in;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  display: block;
  flex-shrink: 0;
  align-self: center;
  vertical-align: top;
  background: #000;
  border-radius: 4px;
  margin-top: -5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav__dropdown-item:hover {
  background: var(--color-accent-dim);
}

.nav__dropdown-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav__dropdown-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.nav__link-inline {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link-inline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav__link-inline:hover {
  color: var(--color-text);
}

.nav__link-inline:hover::after {
  transform: scaleX(1);
}

@media (max-width: 480px) {
  .nav__signin {
    display: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  top: -3.35in;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% + 3.35in);
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.72) 0%, transparent 28%),
    linear-gradient(to right, rgba(10,10,15,0.6) 0%, transparent 8%, transparent 92%, rgba(10,10,15,0.6) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0.5in 3rem;
  display: flex;
  justify-content: flex-start;
}

.hero__text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
}

.hero__headline {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.9);
  white-space: nowrap;
}

.cyan-text {
  color: #00e5ff;
  -webkit-text-fill-color: #00e5ff;
}

.magenta-text {
  color: #ff00cc;
  -webkit-text-fill-color: #ff00cc;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: rgba(240,240,248,0.85);
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}

.hero__desc {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  color: var(--color-text);
  max-width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  white-space: nowrap;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__social-proof {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(144,144,176,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero__scroll-chevron {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(240,240,248,0.7);
  border-bottom: 2px solid rgba(240,240,248,0.7);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

.hero__scroll-chevron:nth-child(1) { opacity: 1; }
.hero__scroll-chevron:nth-child(2) { animation-delay: 0.2s; opacity: 0.6; }
.hero__scroll-chevron:nth-child(3) { animation-delay: 0.4s; opacity: 0.3; }

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

@media (max-width: 768px) {
  .hero__content {
    padding: 0 1rem 5rem;
  }
}

@media (max-width: 640px) {
  .hero__headline {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .hero__sub {
    font-size: 1.05rem;
  }
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
  scroll-margin-top: var(--nav-height);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 0 1.5rem;
}

.features {
  background: var(--color-bg-surface);
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid--3,
  .card-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid--3,
  .card-grid--6 {
    grid-template-columns: 1fr;
  }
}

/* ---- Cards ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--color-accent-glow);
  border-color: var(--color-border);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--color-text);
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.card__tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.875rem;
}

.card__link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card__link:hover {
  color: var(--color-text);
  gap: 0.5rem;
}

/* ---- Feature Sections (image background) ---- */
.feature-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.feature-section__bg {
  position: absolute;
  inset: 0;
  background: url('dragonware-hero.png') center/cover no-repeat;
  background-attachment: fixed;
}

.feature-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.88) 42%, rgba(10,10,15,0.25) 100%);
}

.feature-section--reverse .feature-section__overlay {
  background: linear-gradient(to left, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.88) 42%, rgba(10,10,15,0.25) 100%);
}

.feature-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.feature-section--reverse .feature-section__inner {
  justify-content: flex-end;
}

.feature-section__image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.feature-section--reverse .feature-section__image {
  justify-content: flex-start;
}

.feature-section__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  .feature-section__image {
    display: none;
  }
}

.feature-section__content {
  max-width: 540px;
}

.feature-section__logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0,0,0,0.9);
}

.feature-section__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.feature-section__sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.75vw, 1.3rem);
  color: var(--color-accent-light);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.feature-section__body {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- Card Sections (dark background) ---- */
.card-section {
  padding: 6rem 0;
  background: var(--color-bg);
}

.card--float {
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--color-border-subtle);
}

@media (max-width: 768px) {
  .feature-section__content {
    max-width: 100%;
  }

  .feature-section__overlay {
    background: rgba(10,10,15,0.88) !important;
  }
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-subtle);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 28ch;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__social-link:hover {
  background: var(--color-accent-dim);
  border-color: var(--color-border);
  color: var(--color-accent-light);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--color-text);
}

.footer__bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__tagline {
    max-width: 100%;
  }
}

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

  .footer__brand {
    grid-column: auto;
  }
}

/* ==========================================================================
   Desktop & Laptop Responsive Styles
   ========================================================================== */

/* Laptop (1024px) — tighten spacing */
@media (min-width: 1024px) {
  .card-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Large laptop / monitor (1280px) — loosen spacing, scale typography */
@media (min-width: 1280px) {
  :root {
    --nav-height: 80px;
  }

  .hero__headline {
    font-size: clamp(5rem, 8vw, 8rem);
  }

  .hero__desc {
    font-size: 1.9rem;
  }

  .section {
    padding: 6rem 0;
  }

  .card-grid--6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .footer {
    padding: 5rem 0 2.5rem;
  }
}

/* Wide desktop (1440px) — max out content width, boost font scale */
@media (min-width: 1440px) {
  :root {
    --container-max: calc(1200px + 1in + 80px);
  }

  .hero__headline {
    font-size: clamp(6rem, 8vw, 9rem);
  }

  .card-grid--6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .section__title {
    font-size: clamp(2rem, 3vw, 3rem);
  }
}

/* Ultra-wide (1920px+) — cap content, prevent over-stretching */
@media (min-width: 1920px) {
  :root {
    --container-max: 1600px;
  }

  .hero__headline {
    font-size: 9rem;
  }

  .hero__desc {
    font-size: 1.25rem;
  }

  .card-grid--6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .nav__logo {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */

/* Add safe horizontal padding back for small screens */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .section__desc {
    font-size: 1rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer__grid {
    padding: 0 1rem;
  }

  .footer__bottom {
    padding: 1.5rem 1rem 0;
  }

}

/* Nav mobile */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }

  .nav__logo {
    font-size: 1.25rem;
  }

  .nav__logo-icon {
    font-size: 1rem;
  }

  .nav__dropdown-toggle {
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
  }

  .btn--sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .nav__actions {
    gap: 0.4rem;
  }
}

/* Dropdown on touch: open on focus-within */
@media (hover: none) {
  .nav__dropdown-menu {
    top: calc(100% + 0.25rem);
  }

  .nav__dropdown:focus-within .nav__dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__dropdown-toggle {
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .hero__cta .btn--lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* Prevent text from touching edges in cards */
@media (max-width: 560px) {
  .card {
    padding: 1.25rem;
  }

  .section-divider {
    margin: 0 1rem;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

