/* ============================================================
   TEND — Design System (based on diffie.ai)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0A0115;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --yellow:        #FCD612;
  --yellow-mid:    #FFE459;
  --yellow-light:  #FFFBE7;
  --yellow-warm:   #FFFBEE;
  --yellow-dark:   #B89A00;
  --yellow-deeper: #FCAE12;
  --black:         #0A0115;
  --grey-50:       #F9F9F9;
  --grey-100:      #F5F5F5;
  --grey-200:      #EEEEEE;
  --grey-300:      #CCCCCC;
  --grey-400:      #AAAAAA;
  --grey-500:      #888888;
  --grey-600:      #666666;
  --grey-700:      #444444;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-full:   9999px;
  --shadow-card:   4px 4px 28px rgba(0,0,0,0.06);
  --shadow-deep:   0 20px 60px rgba(0,0,0,0.08);
  --max-w:         1280px;
  --max-w-content: 800px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; font-family: 'Public Sans', sans-serif; font-weight: 600; }
p { line-height: 1.7; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,1,21,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
}
.nav-logo span { color: var(--yellow-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-600);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--black); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deeper));
  box-shadow: inset 5px 4px 4px rgba(198,198,198,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--grey-300);
}
.btn-secondary:hover {
  border-color: var(--grey-700);
  background: var(--grey-50);
}
.btn-ghost {
  background: transparent;
  color: var(--grey-600);
  border: none;
}
.btn-ghost:hover { color: var(--black); }
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
}

/* ── Separator ─────────────────────────────────────────────── */
.separator {
  border: none;
  border-top: 1px solid rgba(252, 214, 18, 0.3);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  width: 400px;
  height: 400px;
  background: var(--yellow);
  opacity: 0.18;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 { top: -100px; left: -100px; }
.hero-glow-2 { bottom: -50px; right: -100px; }
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-light);
  color: var(--yellow-dark);
  border: 1px solid rgba(184,154,0,0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--yellow-dark);
}
.hero-desc {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--grey-600);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--grey-500);
}

/* ── Proof Bar ─────────────────────────────────────────────── */
.proof-bar {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 20px 0;
}
.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey-600);
  font-weight: 500;
}
.proof-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ── Problem Section ───────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--grey-400); }
.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.problem-card h4 { margin-bottom: 12px; }
.problem-card p { font-size: 0.9rem; color: var(--grey-600); line-height: 1.7; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}
.step-card:hover { border-color: var(--grey-400); box-shadow: var(--shadow-deep); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: 'Public Sans', sans-serif;
}
.step-card h4 { margin-bottom: 12px; font-size: 1.15rem; }
.step-card p { font-size: 0.9rem; color: var(--grey-600); line-height: 1.7; }

/* ── Example Section ───────────────────────────────────────── */
.example-section { background: var(--grey-50); }
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.example-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.example-label.bad {
  background: #FEE2E2;
  color: #991B1B;
}
.example-label.good {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}
.example-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.example-card.highlighted {
  border-color: var(--yellow);
  background: var(--yellow-warm);
}
.example-from {
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.example-message {
  font-size: 0.92rem;
  color: var(--grey-700);
  line-height: 1.75;
  font-style: italic;
  background: var(--grey-50);
  border-left: 3px solid var(--grey-300);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 8px;
}
.example-card.highlighted .example-message {
  background: rgba(255,255,255,0.7);
  border-left-color: var(--yellow);
}
.example-context {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.6;
}
.example-context-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Comparison Table ──────────────────────────────────────── */
.comparison-section { position: relative; overflow: hidden; }
.comparison-glow {
  position: absolute;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  background: var(--yellow);
  opacity: 0.2;
  filter: blur(150px);
  pointer-events: none;
}
.comparison-glow-1 { top: 0; left: -50px; }
.comparison-glow-2 { bottom: 0; right: -50px; }
.comparison-table-wrap {
  margin-top: 56px;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-deep);
}
table.comparison {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.comparison th {
  padding: 20px 28px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50);
}
table.comparison th.tend-col {
  background: var(--yellow-light);
  color: var(--black);
}
table.comparison td {
  padding: 16px 28px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-700);
  vertical-align: middle;
}
table.comparison tr:last-child td { border-bottom: none; }
table.comparison td.tend-col {
  background: rgba(252,214,18,0.04);
  font-weight: 500;
  color: var(--black);
}
table.comparison td:first-child {
  font-weight: 500;
  color: var(--black);
}
.check { color: #059669; font-size: 1.1rem; }
.cross { color: #DC2626; font-size: 1.1rem; }
.partial { color: var(--yellow-dark); font-size: 0.85rem; font-weight: 600; }

/* ── Features Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  background: #fff;
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  border-color: var(--grey-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.87rem;
  color: var(--grey-600);
  line-height: 1.65;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
  position: relative;
}
.pricing-card:hover { border-color: var(--grey-400); }
.pricing-card.featured {
  border-color: var(--yellow);
  background: var(--yellow-warm);
  box-shadow: 0 8px 40px rgba(252,214,18,0.2);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--black);
}
.pricing-price sup {
  font-size: 1rem;
  vertical-align: super;
}
.pricing-period {
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
  line-height: 1.6;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--grey-700);
}
.pricing-feature-check {
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: var(--black);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0;
}
.cta-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.12;
  filter: blur(150px);
  pointer-events: none;
}
.cta-glow-1 { width: 500px; height: 500px; top: -100px; left: 50%; transform: translateX(-50%); }
.cta-section h2 { color: #fff; margin-bottom: 20px; }
.cta-section h2 em { font-style: italic; color: var(--yellow-mid); }
.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-light);
  color: var(--yellow-dark);
  border: 1px solid rgba(184,154,0,0.2);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
}
.section-title { margin-bottom: 16px; }
.section-desc {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 8px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── Tabs (Comparison) ──────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 40px auto 0;
}
.tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--grey-600);
  border: none;
  background: none;
}
.tab.active {
  background: #fff;
  color: var(--black);
  box-shadow: var(--shadow-card);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .comparison-table-wrap { font-size: 0.85rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
