/* ==========================================================================
   Sketchbook & Paint Pad Studio — Official Website Stylesheet
   Calm, Light Studio-Grade Design System (Tactile Paper Canvas & Deep Ink)
   ========================================================================== */

:root {
  /* Studio Paper Palette: Warm Natural Paper Canvas & Deep Ink */
  --bg-body: #f8f6fc;
  --bg-studio: #f8f6fc;
  --bg-deep: #f2eef8;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #efeaf6;
  
  --border: rgba(29, 23, 48, 0.08);
  --border-subtle: rgba(29, 23, 48, 0.05);
  --border-hover: rgba(104, 63, 210, 0.28);
  
  /* Refined Artist Accents */
  --accent-iris: #683fd2;
  --accent-amber: #e86328;
  --accent-sage: #0d9488;
  --accent-cyan: #0284c7;
  
  /* Typographic Hierarchy (Dark Ink on Paper) */
  --text-pure: #151121;
  --text-muted: #565066;
  --text-dim: #847d96;
  --text-inverse: #ffffff;

  /* Typography System */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 4px 16px rgba(29, 23, 48, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(29, 23, 48, 0.05), 0 1px 3px rgba(29, 23, 48, 0.03);
  --shadow-card-hover: 0 16px 36px -6px rgba(29, 23, 48, 0.1), 0 4px 12px rgba(29, 23, 48, 0.04);
  --shadow-studio: 0 24px 60px -12px rgba(29, 23, 48, 0.12), 0 4px 16px rgba(29, 23, 48, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-studio);
  color: var(--text-muted);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a:hover {
  color: #4f28b5;
}

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

:focus-visible {
  outline: 2px solid var(--accent-iris);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar (Sticky with Glassmorphic Scroll Elevation)
   ========================================================================== */

@keyframes headerWrapEntrance {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header.site {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 246, 252, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.site.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(29, 23, 48, 0.09);
  box-shadow: 0 12px 32px -10px rgba(29, 23, 48, 0.08), 0 2px 6px rgba(29, 23, 48, 0.02);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: headerWrapEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

header.site.scrolled .wrap {
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-pure);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  min-width: 0;
  flex: 1 1 auto;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
}

.brand:hover .logo {
  transform: scale(1.08) rotate(-3.5deg);
  box-shadow: 0 6px 16px -2px rgba(104, 63, 210, 0.28);
}

.brand:active .logo {
  transform: scale(0.96);
}

.brand span {
  color: var(--text-pure);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-iris);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-pure);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Downloads Dropdown */
.dl {
  position: relative;
}

.dl-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-pure);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-btn:hover {
  background: #ffffff;
  border-color: var(--accent-iris);
  box-shadow: 0 6px 18px rgba(104, 63, 210, 0.16);
  transform: translateY(-1px);
}

.dl-btn:active {
  transform: translateY(0) scale(0.98);
}

.dl-btn svg {
  transition: transform 0.2s ease;
}

.dl-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@keyframes dropdownMenuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dl-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(29, 23, 48, 0.18);
  backdrop-filter: blur(24px);
  z-index: 110;
  transform-origin: top right;
}

.dl-menu:not([hidden]) {
  animation: dropdownMenuReveal 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dl-menu[hidden] {
  display: none;
}

.dl-menu > * {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s ease;
}

.dl-menu a:hover {
  background: var(--bg-subtle);
  transform: translateX(3px);
}

.dl-menu a {
  transition: background 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-menu .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-subtle);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dl-menu a:hover .ic {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(29, 23, 48, 0.08);
}

.dl-menu .ic svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dl-menu .t {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dl-menu b {
  color: var(--text-pure);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
}

.dl-menu .t span {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.2;
}

.dl-menu .off {
  opacity: 0.55;
  cursor: default;
}

.dl-badge-now {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-sage);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: auto;
  animation: liveBadgeGlow 2.5s ease-in-out infinite;
}

@keyframes liveBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

.dl-badge-soon {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px;
  color: var(--text-pure);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toggle:hover {
  background: var(--bg-subtle);
  border-color: rgba(29, 23, 48, 0.16);
  transform: scale(1.04);
}

.mobile-toggle:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

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

.hero {
  position: relative;
  padding: 88px 0 84px;
  text-align: center;
  background: 
    radial-gradient(60% 45% at 50% 0%, rgba(205, 187, 255, 0.35), transparent 70%),
    var(--bg-studio);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-status .status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-sage);
  position: relative;
  flex-shrink: 0;
}

.hero-status .status-indicator::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent-sage);
  opacity: 0.75;
  animation: beaconPulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  60% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-pure);
  max-width: 900px;
  margin: 0 auto 20px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* Button Component */
