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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0a;
  overflow-x: hidden;
}

/* Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('assets/background.png') center center / cover no-repeat,
    radial-gradient(ellipse at 30% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ======================================================= */
/* DYNAMIC HEADER                                          */
/* ======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent; /* Start with transparent border */
}

.main-header.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.header-logo {
  width: 28px;
  height: 28px;
}

.header-brand span {
  font-weight: 600;
  font-size: 1.125rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ======================================================= */
/* FINAL SOLUTION: HEADER APP STORE BUTTON (BULLETPROOF)   */
/* ======================================================= */
a.app-store-btn-header {
    display: block;
    width: 148px;
    height: 44px;
    background-image: url('assets/app-store-badge.svg');
    /* === POPRAVEK JE TUKAJ === */
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease-in-out;
    text-indent: -9999px; 
    flex-shrink: 0;
}

a.app-store-btn-header:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 1rem 4rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Buttons Styling */
.hero-cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ======================================================= */
/* FINAL SOLUTION: HERO APP STORE BUTTON (BULLETPROOF)     */
/* ======================================================= */
a.app-store-btn-hero {
    display: block;
    width: 180px;
    height: 60px;
    background-image: url('assets/app-store-badge.svg');
    /* === POPRAVEK JE TUKAJ === */
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
    text-indent: -9999px;
}

a.app-store-btn-hero:hover {
    transform: scale(1.05);
}

/* NEW, IMPACTFUL "TRY IT OUT FOR FREE" BUTTON */
.free-trial-btn {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  height: 60px;
  line-height: 28px;
  transition: all 0.2s ease;
  border: 1px solid #2563eb;
}

.free-trial-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

.social-proof-hero {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.social-proof-hero .stars {
  color: #facc15;
  font-size: 1.25rem;
}


/* Sections */
.screenshots, .features, .reviews, .final-cta, .newsletter {
  padding: 6rem 0;
}
.newsletter {
    padding-bottom: 6rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Screenshots Section */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.screenshot-card {
  text-align: center;
}
.screenshot-card img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.screenshot-card figcaption {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 300px;
  margin: 0 auto;
}
.screenshot-card figcaption strong {
  color: #fff;
  font-weight: 600;
}


/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feature-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}
.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}
.feature-description {
  color: rgba(255, 255, 255, 0.7);
}


/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-author {
  font-weight: 600;
  color: #2563eb;
  text-align: right;
}

/* Final CTA */
.final-cta {
  text-align: center;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta-subtitle {
  margin-bottom: 2rem;
}


/* Newsletter Section */
.form-container {
  max-width: 550px;
  margin: 0 auto;
}
.newsletter-form .form-group {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  border-radius: 12px;
  outline: none;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.submit-button {
  padding: 1rem 2rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.submit-button:hover {
  background: #1d4ed8;
}
.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  width: 24px;
  height: 24px;
}
.footer-brand span {
  font-weight: 600;
  color: #2563eb;
}
.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}


/* Messages & Toasts */
#message-container {
  margin-bottom: 1rem;
  min-height: 24px;
}
.message {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
}
.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}


/* Responsive Design */
@media (max-width: 992px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .web-app-notice {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .screenshots, .features, .reviews, .final-cta, .newsletter {
        padding: 4rem 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ======================================================= */
/* FINAL POLISH: CENTERING THE LAST CTA                    */
/* ======================================================= */

.final-cta .app-store-btn-hero {
  /* This is the command that forces the button to the center */
  margin-left: auto;
  margin-right: auto;
  /* Adds some space below the button */
  margin-bottom: 1rem; 
}

/* We also need to re-style the "It's free to download" text below it */
.final-cta .free-badge {
    display: block; /* Ensures it takes its own line */
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ======================================================= */
/* NEW SOCIAL MEDIA SECTION STYLES                         */
/* ======================================================= */

.social-media {
  padding: 6rem 0;
}

.social-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.social-link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between icon and text */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 3rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-card:hover {
  transform: translateY(-10px);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
}

.social-link-card img {
  width: 60px;
  height: 60px;
  object-fit: contain; /* Ensures logo isn't stretched */
}

.social-link-card span {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
}