/* ==========================================================================
   CUTLIST — Global Stylesheet
   Design: "Premium Showcase" (Layout B)
   ========================================================================== */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0a0f;
  --bg-dark-card: #16161f;
  --bg-light: #ffffff;
  --bg-light-alt: #f8f7fc;
  --text-light: #ffffff;
  --text-light-secondary: rgba(255,255,255,0.6);
  --text-dark: #1a1a2e;
  --text-dark-secondary: #6b6b80;
  --accent: #7C6AFF;
  --accent-pink: #E040FB;
  --accent-gradient: linear-gradient(135deg, #7C6AFF, #E040FB);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  --max-w: 1080px;
  --radius: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-dark);
  color: var(--text-light);
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }


/* ==========================================================================
   NAV
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-light-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(124,106,255,0.3);
}

.btn-glow:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.btn-glow-sm { padding: 8px 20px; font-size: 13px; }
.btn-glow-lg { padding: 14px 32px; font-size: 16px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-outline-sm { padding: 8px 20px; font-size: 14px; }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--bg-dark);
  padding: 140px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124,106,255,0.15), transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 32px;
  position: relative;
  filter: drop-shadow(0 8px 32px rgba(124,106,255,0.3));
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 20px;
  color: var(--text-light-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-light-secondary);
}

.hero-screenshot {
  max-width: 880px;
  margin: 60px auto 0;
  position: relative;
}

.screenshot-frame {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  overflow: hidden;
  position: relative;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-frame-dark {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  color: var(--text-light-secondary);
}

.screenshot-frame-light {
  background: #fff;
  border: 1px solid #e0dfe8;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  color: var(--text-dark-secondary);
}

.placeholder-text {
  color: inherit;
  font-size: 14px;
  opacity: 0.5;
}

.window-dots {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 7px;
  z-index: 2;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}


/* ==========================================================================
   AWARDS BAR
   ========================================================================== */
.awards-bar {
  background: var(--bg-dark);
  padding: 40px 32px 60px;
  text-align: center;
}

.awards-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-light-secondary);
  font-size: 14px;
  font-weight: 500;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.award-icon { font-size: 24px; }


/* ==========================================================================
   SHOWCASE SECTIONS (alternating)
   ========================================================================== */
.showcase {
  padding: 100px 32px;
}

.showcase.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.showcase.light {
  background: var(--bg-light-alt);
  color: var(--text-dark);
}

.showcase-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-inner.reverse .showcase-text { order: 2; }
.showcase-inner.reverse .showcase-visual { order: 1; }

.showcase-label,
.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.showcase-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.showcase-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.showcase.dark .showcase-text p { color: var(--text-light-secondary); }
.showcase.light .showcase-text p { color: var(--text-dark-secondary); }

.showcase-visual .screenshot-frame {
  aspect-ratio: 4/3;
}


/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
.grid-section {
  background: var(--bg-dark);
  padding: 100px 32px;
  color: var(--text-light);
  text-align: center;
}

.grid-section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.feature-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-tile {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: border-color 0.3s;
}