.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--text-pure);
  color: #ffffff;
}

.btn.primary:hover {
  background: #251f38;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 17, 33, 0.25);
}

.btn.secondary {
  background: #ffffff;
  color: var(--text-pure);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.btn.secondary:hover {
  background: #ffffff;
  border-color: var(--accent-iris);
  color: var(--accent-iris);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(104, 63, 210, 0.12);
}

.btn.soon {
  background: rgba(29, 23, 48, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: default;
}

.btn .ic {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-item svg {
  color: var(--accent-iris);
}

/* ==========================================================================
   Modern Tablet Hardware Mockup (Cleanly crops Windows OS chrome)
   ========================================================================== */

.hero-mockup-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 52px auto 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.tablet-mockup {
  position: relative;
  background: #1e1d24;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  padding: 12px 12px 14px;
  box-shadow: 0 28px 75px -12px rgba(29, 23, 48, 0.22), 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.tablet-mockup:hover {
  box-shadow: 0 38px 95px -12px rgba(29, 23, 48, 0.28), 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.tablet-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

/* Tablet Screen: Crops out the Windows OS titlebar */
.tablet-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f6fc;
}

.tablet-screen img {
  width: 100%;
  height: auto;
  display: block;
  /* Cleanly crops away the 31px Windows title bar without cutting into app UI */
  margin-top: -2.45%;
  margin-bottom: 0;
}

/* ==========================================================================
   Section Headers & Bento Grid Features Section
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-iris);
  background: rgba(104, 63, 210, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.features {
  padding: 100px 0 110px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(104, 63, 210, 0.22);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.col-span-3 {
  grid-column: span 3;
}

/* Card Icons: Clean, elegant */
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(104, 63, 210, 0.08);
  border: 1px solid rgba(104, 63, 210, 0.14);
  color: var(--accent-iris);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.bento-card:hover .bento-icon {
  transform: scale(1.08) rotate(-2deg);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(104, 63, 210, 0.16);
}

.bento-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  width: fit-content;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Card Visual Previews */
.bento-visual {
  margin-top: auto;
  padding-top: 8px;
}

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text-pure);
}

.layer-bar.active {
  border-color: rgba(104, 63, 210, 0.3);
  background: rgba(104, 63, 210, 0.08);
  color: var(--accent-iris);
  font-weight: 600;
}

.layer-tag {
  color: var(--text-muted);
  font-size: 0.78rem;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.palette-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.palette-chip {
  flex: 1;
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.paper-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.paper-chip-item {
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Showcase Section (Deep Dive & iPad Stylus Feature)
   ========================================================================== */

.showcase {
  padding: 110px 0 120px;
  background: var(--bg-studio);
}

/* Stylus Banner */
.stylus-feature-banner {
  margin-bottom: 96px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-studio);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
}

.stylus-content {
  padding: 56px 48px;
}

.stylus-content .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-iris);
  background: rgba(104, 63, 210, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.stylus-content h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.stylus-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

.stylus-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stylus-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-pure);
}

.stylus-features-list li svg {
  color: var(--accent-iris);
  flex-shrink: 0;
}

.stylus-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 32px 0;
}

.stylus-visual img {
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px -10px rgba(29, 23, 48, 0.16);
}

/* Alternating Showcase Rows */
.showcase-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 52px;
  align-items: center;
}

.showcase-row:nth-of-type(even) {
  grid-template-columns: 1fr 1.35fr;
}

.showcase-row:nth-of-type(even) .tablet-mockup {
  order: 2;
}

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.showcase-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.showcase-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.showcase-bullets li svg {
  color: var(--accent-iris);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
  padding: 96px 0 110px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
}

details.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

summary.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-pure);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question .faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

