@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #f0fdf4;
  --primary-border: #bbf7d0;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-light: #fff7ed;
  --accent-border: #fed7aa;
  
  --bg-page: #f8faf8;
  --bg-card: #ffffff;
  --bg-subtle: #f0f4f1;
  --bg-dark: #0f172a;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  
  --depth-sm: 0 2px 8px 0 rgba(15, 23, 42, 0.08);
  --depth-md: 0 4px 12px 0 rgba(15, 23, 42, 0.12);
  --depth-lg: 0 12px 24px 0 rgba(15, 23, 42, 0.15);
  --depth-inset: inset 0 2px 4px 0 rgba(15, 23, 42, 0.05);

  --surface-shadow: 0 3px 0 #e1e9e4, 0 12px 28px -16px rgba(15, 23, 42, 0.25);
  --surface-hover-shadow: 0 5px 0 #d6e6dc, 0 22px 36px -18px rgba(15, 23, 42, 0.28);

  --container-max: 1160px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Helpers */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
  line-height: 1.4;
  transform: translateY(0);
  transform-style: preserve-3d;
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-light);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.mobile-menu-drawer.is-open {
  display: block;
}

.mobile-menu-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-drawer .nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-drawer .mobile-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 3rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.hero-visual {
  width: 100%;
  max-width: 720px;
}

