/* ============================================================
   FIELDMOUSE — Main Stylesheet
   Brand: Blue #7BBDD4 | Charcoal #3D3F42 | Font: Montserrat + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue:      #7bbdd4;
  --blue-mid:  #5aa3bf;
  --blue-dk:   #2c6478;
  --blue-text: #1e6b8a;
  --charcoal:  #3d3f42;
  --charcoal-dk: #2a2c2f;
  --light:     #f4f7f9;
  --white:     #ffffff;
  --white-75:  rgba(255, 255, 255, 0.75);
  --grey:      #636569;
  --border:    #e2eaee;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  font-size: 16px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--charcoal);
  margin-left: 10px;
  letter-spacing: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--blue-dk);
}

.nav-cta {
  background: var(--blue);
  color: white;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--blue-mid);
}

/* Mobile hamburger (hidden by default) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer .nav-link {
  font-size: 13px;
}

.nav-drawer .nav-cta {
  align-self: flex-start;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 40px 80px;
}

/* Animated grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 189, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 189, 212, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridshift 20s linear infinite;
}

@keyframes gridshift {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 60px); }
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 189, 212, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(123, 189, 212, 0.35);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.hero-logomark {
  height: 80px;
  width: auto;
  margin: 0 auto 36px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--blue);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.80);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(123, 189, 212, 0.6), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}


/* ============================================================
   SHARED / UTILITY
   ============================================================ */

section {
  padding: 100px 40px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.8;
}

/* Buttons */
.btn-primary {
  background: var(--blue);
  color: white;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-white {
  background: white;
  color: var(--blue-dk);
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Tags */
.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-dk);
  background: rgba(123, 189, 212, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
}


/* ============================================================
   PLATFORM SECTION
   ============================================================ */

.what {
  background: var(--light);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.what-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.point-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.point-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.point-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.7;
}

/* ── APPLICATION CAPABILITY TABLES ── */
.what-app-tables {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
}

.app-table thead tr {
  background: var(--charcoal);
}

.app-table thead th {
  padding: 5px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  width: 80px;
}

.app-table thead th.app-table-heading {
  text-align: left;
  color: var(--blue);
  width: auto;
  letter-spacing: 2px;
}

.app-table tbody tr {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.app-table tbody tr:last-child {
  border-bottom: none;
}

.app-table tbody td {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--charcoal);
}

.app-table tbody td.check {
  text-align: center;
  color: var(--blue-dk);
  font-size: 14px;
  font-weight: 700;
  width: 80px;
}

.what-diagram {
  width: 100%;
  max-width: 440px;
  display: block;
}


/* ============================================================
   PRODUCTS SECTION
   ============================================================ */

.products {
  background: var(--white);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.products-header-lead {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey);
  max-width: 340px;
  line-height: 1.8;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.product-card {
  flex: 0 1 calc(33.333% - 16px);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(44, 100, 120, 0.12);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
}

.product-card-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.product-card-by {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}

.product-card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.75;
  margin-bottom: 28px;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */

.how {
  background: var(--charcoal);
}

.how .label {
  color: var(--blue);
}

.how .section-title {
  color: white;
}

.how .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: rgba(123, 189, 212, 0.2);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(123, 189, 212, 0.12);
  border: 1px solid rgba(123, 189, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.step p {
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}


/* ============================================================
   APPLICATIONS SECTION
   ============================================================ */

.apps {
  background: var(--white);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(44, 100, 120, 0.08);
}

.app-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(123, 189, 212, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.app-body p {
  font-size: 12px;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.65;
}


/* ============================================================
   SPECIFICATIONS SECTION
   ============================================================ */

.specs {
  background: var(--light);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

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

.spec-table thead th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 0 12px;
  text-align: left;
  border-bottom: 2px solid var(--blue);
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tbody td {
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.spec-table tbody td:first-child {
  font-weight: 600;
  color: var(--charcoal);
  width: 45%;
  padding-right: 16px;
}

.spec-table tbody td:last-child {
  color: var(--grey);
  font-weight: 300;
}

.spec-note {
  font-size: 11px;
  color: var(--grey);
  margin-top: 16px;
  line-height: 1.7;
}


/* ============================================================
   CTA STRIP
   ============================================================ */

.cta-strip {
  background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue-mid) 100%);
  padding: 80px 40px;
  text-align: center;
}

.cta-strip-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-strip h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-strip p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--charcoal-dk);
  padding: 60px 40px 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.55);
  max-width: 240px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.footer-abn {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================================
   RESPONSIVE — TABLET (max 860px)
   ============================================================ */

@media (max-width: 860px) {
  nav {
    padding: 0 20px;
  }

  /* Hide desktop links, show hamburger */
  .nav-right .nav-link,
  .nav-right .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  section {
    padding: 70px 24px;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .what-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Hide the diagram on tablet/mobile */
  .what-diagram-wrap {
    display: none;
  }

  .products-grid .product-card {
    flex: 0 1 calc(50% - 12px);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

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

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

  .footer-top {
    flex-direction: column;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 560px)
   ============================================================ */

@media (max-width: 560px) {
  .apps-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .products-grid .product-card {
    flex: 0 1 100%;
  }

  .hero-title {
    font-size: 36px;
  }
}
