/* ============================================
   AquaOS Website — Deep Marine Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --abyssal: #0F172A;
  --cyan: #0EA5E9;
  --green: #10B981;
  --orange: #F59E0B;
  --red: #EF4444;
  --surface: #1E293B;
  --text: #F8FAFC;
  --subtext: #94A3B8;
  --cyan-glow: rgba(14, 165, 233, 0.2);
  --cyan-border: rgba(14, 165, 233, 0.12);
}

/* --- 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;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10001;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--cyan);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--abyssal);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
  color: var(--subtext);
  line-height: 1.7;
}

.cyan { color: var(--cyan); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--cyan-border);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-brand span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

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

.nav-links a {
  color: var(--subtext);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--cyan);
}

.nav-links a.active-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.98);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--cyan);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cyan);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  opacity: 1;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--subtext);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  transform: scale(1.02);
  border-color: var(--cyan);
  color: var(--cyan);
  opacity: 1;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #0F172A 0%, #0c2d4a 50%, #0F172A 100%);
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--subtext);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.stats-bar {
  display: inline-flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--cyan-glow);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 40px;
}

.stat-item {
  padding: 16px 32px;
  text-align: center;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--cyan-border);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--subtext);
  display: block;
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Value Cards --- */
.value-cards {
  padding: 100px 24px;
  background: var(--abyssal);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--cyan-glow);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.value-card p {
  font-size: 15px;
}

/* --- Trust Strip --- */
.trust-strip {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--cyan-border);
  border-bottom: 1px solid var(--cyan-border);
}

.trust-strip p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* --- Features Section --- */
.features {
  padding: 100px 24px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cyan-glow);
}

.feature-image img {
  width: 100%;
  border-radius: 12px;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
}

/* --- Shop Section --- */
.shop {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--abyssal) 0%, #0c1a2e 50%, var(--abyssal) 100%);
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto 64px;
  background: var(--surface);
  border: 1px solid var(--cyan-glow);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.pricing-card .card-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 20px;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.price {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 4px;
}

.price-sub {
  color: var(--subtext);
  font-size: 15px;
  margin-bottom: 32px;
}

.checklist {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
}

.checklist li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green);
}

.pricing-card .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 18px;
}

.pricing-note {
  color: var(--subtext);
  font-size: 13px;
  margin-top: 16px;
}

/* Comparison table */
.comparison {
  max-width: 700px;
  margin: 0 auto;
}

.comparison h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--cyan-border);
  font-size: 15px;
}

.comparison th {
  color: var(--subtext);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison td:nth-child(2) {
  color: var(--cyan);
  font-weight: 600;
}

.comparison td:nth-child(3) {
  color: var(--subtext);
}

/* --- Contact Section --- */
.contact {
  padding: 100px 24px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--subtext);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

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

.contact-form .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: none;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.response-time {
  text-align: center;
  color: var(--subtext);
  font-size: 14px;
  margin-top: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--green);
  margin-bottom: 20px;
}

.form-success h3 {
  color: var(--green);
  margin-bottom: 8px;
}

.form-error {
  display: none;
  color: var(--red);
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

.form-error.show {
  display: block;
}

/* --- Footer --- */
.footer {
  padding: 48px 24px;
  background: var(--abyssal);
  border-top: 1px solid var(--cyan-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-brand span {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.footer-center {
  text-align: center;
}

.footer-center p {
  font-size: 13px;
  color: var(--subtext);
}

.footer-center .tagline {
  font-style: italic;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--subtext);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* --- Thank You Page --- */
.thankyou {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.thankyou-content {
  max-width: 500px;
}

.thankyou-content img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin: 0 auto 32px;
}

.thankyou-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.thankyou-content > p {
  margin-bottom: 32px;
}

.thankyou-content .btn-primary {
  margin-bottom: 24px;
}

.version-info {
  color: var(--subtext);
  font-size: 13px;
  margin-bottom: 16px;
}

.thankyou-note {
  color: var(--subtext);
  font-size: 13px;
  font-style: italic;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive: Tablet (768-1024px) --- */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row-reverse {
    gap: 40px;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat-item {
    padding: 12px 24px;
  }
}

/* --- Responsive: Mobile (<768px) --- */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }

  .navbar {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }


  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .stats-bar {
    flex-direction: column;
    width: 100%;
  }

  .stat-item {
    padding: 12px 20px;
  }

  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--cyan-border);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .value-cards {
    padding: 60px 16px;
  }

  .features {
    padding: 60px 16px;
  }

  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .shop {
    padding: 60px 16px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .price {
    font-size: 44px;
  }

  .comparison table {
    font-size: 14px;
  }

  .comparison th,
  .comparison td {
    padding: 12px 12px;
  }

  .contact {
    padding: 60px 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.feature-image img {
  cursor: zoom-in;
}

/* ============================================
   Focus Visible — Keyboard Navigation
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Specific overrides for better appearance */
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.nav-links a:focus-visible {
  outline-offset: 6px;
}

.feature-image img:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.mobile-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ============================================
   Reduced Motion — Respect User Preference
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .value-card {
    transition: none;
  }

  .value-card:hover {
    transform: none;
  }

  .btn-primary,
  .btn-outline {
    transition: none;
  }

  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }

  .navbar {
    transition: none;
  }

  .hamburger span {
    transition: none;
  }

  a {
    transition: none;
  }

  .lightbox-close {
    transition: none;
  }
}
