/* ============================================
   LociConnect Brochure — Styles
   Inspired by ailurustech.com.au
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette — matches LociConnect primary indigo */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  /* Accent */
  --accent-400: #e879f9;
  --accent-500: #d946ef;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0a0e1a;

  /* Spacing */
  --section-py: 6rem;
  --container-px: 1.5rem;
  --container-max: 1200px;

  /* Radius */
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  /* Transitions */
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-950);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--gray-200);
  border: 1.5px solid var(--gray-600);
}

.btn--outline:hover {
  border-color: var(--primary-400);
  color: var(--primary-300);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.nav__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: 0.5rem;
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: #fff;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-300);
  cursor: pointer;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--container-px) 1.5rem;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-300);
}

.nav__mobile.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: var(--gray-950);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(217, 70, 239, 0.08), transparent);
}

.hero__inner {
  position: relative;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-400);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-300), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-py) 0;
  background: var(--gray-950);
}

.section--dark {
  background: var(--gray-900);
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-400);
  text-align: center;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  margin-bottom: 1.25rem;
}

.section__subtitle {
  max-width: 580px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.7;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(217, 70, 239, 0.1));
  color: var(--primary-400);
  margin-bottom: 1.25rem;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: 0.925rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MODULES GRID
   ============================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.module-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.module-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.module-card__number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-400);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.module-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.module-card__text {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-300);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ARCHITECTURE GRID
   ============================================ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.arch-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.arch-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-300);
  margin-bottom: 1rem;
}

.arch-card__list {
  list-style: none;
}

.arch-card__list li {
  font-size: 0.9rem;
  color: var(--gray-400);
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.arch-card__list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ARCHITECTURE DIAGRAM
   ============================================ */
.arch-diagram {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.arch-diagram img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   RESPONSIVE DESIGN SECTION
   ============================================ */
.responsive-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.responsive-split__text {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.responsive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.responsive-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.responsive-list__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
}

.responsive-list li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.responsive-list li span {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ---------- Device Mockups ---------- */
.device-mockups {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-height: 380px;
  padding-bottom: 1rem;
}

/* Desktop */
.device--desktop {
  position: relative;
  z-index: 1;
}

.device__bezel {
  background: #1a1d2e;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px 10px 0 0;
  padding: 6px 6px 0;
  width: 280px;
}

.device__dots {
  display: flex;
  gap: 4px;
  padding: 4px 6px 6px;
}

.device__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.device__screen {
  background: var(--gray-950);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.device--desktop .device__screen {
  height: 170px;
}

.device__stand {
  width: 80px;
  height: 20px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #1a1d2e, #12151f);
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

.device__stand::after {
  content: '';
  display: block;
  width: 120px;
  height: 6px;
  background: #1a1d2e;
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  margin: 0 auto;
  position: relative;
  left: -20px;
}

.device__screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.5rem;
  color: var(--gray-600);
  min-height: 100%;
}

.device__screenshot-placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gray-600);
}

/* Tablet */
.device--tablet {
  position: relative;
  z-index: 2;
  margin-left: -30px;
  margin-bottom: -10px;
}

.device__bezel--tablet {
  background: #1a1d2e;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  width: 140px;
}

.device--tablet .device__screen {
  height: 180px;
  border-radius: 6px;
}

/* Phone */
.device--phone {
  position: relative;
  z-index: 3;
  margin-left: -20px;
  margin-bottom: -10px;
}

.device__bezel--phone {
  background: #1a1d2e;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 8px 5px;
  width: 80px;
  position: relative;
}

.device__notch {
  width: 36px;
  height: 5px;
  background: #1a1d2e;
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  margin: 0 auto 4px;
}

.device--phone .device__screen {
  height: 140px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .responsive-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .responsive-split__content {
    order: 1;
  }

  .responsive-split__devices {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .section__eyebrow[style],
  .section__title[style] {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .device--desktop .device__bezel {
    width: 200px;
  }
  .device--desktop .device__screen {
    height: 120px;
  }
  .device--tablet .device__bezel--tablet {
    width: 110px;
  }
  .device--tablet .device__screen {
    height: 140px;
  }
  .device--phone .device__bezel--phone {
    width: 65px;
  }
  .device--phone .device__screen {
    height: 110px;
  }
}

/* ============================================
   SCREENSHOT PLACEHOLDERS
   ============================================ */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: rgba(255,255,255,0.02);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screenshot-placeholder--wide {
  aspect-ratio: 2 / 1;
}

.screenshot-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.75rem;
  color: var(--gray-600);
}

.screenshot-placeholder__inner p {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.screenshot-placeholder__inner span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ============================================
   SCREENSHOTS GRID
   ============================================ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.screenshot-item__label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.screenshot-item__desc {
  font-size: 0.875rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-box__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-box__text {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .cta-form__row {
    grid-template-columns: 1fr;
  }
}

.cta-form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.cta-form__input::placeholder {
  color: var(--gray-500);
}

.cta-form__input:focus {
  border-color: var(--primary-500);
}

.cta-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--primary-300);
}

.cta-form__success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.cta-form__success p {
  color: var(--gray-400);
}

.cta-form__error {
  font-size: 0.9rem;
  color: #f87171;
  text-align: center;
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--gray-950);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4rem;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer__bottom a {
  color: var(--gray-400);
}

.footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer__links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
