:root {
  --bg-black: #000000;
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --bg-card: #141414;
  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);
  --success: #22c55e;
  --danger: #ef4444;
  --transition: all 0.3s ease;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max: 1200px;
  --safe-top: 0px;
  --safe-bottom: 0px;
  --nav-h: 88px;
}

@supports (padding: max(0px)) {
  :root {
    --safe-top: constant(safe-area-inset-top);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: constant(safe-area-inset-bottom);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  width: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  width: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: var(--bg-black);
  color: var(--text-white);
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

img {
  -ms-interpolation-mode: bicubic;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 2px;
  background: var(--text-white);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center h2::after {
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 28px 0;
  z-index: 999;
  -webkit-transition: background-color 0.3s ease, border-color 0.3s ease;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background: transparent;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
}

.navbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 120px;
  background: #000;
  pointer-events: none;
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--border-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.logo:hover .logo-img {
  opacity: 0.8;
}

.main-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-right: 28px;
}

.nav-link {
  color: var(--text-gray);
  font-weight: 500;
  padding: 0 16px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 16px;
  width: 0;
  height: 1px;
  background: var(--text-white);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: calc(100% - 32px);
}

.nav-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.nav-actions > * + * {
  margin-left: 12px;
}

@supports (gap: 12px) {
  .nav-actions > * + * {
    margin-left: 0;
  }
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-white);
  -webkit-transition: -webkit-transform 0.28s ease, opacity 0.28s ease;
  transition: transform 0.28s ease, opacity 0.28s ease;
  -webkit-transform-origin: center;
  transform-origin: center;
}

.menu-toggle.is-open {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle.is-open span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.28s ease;
  transition: opacity 0.28s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-white);
  color: var(--bg-black);
}

.btn-primary:hover {
  background: #d8d8d8;
}

.btn-outline {
  border: 1px solid var(--border-medium);
  color: var(--text-white);
}

.btn-outline:hover {
  border-color: var(--text-white);
}

.btn-transparent {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-white);
}

.btn-transparent:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: -webkit-radial-gradient(78% 48%, circle, rgba(191, 255, 0, 0.08) 0%, transparent 42%);
  background: radial-gradient(circle at 78% 48%, rgba(191, 255, 0, 0.08) 0%, transparent 42%);
  pointer-events: none;
}

.hero-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 42%;
  flex: 0 1 42%;
  min-width: 0;
  width: 42%;
}

.hero-visual {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 58%;
  flex: 1 1 58%;
  min-width: 0;
  width: 58%;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-text > p {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.hero-buttons > * {
  margin: 0 16px 16px 0;
}

@supports (gap: 16px) {
  .hero-buttons > * {
    margin: 0;
  }
}

.chart-container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center right;
  object-position: center right;
  border-radius: 16px;
  background: transparent;
}

@supports (aspect-ratio: 5 / 3) {
  .hero-image {
    aspect-ratio: 5 / 3;
  }
}

.markets,
.features,
.news,
.faq {
  padding: 110px 0;
  background: var(--bg-dark);
}

.products,
.community,
.signup {
  padding: 110px 0;
  background: var(--bg-black);
}

.products-grid,
.news-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.news-grid {
  -ms-grid-columns: 1fr 24px 1fr 24px 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.news-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
}

.product-card:hover,
.news-card:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
  -webkit-transition: border-color 0.3s ease, background-color 0.3s ease, -webkit-transform 0.3s ease;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.product-card h3,
.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-card p,
.news-card p,
.products-subtitle,
.features-subtitle,
.community-subtitle,
.product-info p,
.feature-info p,
.community-info p {
  color: var(--text-gray);
}

.products-content,
.features-content,
.community-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 64px;
}

.products-text,
.features-text,
.community-text {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  min-width: 0;
}

.products-visual,
.features-visual,
.community-visual {
  -webkit-box-flex: 1;
  -ms-flex: 1.3 1 0%;
  flex: 1.3 1 0%;
  min-width: 0;
}

