/* ============================================
   TaskToBe Landing Page Styles
   Colors: Blue #1E3A8A / Dark #0F172A / Teal #14D5C7
   Font: Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --blue: #1E3A8A;
  --blue-light: #2563EB;
  --dark: #0F172A;
  --teal: #14D5C7;
  --teal-dark: #0D9488;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --gradient: linear-gradient(135deg, #1E3A8A 0%, #14D5C7 100%);
  --gradient-reverse: linear-gradient(135deg, #14D5C7 0%, #1E3A8A 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.navbar-logo img {
  width: 40px;
  height: 40px;
}

.navbar-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.navbar-logo .logo-to {
  color: var(--teal);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--blue);
}

.navbar-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,58,138,0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 6px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20,213,199,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,58,138,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,213,199,0.1);
  color: var(--teal-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(20,213,199,0.2);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 8px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(30,58,138,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,58,138,0.35);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phones {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-phones .phone-main {
  width: 280px;
  border-radius: 36px;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--dark);
  position: relative;
  z-index: 2;
}

.hero-phones .phone-side-left {
  position: absolute;
  left: -60px;
  top: 40px;
  width: 200px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--dark);
  z-index: 1;
  opacity: 0.85;
  transform: rotate(-5deg);
}

.hero-phones .phone-side-right {
  position: absolute;
  right: -40px;
  top: 20px;
  width: 200px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--dark);
  z-index: 1;
  opacity: 0.85;
  transform: rotate(5deg);
}

/* --- Features Section --- */
.features {
  padding: 100px 24px;
  background: var(--gray-50);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header .badge {
  display: inline-block;
  background: rgba(30,58,138,0.08);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--gray-100);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-icon.blue { background: rgba(30,58,138,0.1); color: var(--blue); }
.feature-icon.teal { background: rgba(20,213,199,0.1); color: var(--teal); }
.feature-icon.yellow { background: rgba(245,158,11,0.1); color: #F59E0B; }
.feature-icon.green { background: rgba(34,197,94,0.1); color: #22C55E; }
.feature-icon.purple { background: rgba(139,92,246,0.1); color: #8B5CF6; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 24px;
  background: var(--white);
}

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(30,58,138,0.2);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 100px 24px;
  background: var(--dark);
  overflow: hidden;
}

.screenshots .section-header .badge {
  background: rgba(20,213,199,0.15);
  color: var(--teal);
}

.screenshots .section-header h2 {
  color: var(--white);
}

.screenshots .section-header p {
  color: var(--gray-400);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshot-card {
  flex: 0 0 auto;
  width: 280px;
}

.screenshot-card img {
  width: 100%;
  border-radius: 32px;
  border: 4px solid var(--gray-700);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.screenshot-label {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
}

/* --- Trust / Security Section --- */
.trust {
  padding: 80px 24px;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-card {
  text-align: center;
  padding: 32px;
}

.trust-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(20,213,199,0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.trust-icon svg {
  width: 32px;
  height: 32px;
}

.trust-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
  padding: 100px 24px;
  background: var(--gradient);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--dark);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 60px 24px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gray-500);
}

.footer-bottom a:hover {
  color: var(--teal);
}

/* --- Legal Pages (Privacy / Deletion) --- */
.legal-page {
  min-height: 100vh;
  padding-top: 100px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-header .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.legal-header .icon-circle svg {
  width: 36px;
  height: 36px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-header .date {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-body p,
.legal-body li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-body a:hover {
  color: var(--teal);
}

.legal-body .highlight-box {
  background: rgba(20,213,199,0.06);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.legal-body .highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--dark);
}

/* --- Deletion Form --- */
.deletion-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.deletion-form h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-danger {
  display: block;
  width: 100%;
  padding: 16px;
  background: #DC2626;
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-danger:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

  .hero-visual {
    display: none;
  }

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

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

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

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

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

  .screenshots-grid {
    flex-direction: column;
    align-items: center;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

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

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

  .deletion-form {
    padding: 24px;
  }
}

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

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

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

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

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
