/* ===== Map2do Landing - Ultra Minimal ===== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Palette - Clean & Professional */
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-muted: #9ca3af;
  --border: #e5e7eb;

  /* Brand */
  --brand: #2563eb;
  --brand-soft: rgba(37, 99, 235, 0.08);
  --accent: #f59e0b;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 100px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.i18n-loading body {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text .logo-2 {
  opacity: 0.5;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero ===== */
main {
  padding-top: 64px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero-badge i {
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero h1 span {
  display: block;
}

.hero h1 .highlight {
  color: var(--brand);
}

.hero-desc {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-muted);
}

.hero-note {
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-trust {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--ink-soft);
}

.trust-item i {
  font-size: 16px;
  color: var(--brand);
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
}

.preview-window {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.preview-tab {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.preview-tab.active {
  background: var(--ink);
  color: white;
}

.preview-tab:hover:not(.active) {
  color: var(--ink);
}

.preview-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--ink-muted);
}

.preview-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.preview-canvas {
  padding: var(--space-lg);
  min-height: 380px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.preview-view {
  position: absolute;
  inset: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.preview-view.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Mind Map Preview ===== */
.mindmap-preview {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 16px;
}

.mm-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-col-root {
  flex-shrink: 0;
}

.mm-col-children {
  position: relative;
  flex: 1;
}

/* Vertical line connecting children */
.mm-col-children::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: #d1d5db;
  border-radius: 1px;
}

.mm-node {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.mm-node-bar {
  width: 5px;
  background: var(--node-color, #94a3b8);
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
}

.mm-node-body {
  padding: 8px 10px;
  flex: 1;
}

.mm-node-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.mm-node-header i {
  color: #94a3b8;
  font-size: 13px;
}

.mm-node-badge {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mm-node-tasks {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-task {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 400;
}

.mm-task-check {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  flex-shrink: 0;
}

/* Connector from root to children */
.mm-connector {
  position: absolute;
  right: -24px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #d1d5db;
}

/* Connector into each child */
.mm-connector-in {
  position: absolute;
  left: -12px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #d1d5db;
}

/* ===== Kanban Preview ===== */
.kanban-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}

.kb-col {
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.kb-col-icon {
  color: #94a3b8;
}

.kb-col-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
}

.kb-card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
}

.kb-card-bar {
  width: 4px;
  background: var(--card-color, #94a3b8);
  flex-shrink: 0;
}

.kb-card-content {
  padding: 8px 10px;
  flex: 1;
}

.kb-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.kb-card-header i {
  color: #94a3b8;
  font-size: 13px;
}

.kb-card-meta {
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.kb-card-tasks {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kb-task {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-soft);
}

.kb-task-check {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid #d1d5db;
  flex-shrink: 0;
}

/* ===== Today Preview ===== */
.today-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.today-title {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.today-card {
  background: var(--surface);
  border-radius: 10px;
  border: 2px solid var(--card-color, var(--border));
  overflow: hidden;
}

.today-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.today-card-drag {
  color: #d1d5db;
  font-size: 10px;
  letter-spacing: -2px;
}

.today-card-header i {
  color: #94a3b8;
}

.today-card-title {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.today-card-count {
  margin-left: auto;
  color: var(--ink-muted);
}

.today-card-tasks {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.today-task {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}

.today-task-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  flex-shrink: 0;
}

.today-task-icon {
  font-size: 14px;
}

.today-task.done {
  color: var(--ink-muted);
  text-decoration: line-through;
}

.today-task.done .today-task-check {
  background: #22c55e;
  border-color: #22c55e;
}

/* View Dots */
.view-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: var(--ink);
  transform: scale(1.2);
}

/* PWA Install Button */
.pwa-install-landing-btn {
  display: none;
  margin-top: var(--space-md);
}

.pwa-install-landing-btn.hidden {
  display: none !important;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-header {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ===== Views Section ===== */
.views-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.view-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.view-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.view-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.view-icon.map { background: var(--brand-soft); color: var(--brand); }
.view-icon.kanban { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.view-icon.today { background: rgba(34, 197, 94, 0.1); color: #16a34a; }

.view-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.view-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Workflow Section ===== */
.workflow {
  background: var(--surface);
}

.workflow-steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: var(--border);
}

.workflow-step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.workflow-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.workflow-step p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== Features Section ===== */
.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.feature-card:hover {
  background: var(--surface);
  border-color: var(--border);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===== CTA Section ===== */
.cta {
  padding: var(--space-3xl) var(--space-lg);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.cta-card p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.cta .btn-primary {
  background: white;
  color: var(--ink);
}

.cta .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.cta .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer .logo {
  gap: var(--space-sm);
}

.footer .logo-mark {
  width: 28px;
  height: 28px;
}

.footer .logo-text {
  font-size: 16px;
}

.copyright {
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--ink);
}

/* ===== Animations ===== */
[data-reveal] {
  animation: reveal 0.6s ease both;
}

[data-delay="1"] { animation-delay: 0.1s; }
[data-delay="2"] { animation-delay: 0.2s; }
[data-delay="3"] { animation-delay: 0.3s; }
[data-delay="4"] { animation-delay: 0.4s; }
[data-delay="5"] { animation-delay: 0.5s; }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-2xl) var(--space-lg);
  }

  .views-grid,
  .workflow-steps,
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .workflow-steps::before {
    display: none;
  }

  .kanban-preview {
    grid-template-columns: 1fr;
  }

  .preview-canvas {
    min-height: 300px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
  }

  .preview-bar {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .preview-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 769px) {
  .pwa-install-landing-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .pwa-install-landing-btn:not(.hidden) {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--ink);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
  }
}
