/* Reset & Variables */
:root {
  --bg-color: #0b0c10;
  --card-bg: rgba(20, 22, 30, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --primary: #3b82f6; /* Neon Blue */
  --primary-glow: rgba(59, 130, 246, 0.35);
  --secondary: #ec4899; /* Neon Pink */
  --secondary-glow: rgba(236, 72, 153, 0.35);
  --accent: #8b5cf6; /* Indigo/Purple */
  --accent-glow: rgba(139, 92, 246, 0.2);
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  /* Let's keep it a sleek, high-contrast dark theme by default, but let's offer soft light mode adjustments if needed. 
     Actually, a curated premium dark-mode-first aesthetic works beautifully for modern productivity utilities. 
     We will implement a gorgeous dark theme that respects readability. */
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients/Glows */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  background-color: rgba(11, 12, 16, 0.7);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

/* Container */
.main-content {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary-glow);
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Buttons */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* App Store Badge CTA Button styling */
.btn-appstore {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: var(--transition);
}

.btn-appstore:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.btn-appstore svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
}

.btn-appstore-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.btn-appstore-title {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Mockup Showcase */
.mockup-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 290px;
  height: 590px;
  background: #161822;
  border: 10px solid #2e303d;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  font-family: var(--font-body);
  user-select: none;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.phone-time {
  font-size: 0.85rem;
  font-weight: 600;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #2e303d;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-icons {
  display: flex;
  gap: 0.25rem;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.phone-title {
  font-size: 1.1rem;
  font-family: var(--font-title);
}

/* Timeline Showcase inside Mockup */
.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.mock-timeline::-webkit-scrollbar {
  display: none;
}

.mock-block {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  border-left: 4px solid transparent;
}

.mock-block.blue {
  background: rgba(59, 130, 246, 0.15);
  border-left-color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-left-width: 4px;
}

.mock-block.pink {
  background: rgba(236, 72, 153, 0.15);
  border-left-color: var(--secondary);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-left-width: 4px;
}

.mock-block.purple {
  background: rgba(139, 92, 246, 0.15);
  border-left-color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-left-width: 4px;
}

.mock-block.free-gap {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-time {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-tasks-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mock-tasks-indicator input {
  pointer-events: none;
}

.timeline-indicator-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
  z-index: 5;
  box-shadow: 0 0 8px var(--secondary-glow);
}

.timeline-indicator-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

/* Features Section */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--card-border);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border: 1px solid var(--card-border);
}

.feature-card:nth-child(even) .feature-icon {
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Stats/Detail Section */
.detail-showcase {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  gap: 4rem;
  border-top: 1px solid var(--card-border);
}

.detail-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.detail-image img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.detail-info {
  flex: 1.2;
}

.detail-info h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.detail-info p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bullet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-secondary);
}

.bullet-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* FAQ Section */
.faqs {
  padding: 6rem 0;
  border-top: 1px solid var(--card-border);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-answer {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-icon {
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Privacy/Support Layout */
.page-container {
  padding: 4rem 0 6rem 0;
  max-width: 800px;
}

.page-container h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.doc-section p {
  margin-bottom: 1rem;
}

.doc-section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.privacy-notice {
  margin: 0 0 3rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--card-border);
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text-secondary);
}

.privacy-notice strong {
  color: var(--text-primary);
}

.privacy-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.privacy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.privacy-table th,
.privacy-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--card-border);
}

.privacy-table th {
  color: var(--text-primary);
  background: var(--card-bg);
  font-weight: 600;
}

.privacy-table td {
  color: var(--text-secondary);
}

.privacy-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .page-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .privacy-table-wrap {
    margin-right: -1rem;
  }
}

/* Forms (Support Page) */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  background-color: rgba(11, 12, 16, 0.9);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  .detail-showcase {
    flex-direction: column;
    gap: 2.5rem;
  }
  .detail-image {
    order: 2;
  }
  .detail-info {
    order: 1;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
