/* 
  AN Media - Global Stylesheet
  Theme: Cold Luxury & Cobalt
  Aesthetic Dial: VARIANCE: 7 | MOTION: 7 | DENSITY: 3.5
*/

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

:root {
  /* Colors */
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-tertiary: #1a1a1f;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent: #2d5bff;
  --accent-rgb: 45, 91, 255;
  --accent-glow: rgba(45, 91, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --glass-bg: rgba(9, 9, 11, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  
  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1320px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.section {
  padding: 8rem 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Responsive Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-12, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-12 > * {
    grid-column: auto !important;
  }
}

.flex {
  display: flex;
}

/* Button & Interactive Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #406cff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 91, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-scrolled {
  height: 70px;
  background-color: rgba(9, 9, 11, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.logo svg {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-phone {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-phone:hover {
  color: var(--accent);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Canvas background */
.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}

#particle-canvas {
  width: 100%;
  height: 100%;
}

/* Bento Grid */
.bento-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-cell {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(45, 91, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.bento-cell:hover::before {
  opacity: 1;
}

.bento-cell:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bento-cell-large {
  grid-column: span 8;
}

.bento-cell-medium {
  grid-column: span 6;
}

.bento-cell-small {
  grid-column: span 4;
}

/* Card Visuals (Mock UI / SVG representation) */
.card-visual {
  width: 100%;
  height: 140px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.15;
}

/* Footer */
.footer {
  background-color: #050506;
  border-top: 1px solid var(--border);
  padding: 6rem 0 3rem 0;
  font-family: var(--font-body);
}

.footer-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  grid-column: span 4;
}

.footer-links {
  grid-column: span 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-contact {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bento-cell-large { grid-column: span 12; }
  .bento-cell-medium { grid-column: span 12; }
  .bento-cell-small { grid-column: span 6; }
  .footer-brand { grid-column: span 6; }
  .footer-contact { grid-column: span 6; }
  .footer-links { grid-column: span 3; }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .header {
    height: 70px;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-cta {
    display: none;
  }
  
  .bento-cell-small {
    grid-column: span 12;
  }
  
  .footer-brand, .footer-contact, .footer-links {
    grid-column: span 12;
  }
  
  .footer-grid {
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.15);
}

.form-control::placeholder {
  color: #52525b;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.accordion-item:hover .accordion-title {
  color: var(--accent);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
  padding-top: 1rem;
  font-size: 0.98rem;
}

/* Page Header */
.page-header {
  padding-top: 12rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Custom visual layout elements */
.monogram-large {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  opacity: 0.03;
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  pointer-events: none;
}

/* TL;DR / AEO Blockquote */
.tldr-blockquote {
  border-left: 4px solid var(--accent);
  background-color: rgba(45, 91, 255, 0.04);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-top: 1px solid rgba(45, 91, 255, 0.12);
  border-right: 1px solid rgba(45, 91, 255, 0.12);
  border-bottom: 1px solid rgba(45, 91, 255, 0.12);
  max-width: 720px;
}

.tldr-blockquote .tldr-header {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.tldr-blockquote p {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.95rem;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 44%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 28%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 28%;
}

.comparison-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 1.4rem 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Highlight AN Media column */
.comparison-table th:nth-child(2) {
  background-color: rgba(45, 91, 255, 0.12);
  color: #93b4ff;
  border-bottom-color: rgba(45, 91, 255, 0.3);
}

.comparison-table td:nth-child(2) {
  background-color: rgba(45, 91, 255, 0.05);
  font-weight: 500;
}

/* Row hover */
.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Alternate row striping */
.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

.comparison-table tbody tr:nth-child(even) td:nth-child(2) {
  background-color: rgba(45, 91, 255, 0.07);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table td:not(:first-child) {
  text-align: left;
}

.comparison-table th:not(:first-child) {
  text-align: left;
}

.comparison-table .badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #34d399;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-table .badge-no {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f87171;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Dropdown navigation styles */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0 !important;
  width: 220px;
  list-style: none !important;
  list-style-type: none !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 0 !important;
}

.dropdown-menu li {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  font-family: var(--font-display);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  text-align: left;
}

.dropdown-menu li a:hover {
  color: #fff !important;
  background-color: rgba(45, 91, 255, 0.1);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile responsive dropdown menu */
@media (max-width: 768px) {
  .nav-item-dropdown .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0 0 1.2rem !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  
  .nav-item-dropdown .dropdown-menu li a {
    padding: 0.5rem 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
  }

  .nav-item-dropdown .dropdown-menu li a:hover {
    color: #fff !important;
    background: transparent !important;
  }
}


