@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #080b12;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --bg-panel-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Glows */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
}

body::before {
  top: -200px;
  left: -150px;
  background: var(--accent);
}

body::after {
  bottom: -300px;
  right: -150px;
  background: #1e3a8a; /* Deeper blue for variety */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-glass-hover);
}

/* Nav */
nav {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-links a.active {
  color: var(--accent-hover);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.hero-image-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Add a pseudo-element glow behind the hero image */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.15;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111827;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-glass);
  text-align: center;
  padding: 2rem;
}

.image-placeholder i {
  font-style: normal;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Feature Grid (Bento) */
.features {
  padding: 6rem 0;
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
}

.bento-card.large {
  grid-column: span 2;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

.bento-image-area {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  border: none;
}

.bento-card.large .bento-image-area {
  /* Removed fixed aspect ratio so images show fully */
}

/* Preset Cards */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.preset-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.preset-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.preset-cover {
  aspect-ratio: 1;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.preset-info {
  padding: 1.5rem;
}

.preset-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.preset-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.preset-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preset-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
}

/* Forms & Support Layout */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
}

.faq-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.faq-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
  font-size: 0.875rem;
  font-weight: 600;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease-out forwards;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--text-main);
}

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

/* Responsive */
@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-glass);
    z-index: 100;
  }

  .nav-links.nav-active {
    right: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .container {
    padding: 0 1.5rem;
  }
}

/* Brevo form fixes */
.input--hidden {
  display: none !important;
}

.sib-hide-loader-icon {
  display: none !important;
}