.visual-frame {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.visual-frame img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 600px;
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.875rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-val {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.hero-stats .stat-item:nth-child(2) .stat-val {
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background-color: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.features-grid .feature-card:nth-child(2) .feature-icon-wrapper,
.features-grid .feature-card:nth-child(4) .feature-icon-wrapper {
  background-color: var(--accent-light);
  color: var(--accent);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* App Preview Section */
.preview-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.preview-display {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.preview-display img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
}

.preview-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.preview-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.preview-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.preview-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download Section */
.download-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
}

.download-main-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 2.5rem;
}

.version-pill {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.download-hint {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* Runtime Sub-section */
.runtime-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.runtime-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.runtime-notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.runtime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.runtime-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--bg-page);
}

.runtime-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.runtime-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* DNS Guide Section */
.dns-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.dns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.dns-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.dns-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dns-card-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.dns-grid .dns-card:nth-child(2) .dns-card-badge {
  background-color: var(--accent-light);
  color: var(--accent);
}

.dns-card-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.dns-card-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--bg-page);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-active {
  border-color: var(--primary-border);
}

.faq-header {
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform var(--transition);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: #fafbfc;
}

.faq-content {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.875rem;
}

/* Final CTA */
.final-cta-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.final-cta-box {
  max-width: 680px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.final-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-title {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  line-height: 1.8;
  color: #94a3b8;
}

.footer-section-title {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.footer-contact-item a:hover {
  color: var(--text-white);
}

.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.messenger-link:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Table Styles */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dns-table thead {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.dns-table th {
  text-align: right;
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.dns-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: middle;
}

.dns-table tbody tr:last-child td {
  border-bottom: none;
}

.dns-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

.dns-table td:first-child {
  font-weight: 500;
  color: var(--text-main);
}

.dns-table th:last-child,
.dns-table td:last-child {
  max-width: 280px;
}

.table-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: right;
}

/* Article Content Styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  padding-right: 0.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--primary-hover);
}

.recommendation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommendation-list li {
  padding: 0.75rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* Solution Section */
.solution-content {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.solution-text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.solution-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
}

.solution-text ul {
  margin: 1rem 0 1rem 1.5rem;
  padding-right: 0.5rem;
}

.solution-text li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.solution-cta {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
}

.solution-cta .download-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  color: var(--text-white);
  border-radius: var(--radius-md);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid var(--primary-hover);
  outline-offset: 4px;
}

main {
  flex: 1;
  min-width: 0;
}

main:focus {
  outline: none;
}

section[id],
main[id] {
  scroll-margin-top: 6rem;
}

[hidden] {
  display: none !important;
}

.hero-section {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 15% 20%, #dcfce7 0, transparent 52%), radial-gradient(ellipse at 90% 85%, #fff1e3 0, transparent 45%), #fcfefc;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.hero-title {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-content,
.hero-visual,
.preview-display,
.solution-content > *,
.footer-grid > * {
  min-width: 0;
}

.hero-badge,
.section-tag,
.version-pill {
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(15, 23, 42, 0.06);
}

.hero-badge,
.version-pill {
  color: var(--accent-hover);
}

.section-tag,
.hero-subtitle,
.stat-val {
  color: var(--primary-hover);
}

.site-header {
  box-shadow: 0 5px 24px -18px rgba(15, 23, 42, 0.35);
}

.nav-link[aria-current='page'] {
  color: var(--primary-hover);
  font-weight: 700;
}

.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
}

.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.feature-card,
.dns-card,
.preview-item,
.runtime-card,
.stat-item,
.runtime-box,
.download-main-card,
.solution-cta,
.faq-item {
  background: linear-gradient(145deg, #fff, #f7fbf8);
  border-color: #dce8e0;
  box-shadow: var(--surface-shadow);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.feature-icon-wrapper,
.dns-card-badge {
  border: 1px solid rgba(21, 128, 61, 0.12);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), 0 4px 0 rgba(21, 128, 61, 0.12), 0 8px 14px -10px rgba(15, 23, 42, 0.4);
}

.visual-frame,
.preview-display {
  background: linear-gradient(145deg, #fff, #e5f0e9);
  border: 1px solid #cfdfd5;
  box-shadow: inset 0 2px 0 #fff, 0 6px 0 #cfdfd5, 0 24px 40px -22px rgba(15, 23, 42, 0.35);
  transition: transform 240ms ease;
}

.btn {
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #cbd9d0, 0 8px 14px -10px rgba(15, 23, 42, 0.4);
}

.btn-primary {
  background: linear-gradient(160deg, #15803d, #166534);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #14532d, 0 10px 18px -10px rgba(21, 128, 61, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #166534, #14532d);
}

.btn-outline {
  background: #f0fdf4;
  color: var(--primary-hover);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.15);
}

.download-main-card {
  border-top: 4px solid var(--primary);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.table-wrapper {
  background: var(--bg-card);
  box-shadow: var(--surface-shadow);
}

.dns-table thead {
  background: linear-gradient(120deg, #e7f5ec, #f1f5f9);
}

.final-cta-section {
  background: radial-gradient(ellipse at center, #dcfce7, #f8fcfa 70%);
}

.site-footer {
  background: linear-gradient(145deg, #142b24, #0f172a 65%);
  border-top: 4px solid #234536;
}

.footer-bottom {
  color: #94a3b8;
}

.messenger-link {
  border: 1px solid #334155;
  box-shadow: 0 3px 0 #080f1d;
}

.article-content a,
.solution-text a {
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .feature-card:hover,
  .dns-card:hover,
  .runtime-card:hover,
  .preview-item:hover {
    transform: perspective(1000px) translateY(-5px) rotateX(1deg);
    border-color: #a7cfb6;
    box-shadow: var(--surface-hover-shadow);
  }

  .feature-card:hover .feature-icon-wrapper {
    transform: translateY(-3px) rotate(-4deg);
  }

  [data-tilt] {
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }

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

  .btn:active {
    transform: translateY(3px);
  }
}

@media (min-width: 1024px) {
  .page-home .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }

  .page-home .hero-content {
    text-align: start;
  }

  .page-home .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px), (hover: none) {
  .feature-card:hover {
    transform: none;
    box-shadow: var(--surface-shadow);
  }

  .hero-stats {
    margin-inline: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-tilt],
  .feature-card:hover,
  .btn:active {
    transform: none;
  }
}

/* Responsive Table */
@media (max-width: 640px) {
  .dns-table th,
  .dns-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .dns-table th:last-child,
  .dns-table td:last-child {
    max-width: none;
  }
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  
  .runtime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dns-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .preview-details {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .nav-actions {
    display: flex;
  }
  
  .mobile-menu-drawer {
    display: none !important;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

