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

:root {
  --bg-primary: #06040c;
  --bg-secondary: #0c0914;
  --bg-card: rgba(20, 16, 36, 0.6);
  --bg-card-hover: rgba(28, 22, 48, 0.7);
  --text-primary: #f0ecf8;
  --text-secondary: #a9a0c0;
  --text-muted: #665e7e;
  --accent: #a87de8;
  --accent-secondary: #7c5cc7;
  --accent-glow: rgba(168, 125, 232, 0.15);
  --accent-light: #c9a8f7;
  --border: rgba(168, 125, 232, 0.07);
  --border-light: rgba(168, 125, 232, 0.15);
  --gradient-accent: linear-gradient(135deg, #7c5cc7 0%, #a87de8 50%, #c9a8f7 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(124, 92, 199, 0.2) 0%, rgba(168, 125, 232, 0.05) 100%);
  --shadow-glow: 0 0 60px rgba(168, 125, 232, 0.08);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(168, 125, 232, 0.06);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-heading: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--accent-light);
}

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

/* Layout */

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

section {
  padding: 56px 0;
  position: relative;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(6, 4, 12, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */

.hero {
  padding: 160px 0 128px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1600px;
  height: 800px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(168, 125, 232, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(124, 92, 199, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 30%, rgba(201, 168, 247, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 125, 232, 0.06) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(168, 125, 232, 0.08);
  border: 1px solid rgba(168, 125, 232, 0.15);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.125rem, 7vw, 4.875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  position: relative;
}

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

.hero-tagline {
  font-size: clamp(1.175rem, 2.2vw, 1.325rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.hero-cta img {
  display: block;
}

.hero-mockup {
  margin: 72px auto 0;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(168, 125, 232, 0.12);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(168, 125, 232, 0.08),
    0 0 120px rgba(168, 125, 232, 0.06);
}

.hero-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section headings */

.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.125rem, 4.5vw, 2.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.175rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Divider line between sections */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 125, 232, 0.12) 50%, transparent 100%);
  border: none;
  margin: 0;
}

/* Features */

.features {
  background: var(--bg-secondary);
}

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

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, background 0.3s, transform 0.25s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(168, 125, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}

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

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.175rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* How It Works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 125, 232, 0.15), rgba(168, 125, 232, 0.15), transparent);
}

.step {
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid rgba(168, 125, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
  color: var(--accent-light);
  position: relative;
  padding-bottom: 8px;
  box-shadow: 0 0 32px rgba(168, 125, 232, 0.08);
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Screenshots */

.screenshots {
  background: var(--bg-secondary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.screenshot {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

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


.screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(168, 125, 232, 0.05);
}

/* Footer */

.footer {
  padding: 56px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 300px;
  margin-top: 10px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-legal {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-legal p + p {
  margin-top: 4px;
}

/* Responsive */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 44px 0;
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .steps::before {
    display: none;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }

  .hero {
    padding: 128px 0 88px;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .screenshot {
    border-radius: 16px;
  }

  .hero-mockup {
    max-width: 260px;
    border-radius: 32px;
  }
}

/* Blog */

.blog-list {
  padding: 140px 0 96px;
}

.blog-list h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.blog-list .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  line-height: 1.6;
}

.blog-list .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: block;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, background 0.3s, transform 0.25s, box-shadow 0.3s;
  color: inherit;
}

.post-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  color: inherit;
}

.post-card time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.25;
}

.post-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Blog Post */

.blog-post {
  padding: 140px 0 96px;
}

.blog-post .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.blog-post header {
  margin-bottom: 48px;
}

.blog-post header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
}

.blog-post header time {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-post .post-content h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 16px;
}

.blog-post .post-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.blog-post .post-content p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.blog-post .post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 24px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-post .post-content li {
  margin-bottom: 6px;
}

.blog-post .post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
}

.blog-post .post-content blockquote p {
  color: var(--text-secondary);
  font-style: italic;
}

.blog-post .post-content img {
  border-radius: 12px;
  margin: 28px auto;
  display: block;
  max-width: 300px;
}

.blog-post .post-content code {
  font-size: 0.9em;
  background: rgba(168, 125, 232, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-light);
}

.blog-post .post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-post .post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
