: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: 3.5rem;
  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;
}

.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);
  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);
}

/* 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;
  }
}

/* Login Elements */
.login-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  color: #1A1A1A;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary-blue);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
  transform: translateY(-1px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 198, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 198, 255, 0.2);
}

.openid-text {
  font-size: 0.85rem;
  color: var(--secondary-blue);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  text-decoration: underline;
}

.logout-link:hover {
  color: var(--primary-blue);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  display: none; /* Hidden by default */
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.close-btn:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qrcode-container {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  margin: 1.5rem 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.qrcode-container img {
  width: 200px;
  height: 200px;
  display: block;
}

.modal-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-hint strong {
  color: var(--primary-blue);
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
