/* =========================================================
   NOTION OS — Premium Landing Page
   Reset, tokens, components.
   ========================================================= */

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

:root {
  /* Colors */
  --bg:            #fdfdfb;
  --bg-soft:       #f5f4f0;
  --bg-dark:       #0a0a0a;
  --text:          #0a0a0a;
  --text-soft:     #525252;
  --text-muted:    #8a8a8a;
  --border:        #e8e7e3;
  --border-strong: #d4d3cf;
  --accent:        #0a0a0a;
  --accent-soft:   #1a1a1a;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 24px 64px rgba(10, 10, 10, 0.08), 0 4px 16px rgba(10, 10, 10, 0.04);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ===================================================== Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ===================================================== Typography helpers */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 820px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 620px;
  letter-spacing: -0.01em;
}

.section-header {
  margin-bottom: 64px;
  max-width: 820px;
}

/* ===================================================== Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 18px rgba(10,10,10,0.18);
}
.btn-primary:hover {
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 24px rgba(10,10,10,0.24);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--text);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--text-soft); }

/* ===================================================== Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 251, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(253, 253, 251, 0.92);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.logo-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  width: 12px; height: 12px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.6);
  transition: border-color 0.2s var(--ease);
}
.lang-toggle:hover { border-color: var(--border-strong); }
.lang-opt {
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.lang-opt.active { color: var(--text); }
.lang-sep { opacity: 0.3; }

@media (max-width: 640px) {
  .nav-link { display: none; }
  .nav-right { gap: 12px; }
}

/* ===================================================== Hero */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 140px 0 100px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.04), transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(245, 158, 11, 0.04), transparent 60%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero .eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #0a0a0a 0%, #2a2a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trust-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.trust-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}
@media (max-width: 540px) {
  .hero-trust { gap: 18px; padding: 16px 22px; }
  .trust-num { font-size: 18px; }
}

/* Mockup */
.hero-mockup {
  margin: 80px auto 0;
  max-width: 1040px;
  perspective: 1600px;
}

.mockup {
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(2deg);
  transform-origin: center top;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafaf8;
}
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e0dfd9;
}
.mockup-bar span:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.mockup-bar span:nth-child(2) { background: #febc2e; opacity: 0.6; }
.mockup-bar span:nth-child(3) { background: #28c840; opacity: 0.6; }

.mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
}

.mockup-side {
  background: #fafaf8;
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-side-title {
  width: 70%; height: 12px;
  background: #ddd9d0;
  border-radius: 4px;
  margin-bottom: 16px;
}
.mockup-side-item {
  height: 12px;
  background: #ebe9e3;
  border-radius: 4px;
  width: 85%;
}
.mockup-side-item.active {
  background: var(--accent);
  width: 75%;
}
.mockup-side-item.small { height: 10px; width: 60%; background: #efece6; }

.mockup-main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mockup-heading {
  width: 55%; height: 22px;
  background: linear-gradient(90deg, #1a1a1a, #4a4a4a);
  border-radius: 6px;
}
.mockup-sub {
  width: 40%; height: 10px;
  background: #d8d5cd;
  border-radius: 4px;
  margin-bottom: 12px;
}
.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.mockup-card {
  height: 70px;
  background: #fafaf8;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mockup-card div:first-child { width: 30%; height: 8px; background: #d8d5cd; border-radius: 3px; }
.mockup-card div:last-child { width: 60%; height: 14px; background: #1a1a1a; border-radius: 3px; }
.mockup-card:nth-child(2) div:last-child { background: #6366f1; }
.mockup-card:nth-child(3) div:last-child { background: #f59e0b; }

.mockup-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-row {
  height: 14px;
  background: #f0eee8;
  border-radius: 4px;
}
.mockup-row.short { width: 60%; }

@media (max-width: 720px) {
  .mockup-body { grid-template-columns: 1fr; min-height: auto; }
  .mockup-side { display: none; }
  .mockup-main { padding: 20px; }
}

/* ===================================================== Problema/Solução */
.problem-solution {
  padding: 120px 0;
  background: var(--bg-soft);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .ps-grid { grid-template-columns: 1fr; }
}

.ps-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.ps-after {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.ps-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0eee8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.ps-tag-dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.ps-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.ps-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text-soft);
  position: relative;
  padding-left: 28px;
}
.ps-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #f0eee8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}
.ps-list li:first-child { border-top: 0; }

.ps-after .ps-list li {
  border-top-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.ps-list-check li::before {
  content: '✓';
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ===================================================== Modules */
.whats-inside {
  padding: 120px 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 880px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
}

.module {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.module:hover {
  background: var(--bg-soft);
}

.module-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.module-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.module-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ===================================================== Pricing */
.pricing {
  padding: 120px 0;
  background: var(--bg-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-head { margin-bottom: 28px; }

.price-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.price-tagline {
  font-size: 14.5px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
}
.price-card-featured .price-tagline { color: rgba(255,255,255,0.7); }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  top: -10px;
}
.price-card-featured .price-currency { color: rgba(255,255,255,0.5); }

.price-value {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-once {
  margin-left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}
.price-card-featured .price-once { color: rgba(255,255,255,0.5); }

.price-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.price-features li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-soft);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 26px;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 7l2 2 4-4' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.price-features li strong { color: var(--text); font-weight: 600; }
.price-card-featured .price-features li {
  border-top-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.price-card-featured .price-features li::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 7l2 2 4-4' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}
.price-card-featured .price-features li strong { color: #fff; }

.pricing-fineprint {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* ===================================================== Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================== Animations (scroll-in) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids */
.modules-grid [data-animate].is-visible:nth-child(1) { transition-delay: 0ms; }
.modules-grid [data-animate].is-visible:nth-child(2) { transition-delay: 60ms; }
.modules-grid [data-animate].is-visible:nth-child(3) { transition-delay: 120ms; }
.modules-grid [data-animate].is-visible:nth-child(4) { transition-delay: 180ms; }
.modules-grid [data-animate].is-visible:nth-child(5) { transition-delay: 240ms; }
.modules-grid [data-animate].is-visible:nth-child(6) { transition-delay: 300ms; }
.modules-grid [data-animate].is-visible:nth-child(7) { transition-delay: 360ms; }
.modules-grid [data-animate].is-visible:nth-child(8) { transition-delay: 420ms; }
.modules-grid [data-animate].is-visible:nth-child(9) { transition-delay: 480ms; }

.hero [data-animate]:nth-of-type(1) { transition-delay: 0ms; }
.hero [data-animate]:nth-of-type(2) { transition-delay: 80ms; }
.hero [data-animate]:nth-of-type(3) { transition-delay: 160ms; }
.hero [data-animate]:nth-of-type(4) { transition-delay: 240ms; }
.hero [data-animate]:nth-of-type(5) { transition-delay: 320ms; }
.hero-mockup { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