.feature-tile:hover {
  border-color: rgba(124,106,255,0.3);
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-tile h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-tile p {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   COMPATIBILITY
   ========================================================================== */
.compat-section {
  background: var(--bg-light);
  padding: 80px 32px;
  text-align: center;
}

.compat-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.compat-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.compat-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.compat-pill {
  background: var(--bg-light-alt);
  border: 1px solid #e0dfe8;
  border-radius: var(--radius);
  padding: 18px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* ==========================================================================
   BLOG PREVIEW (homepage)
   ========================================================================== */
.blog-preview-section {
  background: var(--bg-dark);
  padding: 100px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.blog-preview-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.blog-preview-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 4px;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-preview-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: block;
  color: var(--text-light);
  transition: border-color 0.3s, transform 0.2s;
}

.blog-preview-card:hover {
  border-color: rgba(124,106,255,0.3);
  transform: translateY(-2px);
  color: var(--text-light);
}

.blog-card-date {
  font-size: 13px;
  color: var(--text-light-secondary);
  margin-bottom: 12px;
}

.blog-preview-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-preview-card p {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}


/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  background: var(--bg-dark);
  padding: 100px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(224,64,251,0.12), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-light-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light-secondary);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-light-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

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


/* ==========================================================================
   BLOG — LIST PAGE
   ========================================================================== */
.blog-hero {
  background: var(--bg-dark);
  padding: 130px 32px 60px;
  text-align: center;
}

.blog-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.blog-hero .subtitle {
  font-size: 18px;
  color: var(--text-light-secondary);
}

.blog-list-section {
  background: var(--bg-dark);
  padding: 40px 32px 100px;
}

.blog-list-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-list-card {
  display: block;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--text-light);
  transition: border-color 0.3s, transform 0.2s;
}

.blog-list-card:hover {
  border-color: rgba(124,106,255,0.3);
  transform: translateY(-2px);
  color: var(--text-light);
}

.blog-list-image {
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-content {
  padding: 28px 32px;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light-secondary);
  margin-bottom: 12px;
}

.blog-tag {
  background: rgba(124,106,255,0.15);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
}

.blog-list-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-list-card p {
  font-size: 15px;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  font-size: 14px;
}

.pagination-link {
  color: var(--accent);
  font-weight: 600;
}

.pagination-info {
  color: var(--text-light-secondary);
}


/* ==========================================================================
   BLOG — SINGLE POST
   ========================================================================== */
.blog-post {
  background: var(--bg-dark);
}

.blog-post-header {
  padding: 130px 32px 48px;
}

.blog-post-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light-secondary);
  margin-bottom: 16px;
}

.blog-post-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-post-description {
  font-size: 20px;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

.blog-post-image {
  max-width: 880px;
  margin: 0 auto 48px;
  padding: 0 32px;
}

.blog-post-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 60px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.blog-post-body h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.blog-post-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body a:hover {
  color: var(--accent-pink);
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 20px 24px;
}

.blog-post-body li {
  margin-bottom: 8px;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 24px 0;
  color: var(--text-light-secondary);
  font-style: italic;
}

.blog-post-body code {
  background: var(--bg-dark-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.blog-post-body pre {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}

.blog-post-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.blog-post-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 32px;
}

.blog-post-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.blog-post-nav {
  display: block;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: border-color 0.3s;
  flex: 1;
  color: var(--text-light);
}

.blog-post-nav:hover {
  border-color: rgba(124,106,255,0.3);
  color: var(--text-light);
}

.blog-post-nav-next { text-align: right; }

.blog-post-nav-label {
  display: block;
  font-size: 12px;
  color: var(--text-light-secondary);
  margin-bottom: 4px;
}

.blog-post-nav-title {
  font-size: 15px;
  font-weight: 600;
}


/* ==========================================================================
   GENERIC PAGE (privacy, terms, etc.)
   ========================================================================== */
.page-content {
  background: var(--bg-dark);
  padding: 130px 32px 80px;
}

.page-content-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.page-content-inner h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 32px;
}

.page-content-inner h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.page-content-inner p {
  margin-bottom: 16px;
}

.page-content-inner a {
  color: var(--accent);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 110px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .subtitle { font-size: 17px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px 32px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }

  .showcase { padding: 60px 20px; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; }
  .showcase-inner.reverse .showcase-text { order: 1; }
  .showcase-inner.reverse .showcase-visual { order: 2; }

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

  .blog-preview-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .blog-preview-grid { grid-template-columns: 1fr; }

  .awards-inner { gap: 20px; font-size: 13px; }
  .compat-grid { gap: 12px; }
  .compat-pill { padding: 14px 20px; font-size: 14px; }

  .grid-section { padding: 60px 20px; }
  .cta-section { padding: 60px 20px; }
  .cta-section h2 { font-size: 32px; }

  .blog-hero { padding: 110px 20px 40px; }
  .blog-hero h1 { font-size: 36px; }
  .blog-post-header { padding: 110px 20px 40px; }
  .blog-post-header h1 { font-size: 32px; }
  .blog-post-body { padding: 0 20px 60px; }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .blog-post-footer-inner {
    flex-direction: column;
  }
}
