/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-dark-bg.png') center top / cover no-repeat;
  z-index: 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 100px);
  max-width: 1340px;
  padding: 0 40px;
  height: 80px;
  background: rgba(35, 55, 95, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 68px;
  transition: background .3s, top .3s, box-shadow .3s;
}
.nav.nav-scrolled {
  top: 16px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.nav-logo { height: 52px; }
.nav-menu { display: flex; gap: 50px; }
.nav-menu li { position: relative; }
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  opacity: .7;
  transition: opacity .2s;
  padding-bottom: 6px;
}
.nav-menu a.active {
  opacity: 1;
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3B82F6;
  border-radius: 1px;
}
.nav-menu a:hover { opacity: 1; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  margin: 0 auto;
  padding: 160px 88px 80px;
}
.badge {
  display: inline-block;
  padding: 8px 28px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
}
.hero h1 {
  margin-top: 28px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 960px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 914px;
}

/* ===== SHARED SECTION ===== */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px;
}
.section h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}
.section-sub {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.5;
  text-align: center;
}

/* ===== BLOG POSTS ===== */
.post-card-link { display: contents; }
.posts-section { background: #0f172a; padding-top: 0; }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-card {
  background: #000;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-img {
  height: 229px;
  margin: 24px 24px 0;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-img:not(:has(img))::after {
  content: '\ef42';
  font-family: 'Material Icons Outlined';
  font-size: 56px;
  color: rgba(59, 130, 246, .15);
}
.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-body h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}
.post-body p {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  color: #bababa;
  line-height: 1.6;
  flex: 1;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid #374151;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-author span {
  font-size: 18px;
  font-weight: 500;
  color: #bababa;
}

/* ===== WHY GUARDIUMONE ===== */
.why-section {
  background: #000;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.why-section > h2,
.why-section > .section-sub,
.why-section > .why-list {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}
.why-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-item {
  background: #1f2937;
  border: 1px solid #374151;
  border-bottom: none;
  overflow: hidden;
}
.why-item:first-child { border-radius: 12px 12px 0 0; }
.why-item:last-child { border-radius: 0 0 12px 12px; border-bottom: 1px solid #374151; }
.why-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  cursor: pointer;
  user-select: none;
}
.why-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #3b82f6;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.why-title {
  font-size: 16px;
  font-weight: 800;
  flex: 1;
}
.why-chevron {
  font-size: 24px;
  color: #9ca3af;
  transition: transform .25s;
}
.why-item.expanded .why-chevron { transform: rotate(180deg); }
.why-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.why-item.expanded .why-item-body { max-height: 120px; }
.why-item-body p {
  padding: 12px 30px 24px 86px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  background: #000;
  line-height: 1.5;
}

/* ============================================
   TABLET — max-width: 1024px
   ============================================ */
@media (max-width: 1024px) {
  .nav {
    top: 16px;
    width: calc(100% - 40px);
    padding: 0 24px;
    height: 64px;
    border-radius: 32px;
  }
  .nav.nav-scrolled { top: 10px; }
  .nav-logo { height: 40px; }
  .nav-hamburger { display: flex; }
  .nav-menu { display: none; }

  .hero { min-height: auto; }
  .hero-content { padding: 120px 40px 60px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 15px; }

  .section { padding: 48px 40px; }
  .section h2 { font-size: 24px; }
  .section-sub { font-size: 15px; }

  .post-body h3 { font-size: 22px; }
  .post-body p { font-size: 16px; }

  .why-section > h2,
  .why-section > .section-sub,
  .why-section > .why-list {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ============================================
   MOBILE — max-width: 600px
   ============================================ */
@media (max-width: 600px) {
  .hero-content { padding: 100px 20px 40px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 14px; }
  .badge { font-size: 11px; padding: 6px 12px; }

  .section { padding: 40px 20px; }
  .section h2 { font-size: 20px; }
  .section-sub { font-size: 13px; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-img { height: 180px; margin: 16px 16px 0; }
  .post-img::after { font-size: 40px; }
  .post-body { padding: 16px; }
  .post-body h3 { font-size: 20px; }
  .post-body p { font-size: 15px; }
  .author-avatar { width: 40px; height: 40px; }
  .post-author span { font-size: 15px; }

  .why-section > h2,
  .why-section > .section-sub,
  .why-section > .why-list {
    padding-left: 20px;
    padding-right: 20px;
  }
  .why-item-header { padding: 16px 20px; gap: 12px; }
  .why-icon { width: 20px; height: 20px; }
  .why-title { font-size: 14px; }
  .why-item-body p { padding: 8px 20px 20px 64px; font-size: 13px; }
}

/* ===== MOBILE FULL-SCREEN MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(to bottom, #0a0a0a 0%, #111111 60%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}
.mobile-menu-header .nav-logo {
  height: 44px;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity .2s;
}
.mobile-menu-close:hover {
  opacity: 1;
}
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-links li {
  text-align: center;
}
.mobile-menu-links a {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 8px;
  transition: color .2s;
}
.mobile-menu-links a.active {
  color: #3B82F6;
  font-weight: 600;
}
.mobile-menu-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #3B82F6;
  border-radius: 1px;
}

@media (min-width: 1025px) {
  .mobile-menu-overlay { display: none; }
}

/* ===== FOOTER ===== */
.site-footer { background: #000; border-top: 1px solid #1f2937; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 60px 80px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid #1f2937; }
.footer-brand { max-width: 360px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #9ca3af; line-height: 1.6; }
.footer-links { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #9ca3af; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.footer-bottom span { font-size: 13px; color: #4b5563; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: #4b5563; transition: color .2s; }
.footer-legal a:hover { color: #9ca3af; }
@media (max-width: 600px) {
  .footer-inner { padding: 40px 20px 28px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
