/* ========================================
   TaskFlow - BtoB Project Management SaaS LP
   Purple x White, Modern SaaS
   ======================================== */

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #FAFAFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E5E7EB;
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Design Tokens --- */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #8B5CF6;
  --primary-lighter: #EDE9FE;
  --accent: #DDD6FE;
  --bg: #FAFAFF;
  --bg-white: #FFFFFF;
  --bg-alt: #F5F3FF;
  --text: #1E1B4B;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 27, 75, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 27, 75, 0.10);
  --shadow-xl: 0 20px 60px rgba(30, 27, 75, 0.12);
  --text-hero: clamp(36px, 5vw, 56px);
  --text-h2: clamp(28px, 3.5vw, 40px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --space-section: clamp(80px, 10vw, 120px);
  --space-group: clamp(40px, 5vw, 64px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeInBody 0.6s ease forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* --- Typography --- */
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Pill Badge --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }

.pricing-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }

.security-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.security-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.security-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.numbers-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.numbers-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Utility */
.sp-hide {}


/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(250, 250, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.header-login {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-login:hover {
  color: var(--primary);
}

/* --- Hamburger & Mobile Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text);
  padding: 4px;
}

.mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-link:hover {
  color: var(--primary);
}

.mobile-cta {
  margin-top: 24px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  border-bottom: none;
  padding: 14px;
  font-weight: 700;
}

.mobile-cta:hover {
  color: #fff;
  filter: brightness(1.05);
}


/* ============================================
   1. Hero
   ============================================ */
.hero {
  padding: 140px 0 80px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 4vw, 64px);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Hero Form */
.hero-form {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-email {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: var(--text);
}

.form-email:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-email::placeholder {
  color: #9CA3AF;
}

.form-thanks {
  text-align: center;
  padding: 24px;
  background: rgba(124, 58, 237, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.form-thanks-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}
.form-thanks--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.form-thanks--light .form-thanks-text {
  color: #fff;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ============================================
   Dashboard Mockup
   ============================================ */
.hero-mockup {
  position: relative;
}

.mockup-window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
}

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

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.mockup-body {
  padding: 16px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kanban-col {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kanban-dot-todo { background: #9CA3AF; }
.kanban-dot-progress { background: #3B82F6; }
.kanban-dot-done { background: #10B981; }

.kanban-count {
  margin-left: auto;
  background: var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 11px;
  transition: box-shadow 0.2s;
}

.kanban-card:last-child {
  margin-bottom: 0;
}

.kanban-card-done {
  opacity: 0.6;
}

.kanban-card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tag-design { background: #EDE9FE; color: #7C3AED; }
.tag-dev { background: #DBEAFE; color: #2563EB; }
.tag-marketing { background: #FEF3C7; color: #92400E; }

.kanban-card-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.kanban-card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.kanban-avatar {
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}


/* ============================================
   2. Features
   ============================================ */
.features {
  padding: var(--space-section) 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: var(--space-group);
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-lighter);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}


/* ============================================
   3. Compare
   ============================================ */
.compare {
  padding: var(--space-section) 0;
  background: var(--bg);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-group);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: center;
  font-size: var(--text-small);
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-weight: 700;
  color: var(--text);
  background: #FAFAFA;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-feature-col {
  text-align: left !important;
  font-weight: 600;
  color: var(--text);
}

.compare-highlight {
  background: var(--primary-lighter) !important;
  font-weight: 600;
}

.compare-table thead .compare-highlight {
  background: var(--primary) !important;
  color: #fff;
  font-weight: 800;
}

.check {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.partial {
  color: #F59E0B;
  font-size: 18px;
}

.cross {
  color: #D1D5DB;
  font-size: 18px;
}

.compare-table td strong {
  color: var(--primary);
}


/* ============================================
   4. Logos
   ============================================ */
.logos {
  padding: var(--space-section) 0;
  background: var(--bg-white);
}

.logos-heading {
  text-align: center;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-group);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #B0B0B0;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.logo-placeholder:hover {
  border-color: var(--accent);
  color: var(--text-muted);
}


/* ============================================
   5. Numbers
   ============================================ */
.numbers {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item {
  padding: 40px 20px;
}

.number-value {
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.number-label {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}


/* ============================================
   6. Pricing
   ============================================ */
.pricing {
  padding: var(--space-section) 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-group);
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.pricing-card-highlight {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-card-highlight:hover {
  transform: translateY(-4px) scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pricing-amount-sm {
  font-size: 20px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features {
  margin: 0 0 24px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  padding: 8px 0;
  color: var(--text);
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}


/* ============================================
   7. Security
   ============================================ */
.security {
  padding: var(--space-section) 0;
  background: var(--bg-white);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--space-group);
}

.security-badge {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.security-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.3s;
}

.security-badge:hover .security-icon {
  background: var(--accent);
}

.security-label {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--text);
}


/* ============================================
   8. Final CTA
   ============================================ */
.final-cta {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.final-cta-form {
  max-width: 520px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.final-cta-form .form-row {
  display: flex;
  gap: 12px;
}

.final-cta-form .form-email {
  flex: 1;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.final-cta-form .form-email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.final-cta-form .form-email:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.final-cta-sub {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}


/* ============================================
   9. Footer
   ============================================ */
.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-tagline {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: var(--text-caption);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
}


/* ============================================
   Responsive - 1024px (Tablet landscape)
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .form-row {
    justify-content: center;
  }

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

  .hero-mockup {
    max-width: 600px;
    margin: 0 auto;
  }

  .pricing-card-highlight {
    transform: none;
  }

  .pricing-card-highlight:hover {
    transform: translateY(-4px);
  }
}


/* ============================================
   Responsive - 768px (Tablet portrait)
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-login {
    display: none;
  }

  .sp-hide {
    display: none;
  }

  .section-title br {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

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

  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .number-item {
    padding: 24px 20px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-group);
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .final-cta-form .form-row {
    flex-direction: column;
  }
}


/* ============================================
   Responsive - 480px (Mobile)
   ============================================ */
@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle br {
    display: none;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
  }

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

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
