/* CalendarPie Landing Page Styles */

:root {
  --bg-color: #0d0e15;
  --bg-card: #161722;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-teal: #14b8a6;
  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(13, 14, 21, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.logo-pie {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-teal) 0deg 120deg,
    var(--accent-gold) 120deg 240deg,
    var(--accent-rose) 240deg 360deg
  );
  position: relative;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.logo-pie::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background-color: var(--bg-color);
  border-radius: 50%;
}

.logo span {
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.btn-download {
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Hero Section */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 2rem;
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

@media (max-width: 968px) {
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(20, 184, 166, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Device Mockup (Radial Calendar Simulator) */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 320px;
  height: 640px;
  border: 12px solid #27272a;
  border-radius: 40px;
  background-color: #08090d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(20, 184, 166, 0.15);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #27272a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Visual Concentric Pie (HTML/CSS canvas) */
.radial-canvas-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

.radar-widget {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.circle-outer {
  width: 210px;
  height: 210px;
  border: 3px solid transparent;
  border-top-color: var(--accent-rose);
  border-right-color: var(--accent-rose);
  animation: rotate-clockwise 12s linear infinite;
}

.circle-middle {
  width: 160px;
  height: 160px;
  border: 4px solid transparent;
  border-bottom-color: var(--accent-teal);
  border-left-color: var(--accent-teal);
  animation: rotate-counter-clockwise 8s linear infinite;
}

.circle-inner {
  width: 110px;
  height: 110px;
  border: 4px solid transparent;
  border-top-color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  animation: rotate-clockwise 5s linear infinite;
}

.circle-center {
  width: 60px;
  height: 60px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.center-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

/* Mock App UI details */
.mock-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mock-app-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.mock-app-menu {
  color: var(--text-secondary);
}

.mock-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

.mock-task {
  background-color: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-teal);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.mock-task.gold {
  border-left-color: var(--accent-gold);
}

.mock-task.rose {
  border-left-color: var(--accent-rose);
}

.mock-task-time {
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Features Grid */
.features-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(255, 255, 255, 0.01);
  padding: 6rem 2rem;
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

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

.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(20, 184, 166, 0.1);
  color: var(--accent-teal);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card.gold .card-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
}

.card.rose .card-icon {
  background-color: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.card.blue .card-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

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

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Call to Action */
.cta-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 2rem;
  text-align: center;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-container p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* Privacy Page / Terms Styling */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.legal-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-header p {
  color: var(--text-secondary);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #090a0f;
  padding: 4rem 2rem;
}

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

@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: white;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #4b5563;
  font-size: 0.9rem;
}