.products-text h2,
.features-text h2,
.community-text h2,
.signup-text h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.products-subtitle,
.features-subtitle,
.community-subtitle {
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.products-list,
.features-list,
.community-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.product-info h3,
.feature-info h3,
.community-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.products-image-container,
.features-image-container,
.community-image-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-image,
.features-image,
.community-image {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: transparent;
}

.news-card {
  background: var(--bg-black);
}

.news-link {
  display: inline-flex;
  color: var(--text-white);
  font-weight: 500;
}

.news-card:hover .news-link {
  letter-spacing: 0.02em;
}

.signup-content {
  display: flex;
  justify-content: center;
}

.signup-text {
  max-width: 640px;
  text-align: center;
}

.signup-text p {
  color: var(--text-gray);
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.download-btn:hover {
  background: var(--text-white);
  color: var(--bg-black);
  border-color: var(--text-white);
}

.icon-apple::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 72% 8%, 78% 34%, 100% 42%, 88% 100%, 55% 88%, 45% 88%, 12% 100%, 0 42%, 22% 34%, 28% 8%);
}

.icon-android::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 40% 40% 20% 20%;
  box-shadow: -7px -6px 0 -5px currentColor, 7px -6px 0 -5px currentColor;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-gray);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-gray);
  padding: 0 22px 20px;
  border-top: 1px solid var(--border-light);
  margin: 0 22px;
  padding-top: 16px;
}

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-column h4,
.footer-social h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column span,
.footer-column a {
  color: var(--text-gray);
}

.footer-column a:hover {
  color: var(--text-white);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 220px;
}

.social-icons span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 0.85rem;
}


@media (hover: hover) and (pointer: fine) {
  .product-card:hover,
  .news-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
}

@media (hover: none) {
  .product-card:hover,
  .news-card:hover {
    -webkit-transform: none !important;
    transform: none !important;
    border-color: var(--border-light);
    background: transparent;
  }

  .news-card:hover {
    background: var(--bg-black);
  }

  .nav-link:hover::after {
    width: 0;
  }

  .download-btn:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-transparent:hover {
    background: transparent;
    color: inherit;
    border-color: inherit;
  }

  .btn-primary:hover {
    background: var(--text-white);
    color: var(--bg-black);
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }

  .section-header h2,
  .products-text h2,
  .features-text h2,
  .community-text h2,
  .signup-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 140px 0 72px;
  }

  .hero-content,
  .products-content,
  .community-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .features-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }

  .hero-text,
  .hero-visual {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .chart-container {
    max-width: 640px;
    margin: 0 auto;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .hero-image {
    -o-object-position: center;
    object-position: center;
  }

  .products-grid,
  .news-grid {
    -ms-grid-columns: 1fr 24px 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-content,
  .features-content,
  .community-content {
    gap: 40px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .main-nav {
    display: block;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-transition: max-height 0.32s ease, opacity 0.28s ease, -webkit-transform 0.28s ease;
    transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.28s ease;
    -webkit-box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    padding: 8px 20px 24px;
    padding-bottom: calc(24px + var(--safe-bottom));
  }

  .main-nav.active {
    max-height: min(70vh, 480px);
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus {
    color: var(--text-white);
    padding-left: 10px;
    outline: none;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .nav-actions > * + * {
    margin-left: 0;
  }

  .nav-actions .btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .mobile-nav-backdrop {
    display: block;
  }

  .navbar,
  .navbar.scrolled {
    padding: 12px 0;
    padding-top: calc(12px + var(--safe-top));
    background: #000;
    border-bottom: 1px solid var(--border-light);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-box-shadow: 0 1px 0 #000;
    box-shadow: 0 1px 0 #000;
  }

  .navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
    background: -webkit-linear-gradient(top, #000 0%, transparent 100%);
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    pointer-events: none;
  }

  .logo-img {
    height: 36px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + var(--safe-top) + 24px);
    padding-bottom: 64px;
    margin-top: 0;
    background-color: #000;
  }

  html,
  body {
    background-color: #000;
    overscroll-behavior-y: none;
  }

  .markets,
  .products,
  .features,
  .community,
  .news,
  .signup,
  .faq {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2,
  .products-text h2,
  .features-text h2,
  .community-text h2,
  .signup-text h2 {
    font-size: 1.85rem;
  }

  .products-grid,
  .news-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 64px 0 calc(32px + var(--safe-bottom));
  }

  .footer-top {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hero-buttons,
  .download-buttons {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons > *,
  .btn-large,
  .download-btn {
    width: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
  }

  .chart-container {
    max-width: 100%;
  }

  .hero-image {
    border-radius: 12px;
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  .hero-text > p {
    font-size: 1rem;
  }

  .product-card,
  .news-card {
    padding: 22px;
  }

  .footer-links {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .footer-links {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .nav-link {
    padding: 0 10px;
  }
}

@media print {
  .navbar,
  .menu-toggle,
  .main-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }

  .hero {
    padding-top: 24px;
  }

  body {
    background: #fff;
    color: #000;
  }
}
