:root {
  --primary-blue: #0066FF;
  --secondary-blue: #00C6FF;
  --background-dark: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: rgba(0, 0, 0, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--background-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background animated gradient or blobs */
.bg-blob-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 60%);
  opacity: 0.3;
  filter: blur(80px);
  z-index: -1;
  animation: float 15s ease-in-out infinite alternate;
}

.bg-blob-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-blue) 0%, transparent 60%);
  opacity: 0.2;
  filter: blur(100px);
  z-index: -1;
  animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
  100% { transform: translateY(20px) scale(0.95); }
}

/* App Container */
.app-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-left: -8vw;
  margin-right: -8vw;
  padding: 1.5rem 8vw;
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, #1A1A1A, var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  position: relative;
  min-height: 75vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-blue);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), #0044BB);
  color: white;
  text-decoration: none;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.6);
  background: linear-gradient(135deg, #0077FF, var(--primary-blue));
}

.windows-info {
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.windows-info strong {
  color: var(--text-primary);
}

/* Mockup Display */
.hero-mockup {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-mockup:hover .glass-card {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Mockup UI Elements */
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mockup-item:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateX(10px);
}

.mockup-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-item.done .mockup-check {
  background: var(--secondary-blue);
}

.mockup-item.done .mockup-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.floating-element {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  animation: float 6s ease-in-out infinite;
}

.f-1 {
  top: 15%;
  left: calc(50% + 120px);
  animation-delay: 0s;
}

.f-2 {
  bottom: 25%;
  right: calc(50% + 120px);
  animation-delay: -3s;
}

/* Feature Showcases */
.features-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  padding: 8rem 0;
}

.feature-showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  min-height: 80vh;
}

.feature-showcase.reverse {
  flex-direction: row-reverse;
}

.feature-showcase.vertical {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 4rem;
}

.feature-showcase.vertical .showcase-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-showcase.vertical .showcase-visual {
  max-width: 100%;
}

.showcase-content {
  flex: 1;
  max-width: 45%;
}

.showcase-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 50%;
}

.feature-showcase h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-showcase p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-blue);
  margin-bottom: 2.5rem;
}

.feature-icon.glow {
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 198, 255, 0.15));
  border: 1px solid rgba(0, 198, 255, 0.2);
  transition: all 0.3s;
}

.feature-showcase:hover .feature-icon.glow {
  box-shadow: 0 0 50px rgba(0, 198, 255, 0.5);
  transform: scale(1.1);
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  /* Added transition fallback or just let animation handle it */
}
.reveal-up.active {
  animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.float-slow { animation: float-soft 8s ease-in-out infinite; }
.float-fast { animation: float-soft 6s ease-in-out infinite reverse; }

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

/* Mockup Glass Container */
.mockup-glass {
  width: 100%;
  min-width: 320px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 50, 150, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.feature-showcase:hover .mockup-glass {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 102, 255, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.8);
}

.mockup-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.reverse-glow { background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 60%); }
.focus-glow { background: radial-gradient(circle, rgba(100, 200, 255, 0.15) 0%, transparent 60%); }

/* Note UI Elements */
.mockup-note {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-line {
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  width: 100%;
}
.note-line.w-80 { width: 80%; }
.note-line.w-60 { width: 60%; }

.note-content-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 102, 255, 0.03);
  border-left: 3px solid var(--primary-blue);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 102, 255, 0.1);
  backdrop-filter: blur(10px);
}
.f-badge-1 {
  bottom: -20px;
  right: -20px;
  animation: float-soft 4s ease-in-out infinite;
}

/* Focus UI Elements */
.focus-timer-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.timer-circle {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 4;
}

.circle-progress {
  fill: none;
  stroke: var(--secondary-blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  text-align: center;
  z-index: 10;
}

.timer-text .time {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timer-text .label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 500;
}

.focus-controls {
  display: flex;
  gap: 1rem;
}

.focus-controls div {
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-pause {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary-blue);
}
.btn-pause:hover {
  background: rgba(0, 102, 255, 0.2);
}

.btn-stop {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.btn-stop:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

/* ======= Cloud Sync UI ======= */
.sync-ui {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sync-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}

.sync-dot.pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.sync-label {
  font-weight: 600;
  color: #22C55E;
  font-size: 0.95rem;
}

.sync-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sync-devices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sync-device-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sync-device-item:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateX(6px);
}

.sync-device-info {
  flex: 1;
}

.sync-device-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sync-device-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sync-progress-mini {
  width: 40px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.sync-progress-bar-mini {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
  border-radius: 3px;
  animation: sync-bar 2s ease-in-out infinite;
}

@keyframes sync-bar {
  0% { width: 30%; }
  50% { width: 80%; }
  100% { width: 30%; }
}

.sync-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sync-summary strong {
  color: var(--primary-blue);
}

.f-badge-2 {
  bottom: -20px;
  left: -20px;
  animation: float-soft 5s ease-in-out infinite;
}

/* ======= SMS Notification UI ======= */
.sms-ui {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sms-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.sms-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sms-header-info {
  flex: 1;
}

.sms-sender {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.sms-time-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sms-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sms-bubble {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(0, 198, 255, 0.06));
  border: 1px solid rgba(0, 102, 255, 0.08);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 1rem 1.15rem;
  transition: all 0.3s ease;
}

.sms-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.1);
}

.sms-bubble-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-blue);
  margin-bottom: 0.4rem;
}

.sms-bubble-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sms-bubble-time {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.3);
  margin-top: 0.4rem;
}

.sms-setup-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 102, 255, 0.04);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.f-badge-3 {
  top: -15px;
  right: -15px;
  animation: float-soft 4.5s ease-in-out infinite reverse;
}

/* Footer. Ensure text is visible in bottom */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  margin-top: auto;
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .feature-showcase, .feature-showcase.reverse {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  .showcase-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .features-showcase-container {
    padding: 4rem 0;
    gap: 8rem;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 0 5vw;
  }
  
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .nav-links a {
    font-size: 1rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-mockup {
    width: 100%;
    margin-top: 2rem;
  }
  .glass-card {
    transform: none !important;
    width: 100%;
    padding: 1.5rem;
  }
  .hero-mockup:hover .glass-card {
    transform: none !important;
  }
  .floating-element, .floating-badge {
    display: none !important; /* Hide floating items on mobile */
  }

  .showcase-content,
  .showcase-visual {
    max-width: 100%;
    width: 100%;
  }
  .feature-showcase h2 {
    font-size: 1.8rem;
  }
  .feature-showcase p {
    font-size: 1rem;
  }
  .mockup-glass {
    min-width: 100%;
    padding: 1.25rem;
  }
  
  /* Feature Subpages */
  .detail-hero h1 {
    font-size: 2rem;
  }
  .detail-hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
