/*
  diskALERT landing page styles

  This stylesheet defines a clean, modern look for the diskALERT
  demonstration website. It uses a flexible grid layout to ensure
  content looks great on mobile, tablet and desktop. Colour variables
  can be tweaked easily at the top of the file to match branding.
*/

:root {
  --primary: #0055a5; /* deep blue for primary buttons and accents */
  --accent: #2ebd59; /* green accent used in the brand */
  --background: #f5f8fc; /* light background */
  --card-bg: #ffffff;
  --text-color: #2a2a2a;
  --muted: #666666;
  --border-color: #e0e6ed;
  --radius: 0.75rem;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
  margin-right: 0.4rem;
  color: var(--accent);
}

.logo-text {
  display: flex;
  align-items: baseline;
}

.logo-disk {
  color: var(--primary);
}

.logo-alert {
  color: var(--accent);
  margin-left: 0.15rem;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  padding: 0;
  background: linear-gradient(180deg, #e9f2ff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 0 1 60%;
  max-width: 600px;
  color: white;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.coming-soon {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-buttons-img {
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
  cursor: pointer;
}

.download-btn {
  background-color: var(--primary);
  color: #fff;
}

.download-btn i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.download-btn.ios {
  background-color: var(--primary);
}

.download-btn.android {
  background-color: var(--accent);
}

.download-btn:hover {
  filter: brightness(0.9);
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: 270px;
  height: 530px;
  border: 12px solid #111;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
    min-height: 100vh;
  }
  .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  .hero-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .download-buttons-img {
    max-width: 250px;
  }
  .hero-image {
    order: -1;
  }
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
  
  /* Features Section */
  .features-section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  
  /* Screenshots Section */
  .screenshots-section {
    padding: 3rem 0;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .screenshot-item img {
    height: 300px;
  }
  
  /* Pricing Section */
  .pricing-section {
    padding: 3rem 0;
  }
  .pricing-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .pricing-column {
    flex: 1 1 100%;
  }
  .plan-card {
    padding: 2rem;
  }
  
  /* CTA Section */
  .cta-section {
    padding: 3rem 0;
  }
  .cta-content h2 {
    font-size: 2rem;
  }
  .cta-content p {
    font-size: 1rem;
  }
  .cta-download .download-buttons-img {
    max-width: 280px;
  }
}



/* Features Section */
.features-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform var(--transition);
}

/* Ensure consistent spacing for all feature cards */
.feature-card > *:not(.feature-icon):not(.icon) {
  margin-bottom: 1rem;
}

.feature-card > *:last-child {
  margin-bottom: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon,
.feature-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 85, 165, 0.3);
  flex-shrink: 0;
}

.feature-icon i,
.feature-card .icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-content h3,
.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-content p,
.feature-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.feature-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Screenshots Section */
.screenshots-section {
  padding: 5rem 0;
  background: var(--card-bg);
}

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

.screenshot-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
  cursor: pointer;
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.screenshot-overlay i {
  color: white;
  font-size: 2rem;
}

.screenshot-item:hover .screenshot-overlay {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-btn i {
  font-size: 1.5rem;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pricing-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%230055a5" opacity="0.05"/><circle cx="80" cy="80" r="2" fill="%230055a5" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%230055a5" opacity="0.03"/><circle cx="10" cy="60" r="1" fill="%230055a5" opacity="0.03"/><circle cx="90" cy="40" r="1" fill="%230055a5" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23pricing-pattern)"/></svg>');
  opacity: 0.5;
}

.pricing-section .container {
  position: relative;
  z-index: 2;
}

.pricing-section .section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.pricing-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.pricing-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 400;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.pricing-column {
  flex: 1 1 350px;
}

.pricing-column h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.pricing-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.plan-card {
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 85, 165, 0.02) 0%, rgba(46, 189, 89, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 85, 165, 0.2);
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card:hover::after {
  opacity: 1;
}

/* Special styling for featured plan */
.plan-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  box-shadow: 0 15px 45px rgba(46, 189, 89, 0.2);
  position: relative;
}

.plan-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.plan-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-card .period {
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  margin-left: 0.25rem;
}

.plan-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text-color);
}

.plan-card ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.plan-card ul li::before {
  content: '\f058'; /* Font Awesome check-circle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.plan-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 85, 165, 0.3);
  position: relative;
  overflow: hidden;
}

.plan-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 85, 165, 0.4);
}

.plan-btn:hover::before {
  left: 100%;
}

.plan-card.featured .plan-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 8px 20px rgba(46, 189, 89, 0.3);
}

.plan-card.featured .plan-btn:hover {
  box-shadow: 0 12px 25px rgba(46, 189, 89, 0.4);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #003d7a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-container {
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-download .coming-soon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.cta-download .download-buttons-img {
  max-width: 350px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}

.cta-download .download-buttons-img:hover {
  transform: translateY(-5px);
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-logo .logo-icon {
  font-size: 1.5rem;
  margin-right: 0.4rem;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
}