Skip to content

Commit cfbafec

Browse files
committed
fix: resolve mobile horizontal scroll and nav overflow issues
1 parent 176196a commit cfbafec

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

index.html

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@
8383
--font-mono: 'JetBrains Mono', monospace;
8484
}
8585

86-
html { scroll-behavior: smooth; }
86+
html {
87+
scroll-behavior: smooth;
88+
overflow-x: hidden;
89+
}
8790

8891
body {
8992
background: var(--bg);
@@ -93,6 +96,7 @@
9396
line-height: 1.6;
9497
-webkit-font-smoothing: antialiased;
9598
overflow-x: hidden;
99+
min-width: 0;
96100
}
97101

98102
/* ── NOISE OVERLAY ── */
@@ -248,13 +252,15 @@
248252
.hero h1 {
249253
font-family: var(--font-display);
250254
font-weight: 800;
251-
font-size: clamp(52px, 9vw, 100px);
255+
font-size: clamp(36px, 9vw, 100px);
252256
line-height: 0.95;
253257
letter-spacing: -0.04em;
254258
color: var(--text);
255259
margin-bottom: 12px;
256260
opacity: 0;
257261
animation: fadeUp 0.7s ease 0.2s forwards;
262+
overflow-wrap: break-word;
263+
word-break: break-word;
258264
}
259265

260266
.hero h1 .accent { color: var(--accent); }
@@ -928,9 +934,35 @@
928934
.stats-grid { grid-template-columns: 1fr 1fr; }
929935
.features-grid { grid-template-columns: 1fr; }
930936
.links-grid { grid-template-columns: 1fr 1fr; }
931-
.nav-links { gap: 4px; }
932937
.footer-inner { flex-direction: column; gap: 16px; text-align: center; }
933938
.footer-links { flex-wrap: wrap; justify-content: center; }
939+
940+
/* Nav */
941+
.nav-link { display: none; }
942+
.version-badge { display: none; }
943+
.nav-inner { padding: 14px 16px; }
944+
945+
/* Hero actions stack */
946+
.hero-actions { flex-direction: column; align-items: center; }
947+
.btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
948+
949+
/* Delivery viz: hide node labels, keep dots + line + status */
950+
.viz-node { font-size: 0; gap: 0; }
951+
.viz-node-dot { width: 12px; height: 12px; }
952+
.viz-track { padding: 18px 16px; }
953+
.delivery-viz { margin-top: 40px; }
954+
955+
/* Code block */
956+
.code-body { font-size: 11px; padding: 16px 14px; }
957+
958+
/* Arch diagram */
959+
.arch-badge { font-size: 8px; padding: 3px 8px; }
960+
}
961+
962+
@media (max-width: 400px) {
963+
.logo-wordmark { font-size: 14px; }
964+
.nav-cta { font-size: 10px; padding: 6px 10px; }
965+
.stats-grid { grid-template-columns: 1fr; }
934966
}
935967
</style>
936968
</head>

0 commit comments

Comments
 (0)