details[open] summary.faq-question .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-iris);
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Closing CTA Section (Deep Grounding Studio Band)
   ========================================================================== */

.cta {
  background: #151121;
  color: #ffffff;
  padding: 100px 0 110px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 44px;
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.platforms > * {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: left;
  line-height: 1.4;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platforms a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.platforms a:active {
  transform: translateY(0) scale(0.99);
}

.platforms b {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
}

.platforms .t {
  display: flex;
  flex-direction: column;
}

.platforms .t span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.platforms .off {
  opacity: 0.45;
}

.platforms .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.platforms .ic svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ==========================================================================
   Documentation Pages (Privacy, Terms, Support)
   ========================================================================== */

.doc {
  padding: 72px 0 96px;
  min-height: calc(100vh - 280px);
  background: var(--bg-studio);
}

.doc .wrap {
  max-width: 820px;
}

.doc h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-pure);
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 40px;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-pure);
  margin: 44px 0 14px;
  letter-spacing: -0.015em;
}

.doc p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.doc ul {
  padding-left: 24px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.doc li {
  margin: 8px 0;
  line-height: 1.65;
}

.doc strong {
  color: var(--text-pure);
}

.doc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site {
  background: #0f0c18;
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

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

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-brand .brand span {
  color: #ffffff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.col-span-3,
  .bento-card.col-span-2 {
    grid-column: span 2;
  }
  .stylus-feature-banner {
    grid-template-columns: 1fr;
  }
  .stylus-visual {
    padding: 0 32px 40px;
  }
}

@media (max-width: 880px) {
  .hero {
    padding: 64px 0 80px;
  }
  .showcase-row,
  .showcase-row:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase-row:nth-of-type(even) .tablet-mockup {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    padding: 8px;
    border-radius: 10px;
    margin-left: auto;
  }

  .brand {
    font-size: 0.94rem;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 50px);
    overflow: hidden;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #ffffff;
    border-bottom: 2px solid rgba(104, 63, 210, 0.15);
    box-shadow: 0 30px 60px -10px rgba(29, 23, 48, 0.25), 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  nav.main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--bg-subtle);
    color: var(--accent-iris);
  }

  .nav-actions {
    width: 100%;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .dl {
    width: 100%;
    position: relative;
  }

  .dl-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 0.94rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  /* Dropdown becomes a natural, clean static accordion inside the mobile drawer */
  .dl-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 6px;
    backdrop-filter: none;
  }

  .dl-menu > * {
    width: 100%;
    padding: 10px 12px;
  }

  .dl-menu a:hover {
    background: #ffffff;
  }

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

  .bento-card.col-span-2,
  .bento-card.col-span-3 {
    grid-column: span 1;
  }

  .bento-card {
    padding: 24px 20px;
  }

  .showcase-row {
    gap: 24px;
    margin-bottom: 56px;
  }

  .hero-mockup-wrapper {
    margin: 32px auto 0;
  }

  .tablet-mockup {
    border-radius: 18px;
    padding: 8px 8px 10px;
    box-shadow: 0 16px 40px rgba(29, 23, 48, 0.16);
  }

  .tablet-screen {
    border-radius: 12px;
  }

  .stylus-feature-banner {
    grid-template-columns: 1fr;
    border-radius: 20px;
    margin: 56px 0;
  }

  .stylus-copy {
    padding: 32px 20px 24px;
  }

  .stylus-visual {
    padding: 0 16px 28px;
  }

  .cta {
    padding: 56px 16px;
    border-radius: 20px;
  }

  .platforms {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .platforms > * {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
  }

  .doc {
    padding: 48px 0 64px;
  }

  .doc h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 44px 0 52px;
  }

  .hero-status {
    font-size: 0.78rem;
    padding: 5px 12px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.9rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .hero p.lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-stats {
    gap: 10px 16px;
  }

  .stat-item {
    font-size: 0.82rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  .faq-item {
    padding: 16px 16px;
    border-radius: 14px;
  }

  .faq-question {
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.86rem;
  }

  .btn-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

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

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

@media (max-width: 360px) {
  .brand {
    font-size: 0.80rem;
    gap: 6px;
  }

  .brand .logo {
    width: 28px;
    height: 28px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

