/* Focusd Design System - Clean CSS */

/* CSS Custom Properties */
:root {
  --background: 210 30% 98%;
  --foreground: 212 25% 25%;
  --card: 210 28% 94%;
  --card-foreground: 212 25% 25%;
  --primary: 212 25% 44%;
  --primary-foreground: 210 30% 98%;
  --secondary: 210 30% 92%;
  --secondary-foreground: 212 25% 35%;
  --muted-foreground: 212 18% 50%;
  --accent: 210 35% 87%;
  --accent-foreground: 212 25% 30%;
  --destructive: 0 84.2% 60.2%;
  --border: 210 25% 88%;
  --ring: 212 25% 44%;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Main Container */
main {
  min-height: 100vh;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, hsl(var(--primary) / 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsl(var(--primary) / 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 0%, hsl(var(--primary) / 0.25), transparent 65%),
    linear-gradient(to bottom, hsl(var(--secondary) / 0.4), hsl(var(--background)) 75%);
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 30% 40%, hsl(var(--primary) / 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, hsl(var(--primary) / 0.06) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-logo {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 40px hsl(var(--primary) / 0.35));
  animation: float 3s ease-in-out infinite;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.highlight-time {
  color: hsl(var(--destructive));
  font-weight: 800;
  position: relative;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-visual-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, hsl(var(--secondary) / 0.4), hsl(var(--secondary) / 0.2));
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  backdrop-filter: blur(10px);
}

.visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.app-icon {
  font-size: 2.25rem;
  filter: grayscale(0.1);
  transition: all 0.3s ease;
}

.app-icon.highlight {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px hsl(var(--primary) / 0.3));
}

.app-icon:hover {
  transform: scale(1.1);
}

.app-icon.blocked {
  opacity: 0.25;
  filter: grayscale(1);
}

.icon-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arrow {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  font-weight: 600;
  animation: slideRight 1.5s ease-in-out infinite;
}

.blocked-arrow {
  color: hsl(var(--destructive));
  animation: none;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.hero-tagline {
  font-size: 1rem;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-cta {
  padding-top: 0.5rem;
}

.hero-social-proof {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground) / 0.65);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-social-proof::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  padding: 1.25rem 2.5rem;
  font-size: 1.0625rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px hsl(var(--primary) / 0.25);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, hsl(var(--primary-foreground) / 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.9));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px hsl(var(--primary) / 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

/* Sections */
section {
  padding: 6rem 1.5rem;
}

.section-container {
  max-width: 56rem;
  margin: 0 auto;
}

.section-container-narrow {
  max-width: 36rem;
  margin: 0 auto;
}

.section-container-wide {
  max-width: 48rem;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.section-subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.1s forwards;
}

.section-bg-alt {
  background-color: hsl(var(--secondary) / 0.3);
}

/* Problem Section */
.problem-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  margin: 2rem auto 0;
  max-width: fit-content;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.2s forwards;
}

.problem-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--destructive));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.problem-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.feature-description {
  color: hsl(var(--muted-foreground));
}

/* Steps */
.steps-list {
  margin-top: 4rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step:nth-child(4) { animation-delay: 0.3s; }

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-content {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.step-description {
  color: hsl(var(--muted-foreground));
}

/* Point Cards */
.point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.point-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.point-card:nth-child(1) { animation-delay: 0s; }
.point-card:nth-child(2) { animation-delay: 0.1s; }
.point-card:nth-child(3) { animation-delay: 0.2s; }

.point-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.point-description {
  color: hsl(var(--muted-foreground));
}

/* Privacy Section */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.privacy-card {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.privacy-card:nth-child(1) { animation-delay: 0.1s; }
.privacy-card:nth-child(2) { animation-delay: 0.2s; }
.privacy-card:nth-child(3) { animation-delay: 0.3s; }

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent));
  margin-bottom: 1rem;
}

.privacy-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--accent-foreground));
}

.privacy-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.privacy-description {
  color: hsl(var(--muted-foreground));
}

/* Pricing Section */
.pricing-card {
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 0 2px hsl(var(--primary));
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.2s forwards;
  position: relative;
  overflow: visible;
}

.early-bird-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, hsl(var(--destructive)), hsl(var(--destructive) / 0.8));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px hsl(var(--destructive) / 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.pricing-price {
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 600;
}

.pricing-period {
  color: hsl(var(--primary-foreground) / 0.7);
}

.pricing-original {
  margin-bottom: 1.5rem;
}

.original-price {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
  text-decoration: line-through;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.pricing-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.pricing-feature-text {
  color: hsl(var(--primary-foreground) / 0.9);
}

.btn.btn-primary.pricing-button {
  background: white !important;
  color: hsl(212, 25%, 44%) !important;
  border: 2px solid white !important;
  width: 85%;
  max-width: 500px;
  margin-bottom: 1.5rem;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.btn.btn-primary.pricing-button:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: hsl(212, 25%, 40%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

/* Final CTA */
.final-cta {
  padding: 8rem 1.5rem;
  text-align: center;
}

.final-cta-content {
  max-width: 42rem;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.final-cta-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.final-cta-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-content {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s;
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(5px);
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-logo {
    width: 6rem;
    height: 6rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .feature-grid,
  .point-grid,
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .footer-content {
    flex-direction: row;
  }

  .final-cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--foreground) / 0.5);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  box-shadow: 0 20px 60px hsl(var(--foreground) / 0.3);
  max-width: 28rem;
  width: 100%;
  padding: 2.5rem;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid hsl(var(--border));
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

.modal-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.modal-footer-text {
  text-align: center;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-top: -0.5rem;
}

.success-message {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease-out;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 8px 24px hsl(var(--primary) / 0.3);
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Pricing Summary in Modal */
.pricing-summary {
  background-color: hsl(var(--secondary) / 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(var(--border));
}

.pricing-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pricing-summary-row:last-child {
  margin-bottom: 0;
}

.pricing-summary-label {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  font-weight: 500;
}

.pricing-summary-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.pricing-summary-savings {
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.pricing-summary-savings .pricing-summary-label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.pricing-summary-savings .pricing-summary-price {
  font-size: 0.875rem;
  color: hsl(142, 76%, 36%);
  font-weight: 600;
}

/* Refund Notice */
.refund-notice {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: hsl(var(--accent) / 0.5);
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.refund-notice svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.refund-notice-text {
  flex: 1;
}

.refund-notice-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.refund-notice-text p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.5;
}
