/* Brikk Final Ship v12 - Brand System CSS */

/* CSS Variables - Design System */
:root {
  --bg: #0B1220;
  --surface: #111827;
  --border: #1E2A40;
  --text-primary: #E6F0FF;
  --text-secondary: #9FB3C8;
  --accent-teal: #18E3C8;
  --accent-purple: #6D5BFF;
  --gradient: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  
  /* Logo Sizing - Exact Specifications */
  --logo-desktop: 200px;
  --logo-tablet: 140px;
  --logo-mobile: 110px;
  --logo-footer: 140px;
  
  /* Header Heights */
  --header-desktop: 80px;
  --header-tablet: 72px;
  --header-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Logo Sizing - Enforced Specifications */
.brikk-logo {
  height: var(--logo-desktop);
  width: auto;
  object-fit: contain;
}

/* Icon Sizing - Consistent Specifications */
.accordion-chevron, .chevron-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
}

.feature-icon, .usecase-icon, .pricing-icon {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px;
  max-height: 64px;
}

.security-hero-icon {
  width: 120px !important;
  height: 120px !important;
  max-width: 28vw;
}

/* Responsive Icon Sizing */
@media (max-width: 1024px) {
  .feature-icon, .usecase-icon, .pricing-icon {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
  }
}

/* Icon sizing polish - NO layout regression */
.icon, .icon-xl, .feature-icon, .usecase-icon {
  width: clamp(28px, 3vw, 48px);
  height: clamp(28px, 3vw, 48px);
}

/* Big icons sizing per technical brief */
.card-icon, .feature-icon, .usecase-icon, .pricing-icon { 
  width: 64px; 
  height: 64px; 
}

@media (max-width: 1024px) { 
  .card-icon, .feature-icon, .usecase-icon, .pricing-icon { 
    width: 56px; 
    height: 56px; 
  } 
}

/* How Brikk Works bars - increased height */
.step-bar { 
  height: 12px; 
  border-radius: 999px; 
}

/* Price typography - clean .99 look */
.price { 
  display: flex; 
  align-items: flex-start; 
  gap: 4px; 
}
.price .amount { 
  font-size: 48px; 
  line-height: 1; 
}
.price .cents { 
  font-size: 22px; 
  line-height: 1; 
  vertical-align: super; 
}

@media (max-width: 1024px) {
  .brikk-logo {
    height: var(--logo-tablet);
  }
}

@media (max-width: 768px) {
  .brikk-logo {
    height: var(--logo-mobile);
  }
}

.brikk-logo-footer {
  height: var(--logo-footer);
  width: auto;
  object-fit: contain;
}

/* Typography */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Buttons */
.btn-primary {
  background: var(--gradient);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 227, 200, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 227, 200, 0.2);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-teal);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

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

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

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

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

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-desktop);
}

@media (max-width: 1024px) {
  .header {
    height: var(--header-tablet);
  }
}

@media (max-width: 768px) {
  .header {
    height: var(--header-mobile);
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Footer Styles */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: var(--border);
}

/* Accordion Styles */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background: var(--surface);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--border);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-content.active {
  padding: 1.5rem;
  max-height: 500px;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
*:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

