:root {
  --bg-deep: #050d1d;
  --bg-navy: #08152e;
  --bg-surface: #0d1e40;
  --card-bg: rgba(14, 28, 59, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(18, 199, 179, 0.4);
  
  --cyan: #12c7b3;
  --cyan-glow: rgba(18, 199, 179, 0.25);
  --lime: #c7e01f;
  --lime-glow: rgba(199, 224, 31, 0.2);
  --coral: #ff6661;
  --gold: #ffba4a;
  
  --text-main: #f3f7fd;
  --text-muted: #8ba2c4;
  --text-dim: #5c7295;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(18, 199, 179, 0.08), transparent 50%),
              radial-gradient(circle at 100% 20%, rgba(199, 224, 31, 0.04), transparent 40%),
              var(--bg-deep);
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

a:hover {
  color: #3fe2ce;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 13, 29, 0.82);
  border-bottom: 1px solid var(--card-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(18, 199, 179, 0.15);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(18, 199, 179, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
}

.nav-links a:hover {
  color: #fff;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(199, 224, 31, 0.12);
  border: 1px solid rgba(199, 224, 31, 0.25);
  border-radius: 30px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.08;
  margin-bottom: 20px;
  color: #fff;
}

.hero-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--bg-deep);
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  background: #25dfcb;
  transform: translateY(-2px);
  color: var(--bg-deep);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--card-border);
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-badges {
  display: flex;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-item svg {
  color: var(--cyan);
}

/* Phone Mockup Frame */
.device-mockup {
  background: var(--bg-navy);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(18, 199, 179, 0.1);
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.device-screen {
  background: #07132a;
  border-radius: 28px;
  overflow: hidden;
  padding: 18px 16px;
  color: #fff;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mockup-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.mockup-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.mockup-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(199, 224, 31, 0.15);
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Hero Spotlight Card inside Mockup */
.spotlight-card {
  background: rgba(14, 28, 59, 0.9);
  border: 1.5px solid rgba(18, 199, 179, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 4px;
}

.spotlight-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}

.spotlight-delta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime);
}

.mockup-chart-svg {
  width: 100%;
  height: 65px;
  margin: 8px 0;
}

/* Watchlist Stack inside Mockup */
.mockup-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mockup-card {
  background: #ffffff;
  color: #07132a;
  padding: 10px;
  border-radius: 12px;
}

.mockup-card-id {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0e2752;
}

.mockup-card-val {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 2px 0;
}

.mockup-card-delta {
  font-size: 0.65rem;
  font-weight: 700;
  color: #15803d;
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grid & Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 199, 179, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Home Screen Widgets */
.widget-section {
  background:
    radial-gradient(circle at 16% 40%, rgba(18, 199, 179, 0.13), transparent 34%),
    radial-gradient(circle at 78% 65%, rgba(199, 224, 31, 0.08), transparent 30%),
    rgba(8, 21, 46, 0.5);
}

.widget-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.86fr);
  gap: 52px;
  align-items: center;
}

.widget-demo-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
  align-items: stretch;
}

.widget-demo {
  min-width: 0;
  min-height: 224px;
  padding: 18px;
  border: 1px solid rgba(113, 157, 220, 0.25);
  border-radius: 27px;
  background:
    radial-gradient(circle at 83% 10%, rgba(35, 218, 196, 0.16), transparent 32%),
    linear-gradient(145deg, #142848 0%, #0b1932 58%, #08142a 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42), 0 0 30px rgba(18, 199, 179, 0.08);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.widget-demo-header,
.widget-demo-footer,
.widget-demo-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.widget-demo-header {
  color: #97b3da;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.widget-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.widget-demo-series {
  margin-top: 25px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.widget-demo-value-number {
  margin-top: 2px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.45rem, 5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.widget-demo-value-number span {
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.widget-demo p {
  margin-top: 5px;
  color: #aec2e1;
  font-size: 0.76rem;
  line-height: 1.3;
}

.widget-demo-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(151, 179, 218, 0.16);
  color: #8da5c9;
  font-size: 0.66rem;
  font-weight: 600;
}

.widget-demo-footer span:last-child {
  color: var(--cyan);
}

.widget-demo-chart-title {
  align-items: flex-end;
}

.widget-demo-chart .widget-demo-series {
  margin-top: 20px;
}

.widget-demo-chart-title p {
  margin-top: 2px;
}

.widget-demo-chart-title strong {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.widget-sparkline {
  width: 100%;
  height: 102px;
  margin: 2px 0 3px;
  overflow: visible;
}

.widget-copy h3 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  line-height: 1.14;
  margin-bottom: 14px;
}

.widget-copy > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.widget-checklist {
  display: grid;
  gap: 13px;
  margin: 23px 0 22px;
  list-style: none;
}

.widget-checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.widget-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 800;
}

.widget-checklist strong {
  color: #e9f2ff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.text-link span {
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Showcase Gallery */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.showcase-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.showcase-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.showcase-tab.active {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.showcase-display {
  position: relative;
  min-height: 480px;
}

.showcase-item {
  display: none;
  animation: fadeIn 0.35s ease;
}

.showcase-item.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.showcase-card.ipad-layout {
  grid-template-columns: 1fr;
  text-align: center;
}

.showcase-img-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(18, 199, 179, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #000;
  display: flex;
}

.showcase-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-card.ipad-layout .showcase-img-wrap {
  max-width: 820px;
  margin: 0 auto 20px;
  border-radius: 18px;
}

.showcase-caption h4 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}

.showcase-caption p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* In-guide screenshots */
.guide-screenshot-preview {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  max-width: 320px;
}

.guide-screenshot-preview.ipad-preview {
  max-width: 100%;
}

.guide-screenshot-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* User Guide Steps */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.guide-menu {
  list-style: none;
  border-left: 2px solid var(--card-border);
}

.guide-menu li a {
  display: block;
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.guide-menu li a:hover,
.guide-menu li a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.guide-step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}

.guide-step-card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.guide-step-card p,
.guide-step-card li {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.guide-step-card ul {
  padding-left: 20px;
  margin: 12px 0 16px;
}

/* Code Snippet Box */
.code-block {
  background: #020712;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #63d9cb;
  overflow-x: auto;
  margin: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Callout Box */
.callout {
  border-left: 4px solid var(--cyan);
  background: rgba(18, 199, 179, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 20px 0;
}

.callout.warning {
  border-left-color: var(--coral);
  background: rgba(255, 102, 97, 0.08);
}

.callout h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #fff;
}

.callout p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Policy & Legal Box */
.legal-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
}

.legal-box h3 {
  font-size: 1.35rem;
  margin: 24px 0 10px;
  color: #fff;
}

.legal-box h3:first-of-type {
  margin-top: 0;
}

.legal-box p, .legal-box li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-box ul {
  padding-left: 20px;
  margin: 10px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  background: rgba(3, 8, 18, 0.9);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 13, 29, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  .nav-menu.open {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    width: 100%;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 14px;
  }

  .nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .nav-links a:hover {
    color: var(--cyan);
    padding-left: 8px;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .nav-action .github-btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.95rem;
  }

  /* Hero adjustments */
  .hero {
    padding: 50px 0 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 7.5vw, 3rem);
    line-height: 1.12;
  }

  .hero-desc {
    margin: 0 auto 28px;
    font-size: 1.05rem;
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .device-mockup {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  /* Layout and cards */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }

  .widget-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .widget-demo-grid {
    width: min(100%, 600px);
    margin: 0 auto;
  }

  /* Showcase mobile */
  .showcase-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-tab {
    flex-shrink: 0;
  }

  .showcase-card {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    text-align: center;
    gap: 24px;
  }

  .showcase-img-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .showcase-card.ipad-layout .showcase-img-wrap {
    max-width: 100%;
  }

  .guide-screenshot-preview {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    display: none;
  }

  .guide-step-card {
    padding: 24px 18px;
  }

  .code-block {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .code-block code {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .copy-btn {
    align-self: flex-end;
    padding: 6px 14px;
  }

  .legal-box {
    padding: 26px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-wrapper {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
  }

  .nav-brand {
    font-size: 1.12rem;
    gap: 8px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-badge {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 28px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .device-mockup {
    padding: 10px;
    border-radius: 28px;
  }

  .device-screen {
    padding: 14px 10px;
    border-radius: 20px;
  }

  .mockup-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spotlight-value {
    font-size: 1.5rem;
  }

  .widget-demo-grid {
    grid-template-columns: 1fr;
  }

  .widget-demo {
    min-height: 205px;
  }

  .widget-demo-chart {
    min-height: 220px;
  }

  .widget-copy h3 {
    font-size: 1.65rem;
  }

  .guide-step-card {
    padding: 20px 14px;
  }

  .legal-box {
    padding: 20px 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
