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

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
  font-weight: 600;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Global */
:root {
  --bg: #000000;
  --surface: #111114;
  --text: #e8e8ea;
  --muted: #a6a6ad;
  --primary: #00c8ff;
  --primary-600: #0099cc;
  --ring: #2b2b33;
  --border: #1b1b20;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; border-radius: 14px; }

.container { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip Link Focus */
.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
  background: color-mix(in oklab, var(--bg), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand { 
  font-weight: 800; 
  letter-spacing: 0.5px; 
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 5px;
}

.nav-prism {
  margin-right: 0;
}
.nav { display: flex; gap: 14px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-width: 60px;
  text-align: center;
  box-sizing: border-box;
  transition: none;
  outline: none;
}

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-media { border: 1px solid var(--border); background: #0f0f13; border-radius: 16px; padding: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.hero-media.small { background: #000; padding: 0; overflow: hidden; max-width: 450px; }
.hero-media.small img { width: 100%; max-width: none; margin: 0; display: block; border-radius: inherit; }
.hero-content h1 { margin: 0 0 10px; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.15; }
.hero-content p { margin: 0 0 18px; color: var(--muted); }

/* Compact sections: reduced spacing and smaller media to fit more on screen */
.hero.compact { padding: 24px 0 32px; }
.hero.compact:not(:first-child) { border-top: 1px solid var(--border); }
.hero.compact .hero-grid { gap: 18px; }
.hero.compact .hero-content h1 { font-size: clamp(20px, 2vw, 28px); }
.hero.compact .hero-content p { margin: 0 0 10px; font-size: 0.95rem; }
.hero.compact .feature-list { gap: 6px; margin: 0 0 12px; }
.hero.compact .feature-desc { font-size: 0.9rem; }
.hero.compact .hero-media.small { max-width: 400px; margin-inline: auto; }
.hero.compact .hero-media.small img { width: 100%; max-width: none; height: auto; }

.feature-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.feature-list li { display: grid; gap: 2px; padding: 12px 14px; background: transparent; border: 1px solid transparent; border-radius: 12px; transition: none !important; }
.feature-title { font-weight: 600; }
.feature-desc { color: var(--muted); font-size: 0.95rem; }

.cta-row { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 12px 16px; min-height: 44px; border-radius: 12px; text-decoration: none; border: 1px solid var(--ring); transition: .2s ease; }
.btn.primary { background: var(--primary); color: white; border-color: transparent; box-shadow: 0 10px 24px rgba(124,92,255,.35) }
.btn.primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn.ghost { background: #121219; color: var(--text); }
.btn.ghost:hover { background: #161621; }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 40px 0; 
  color: var(--muted); 
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted);
  order: 2;
  text-align: center;
  width: 100%;
}

.social-links {
  display: flex;
  gap: 1rem;
  order: 1;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: var(--muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Instagram specific hover effect */
.social-links a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

/* Email icon hover effect */
.social-links a.email:hover {
  background: #ea4335;
  color: white;
  border-color: transparent;
}

/* Team specific hover effect */
.social-links a.team:hover {
  background: #4285f4;
  color: white;
  border-color: transparent;
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .footer-content {
    flex-wrap: nowrap;
  }
  
  .copyright {
    order: 1;
    text-align: left;
    width: auto;
  }
  
  .social-links {
    order: 2;
    margin: 0;
  }
}

/* Enhanced Animations */
* {
  transition: all 0.2s ease;
}

.hero-media {
  transition: all 0.3s ease;
}

.hero-media:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0,0,0,.5);
}

.feature-list li {
  transition: all 0.2s ease;
}

/* Feature list hover effects removed */

.btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(124,92,255,.4);
}

/* Pro Features Special Styling */
.pro-features {
  border: 2px solid #FFD700;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.pro-features .hero-content h1 {
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  max-width: 300px;
  background: rgba(0, 0, 0, 0.8);
  border-left: 3px solid #00c8ff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

.modal-content {
  padding: 15px;
}

.close {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #aaa;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 5px;
}

.close:hover,
.close:focus {
  color: #fff;
}

.modal-body {
  padding: 0;
  text-align: left;
}

.modal-body h2 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body h2::before {
  content: '⚠️';
  font-size: 1.2em;
}

.modal-body p {
  color: #ccc;
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.modal-link {
  display: inline-block;
  background: #00c8ff;
  color: #000 !important;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
}

.modal-link:hover {
  background: #00b4e6;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Image lazy loading and optimization */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Responsive */
/* Large PC screens */
@media (min-width: 1200px) {
  .hero-media.small { max-width: 500px; }
  .hero.compact .hero-media.small { max-width: 350px; }
  .hero-grid { gap: 32px; }
  .container { width: min(1200px, calc(100% - 48px)); }
}

/* Standard PC screens */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-media.small { max-width: 450px; }
  .hero.compact .hero-media.small { max-width: 320px; }
  .container { width: min(1100px, calc(100% - 40px)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 1; }
  .hero-content { order: 2; }
  .cta-row { flex-wrap: wrap; }
  .hero-media.small { max-width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(1100px, calc(100% - 20px)); }
  .hero { padding: 36px 0 52px; }
  .nav { gap: 8px; overflow-x: auto; scrollbar-width: thin; }
  .nav a { white-space: nowrap; }
  .feature-list { gap: 10px; }
  .feature-list li { padding: 10px 12px; }
  .hero-content { text-align: center; }
  .hero-media.small { max-width: 280px; }
  .hero.compact .hero-media.small { max-width: 280px; }

  /* Index page specific mobile styles */
  .hero.compact .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  .hero.compact .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero.compact .feature-list {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .hero.compact .feature-list li {
    padding: 0.75rem 1rem;
  }
  .hero.compact .feature-title {
    font-size: 0.95rem;
  }
  .hero.compact .feature-desc {
    font-size: 0.9rem;
  }
  .cta-row {
    justify-content: center;
  }
  .modal-link {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 14px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
  }
  .nav a {
    min-width: 0;
    padding: 4px 6px;
    font-size: 0.9rem;
  }
}

/* Navigation Prism */
.nav-prism {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.prism {
  position: relative;
  width: 24px;
  height: 24px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  animation: rotate 15s linear infinite;
  -webkit-animation: rotate 15s linear infinite;
  -moz-animation: rotate 15s linear infinite;
}

.face {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(0, 200, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.prism:hover .face {
  background: rgba(0, 200, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Front and back */
.front { transform: translateZ(12px); }
.back { transform: rotateY(180deg) translateZ(12px); }

/* Right and left */
.right { transform: rotateY(90deg) translateZ(12px); }
.left { transform: rotateY(-90deg) translateZ(12px); }

/* Top and bottom */
.top { transform: rotateX(90deg) translateZ(12px); }
.bottom { transform: rotateX(-90deg) translateZ(12px); }

@-webkit-keyframes rotate {
  from { -webkit-transform: rotateX(0deg) rotateY(0deg); }
  to { -webkit-transform: rotateX(360deg) rotateY(360deg); }
}
@-moz-keyframes rotate {
  from { -moz-transform: rotateX(0deg) rotateY(0deg); }
  to { -moz-transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes rotate {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.faq-list {
  text-align: center;
}

.faq-item {
  margin-bottom: 20px;
}

.accordion-content {
  display: none;
}

h3 {
  cursor: pointer;
}

/* Privacy link responsive styles */
.privacy-link .short-text { 
  display: none; 
}

/* Show short text and hide full text on small screens */
@media (max-width: 400px) {
  .privacy-link .full-text { 
    display: none; 
  }
  .privacy-link .short-text { 
    display: inline; 
    white-space: nowrap;
  }
}
