/* ==========================================
ACUSTATIX® | ACHIEVEMENTINSIGHTS®
STANDARD SCROLLING & FOOTER STYLES
========================================== */

:root {
  --font-heading: 'Futura PT', 'Futura', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-bg: #ffffff;
  --color-bg-subtle: #ffffff;
  --color-navy: #0b1f3a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-accent-orange: #e66025;

  --nav-height: 80px;
  --max-width: 1280px;
}

/* ==========================================
RESET & LAYOUT ENFORCEMENT
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg);
  color: var(--color-navy);
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ==========================================
NAVIGATION
========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 0.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: .08em;
  transition: opacity .25s ease;
}

.nav-link:hover {
  opacity: .6;
}

.sign-in-link {
  text-decoration: none;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 0.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.sign-in-link:hover {
  opacity: .6;
}

/* ==========================================
SLIDE-DECK ENGINE & SECTIONS
========================================== */

.slides-wrapper {
  margin-top: var(--nav-height);
  flex: 1;
}

.slide {
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  padding: 3rem 0;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* ==========================================
SECTION HEADINGS
========================================== */

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #1f6feb;
  margin: 0.75rem auto 0;
}

/* ==========================================
SLIDE 1: HERO
========================================== */

.hero-section {
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 3rem 0 2rem;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 0 0 42%;
  min-width: 440px;
}

.hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.15;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent-orange);
  margin-top: 1.5rem;
  border-radius: 2px;
}

.hero-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 380px;
  white-space: normal;
}

.hero-media {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(480px, 54vw, 920px);
  z-index: 1;
  pointer-events: none;
}

.device-frame {
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
SLIDE 2: SOLUTIONS
========================================== */

.solutions-section {
  background: #ffffff;
}

.grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.solution-card {
  padding: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 700;
  margin-bottom: .75rem;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
}

/* ==========================================
SLIDE 3: PLATFORM
========================================== */

.platform-section {
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.platform-section .section-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 1400px;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 3rem 3rem 2rem 2rem;
  box-sizing: border-box;
}

.platform-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
  margin-top: 1rem;
}

.platform-text {
  position: relative;
  z-index: 10;
  flex: 0 0 42%;
  min-width: 440px;
}

.platform-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.platform-text p {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  max-width: 420px;
}

.platform-graphic-frame {
  position: absolute;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  width: clamp(460px, 50vw, 860px);
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
  z-index: 1;
}

.platform-crop-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
SLIDE 4: ABOUT & CONTACT
========================================== */

.about-section {
  background: #ffffff;
}

.centered-content {
  max-width: 800px;
  text-align: center;
}

.about-statement {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-block {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--color-text-muted);
}

.contact-email {
  text-decoration: none;
  color: var(--color-navy);
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-email:hover {
  opacity: .6;
}

/* ==========================================
GLOBAL FOOTER & SINGLE-LINE LINKS
========================================== */

footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* ==========================================
RESPONSIVE FALLBACK
========================================== */

@media (max-height: 700px), (max-width: 850px) {
  .slide {
    height: auto;
    min-height: auto;
    padding: 3rem 0;
  }

  .grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container, .platform-card {
    flex-direction: column;
    text-align: center;
  }

  .hero-media, .platform-graphic-frame {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 2rem;
  }

  .footer-links {
    gap: 1.25rem;
  }
}
