:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-card: rgba(22, 22, 28, 0.7);
  --bg-card-hover: rgba(30, 30, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 45, 85, 0.4);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  
  --accent-red: #ff2d55;
  --accent-red-hover: #e02447;
  --accent-yellow: #ffcc00;
  --accent-graphite: #1c1c1e;
  --accent-white: #ffffff;
  
  --aurora-1: rgba(255, 45, 85, 0.25);
  --aurora-2: rgba(255, 204, 0, 0.15);
  --aurora-3: rgba(140, 40, 255, 0.15);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Aurora Backdrop Effect */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  animation: floatAurora 18s ease-in-out infinite alternate;
  opacity: 0.8;
}

.aurora-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--aurora-1);
  top: -100px;
  left: 30%;
}

.aurora-blob-2 {
  width: 450px;
  height: 450px;
  background: var(--aurora-2);
  top: 200px;
  right: -50px;
  animation-delay: -5s;
}

.aurora-blob-3 {
  width: 600px;
  height: 600px;
  background: var(--aurora-3);
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--accent-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-yellow); }

/* Slim Header (Non-sticky, responsive) */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-white);
  letter-spacing: -0.03em;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-white);
}

.header-cta {
  background: var(--accent-red);
  color: var(--accent-white);
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-cta:hover {
  background: var(--accent-red-hover);
  color: var(--accent-white);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
}

/* Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 850px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.3);
  color: var(--accent-red);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.badge-yellow {
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.3);
  color: var(--accent-yellow);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

/* Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.tool-card, .blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.tool-card:hover, .blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tool-card:hover .card-img, .blog-card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-title {
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--accent-graphite);
  color: var(--accent-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--accent-red);
  color: var(--accent-white);
  border-color: var(--accent-red);
}

/* Detail Pages */
.detail-header {
  padding: 2.5rem 0 1.5rem;
}

.detail-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  backdrop-filter: blur(12px);
}

.detail-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin: 1.5rem 0 2rem;
}

.meta-bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: bold;
}

.action-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 45, 85, 0.05);
  border: 1px solid rgba(255, 45, 85, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  padding: 0.8rem 1.6rem;
  background: var(--accent-red);
  color: var(--accent-white);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  color: var(--accent-white);
}

/* Legal Pages */
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 1.5rem;
}

.legal-box h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  color: var(--accent-yellow);
}

.legal-box p, .legal-box ul {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-box ul {
  padding-left: 1.5rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

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

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

/* Unified Footer (Mandatory across all pages) */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-white);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Cookie Consent Popup */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-hover);
  border-radius: 14px;
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  display: none;
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cookie-accept {
  background: var(--accent-red);
  color: var(--accent-white);
}

.btn-cookie-decline {
  background: var(--accent-graphite);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }
}