/* =========================================================
   ConveyCalc V1.1
   Global Design System
   ========================================================= */

/* =========================
   Reset
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   Global Variables
   ========================= */

:root {
  /* Background */
  --bg: #08111f;
  --bg-light: #101b2e;

  /* Surface */
  --card: #ffffff;
  --surface: #f8fafc;

  /* Text */
  --text: #172033;
  --text-light: #64748b;
  --white: #ffffff;

  /* Brand */
  --primary: #28a8ff;
  --primary-dark: #0284c7;
  --secondary: #5eead4;

  /* Border */
  --border: #e2e8f0;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadow */
  --shadow-card: 0 15px 40px rgba(15, 23, 42, 0.08);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* =========================
   Body
   ========================= */

body {
  font-family: Inter, Arial, Helvetica, sans-serif;

  color: var(--text);

  background: var(--surface);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

/* =========================
   Links
   ========================= */

a {
  text-decoration: none;

  color: inherit;
}

/* =========================
   Images
   ========================= */

img {
  max-width: 100%;

  display: block;
}

/* =========================
   Container
   ========================= */

.container {
  width: min(1200px, 90%);

  margin: 0 auto;
}

/* =========================
   Header
   ========================= */

.header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  background: rgba(8, 17, 31, 0.85);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  z-index: 1000;

  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* =========================
   Navigation
   ========================= */

.nav {
  min-height: 80px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* =========================
   Logo
   ========================= */

.logo {
  display: inline-flex;

  align-items: center;

  font-size: 28px;

  font-weight: 800;

  color: var(--white);

  letter-spacing: -0.5px;
}

.logo-highlight {
  color: var(--primary);
}

/* =========================
   Navigation Links
   ========================= */

nav {
  display: flex;

  align-items: center;

  gap: 35px;
}

nav a {
  position: relative;

  color: #cbd5e1;

  font-size: 15px;

  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--white);
}

/* =========================
   Mobile Menu Button
   ========================= */

.menu-btn {
  display: none;

  border: 0;

  background: transparent;

  color: var(--white);

  font-size: 24px;

  cursor: pointer;
}

/* =========================
   Hero
   ========================= */

.hero {
  min-height: 100vh;

  background:
    radial-gradient(circle at top right, #12355b, transparent 40%),
    linear-gradient(135deg, #08111f, #0f2745);

  color: var(--white);

  padding-top: 120px;
}

/* =========================
   Hero Grid
   ========================= */

.hero-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 60px;
}

/* =========================
   Hero Content
   ========================= */

.hero-content {
  max-width: 650px;
}

/* =========================
   Tag
   ========================= */

.tag {
  display: inline-block;

  color: #38bdf8;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 20px;
}

/* =========================
   Hero Heading
   ========================= */

.hero h1 {
  font-size: 64px;

  line-height: 1.1;

  letter-spacing: -1.5px;

  margin-bottom: 25px;
}

.hero h1 span {
  display: block;

  color: #38bdf8;
}

/* =========================
   Hero Paragraph
   ========================= */

.hero p {
  font-size: 20px;

  color: #cbd5e1;

  max-width: 550px;

  margin-bottom: 35px;
}

/* =========================
   Buttons
   ========================= */

.hero-buttons {
  display: flex;

  gap: 15px;
}

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 14px 28px;

  border-radius: var(--radius-sm);

  font-weight: 600;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;

  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
}

.primary {
  background: var(--primary-dark);

  color: var(--white);
}

.primary:hover {
  background: #036fa8;
}

.secondary {
  border: 1px solid #64748b;

  color: var(--white);
}

.secondary:hover {
  border-color: var(--primary);
}

/* =========================
   Engineering Graphic
   ========================= */

.engineering-card {
  height: 420px;

  background: linear-gradient(145deg, #12243b, #08111f);

  border-radius: var(--radius-xl);

  position: relative;

  overflow: hidden;

  border: 1px solid #334155;

  box-shadow: var(--shadow-dark);
}

.grid-bg {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(#ffffff10 1px, transparent 1px),
    linear-gradient(90deg, #ffffff10 1px, transparent 1px);

  background-size: 40px 40px;
}

.pipe {
  position: absolute;

  width: 260px;

  height: 60px;

  border: 10px solid #38bdf8;

  border-radius: 40px;

  top: 150px;

  left: 80px;

  transform: rotate(-15deg);
}

.flow-text {
  position: absolute;

  bottom: 50px;

  left: 50px;

  color: #bae6fd;

  font-size: 20px;
}

.particle {
  width: 14px;

  height: 14px;

  background: var(--secondary);

  border-radius: 50%;

  position: absolute;
}

.p1 {
  top: 130px;

  left: 170px;
}

.p2 {
  top: 180px;

  left: 230px;
}

.p3 {
  top: 220px;

  left: 300px;
}

/* =========================
   Section
   ========================= */

.section {
  padding: 100px 0;
}

/* =========================
   Section Title
   ========================= */

.section-title {
  text-align: center;

  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 42px;

  line-height: 1.2;

  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
}

/* =========================
   Cards
   ========================= */

.cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.card {
  background: var(--card);

  padding: 35px;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-card);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.card h3 {
  margin: 20px 0 10px;
}

.card p {
  color: var(--text-light);

  margin-bottom: 20px;
}

.card a {
  color: var(--primary-dark);

  font-weight: 600;
}

.card span {
  color: var(--text-light);

  font-size: 14px;
}

/* =========================
   Icon
   ========================= */

.icon {
  width: 55px;

  height: 55px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: var(--radius-md);

  background: #e0f2fe;

  color: var(--primary-dark);

  font-weight: bold;
}

/* =========================
   Featured Card
   ========================= */

.featured {
  border-top: 4px solid var(--primary-dark);
}

/* =========================
   Dark Section
   ========================= */

.dark-section {
  background: var(--bg);

  color: var(--white);
}

/* =========================
   Materials
   ========================= */

.materials {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 20px;
}

.materials div {
  padding: 25px;

  background: #10243d;

  border-radius: var(--radius-md);

  text-align: center;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.materials div:hover {
  background: #163453;

  transform: translateY(-3px);
}

/* =========================
   Guide
   ========================= */

.guide-box {
  background: var(--card);

  padding: 35px;

  border-radius: 15px;

  box-shadow: 0 10px 30px #00000010;
}

.guide-box h3 {
  margin-bottom: 10px;
}

.guide-box p {
  color: var(--text-light);
}

/* =========================
   Footer
   ========================= */

footer {
  background: #020617;

  color: #94a3b8;

  padding: 30px 0;

  text-align: center;
}

/* =========================
   Utility
   ========================= */

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .materials {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    display: none;
  }

  nav.mobile-open {
    display: flex;

    position: absolute;

    top: 80px;

    left: 0;

    width: 100%;

    padding: 25px;

    background: var(--bg);

    flex-direction: column;

    gap: 20px;

    border-top: 1px solid #1e293b;
  }

  .menu-btn {
    display: block;
  }

  .engineering-card {
    height: 350px;
  }
}

/* =========================
   Small Mobile
   ========================= */

@media (max-width: 500px) {
  .container {
    width: min(92%, 1200px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .materials {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .engineering-card {
    height: 300px;
  }

  .pipe {
    width: 210px;

    left: 40px;
  }
}

/* =========================================================
   CONVEY CALC
   GLOBAL COMPONENTS V1
========================================================= */

/* =========================================================
   GLOBAL BREADCRUMB
========================================================= */

.breadcrumb {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 22px;

  color: #94a3b8;

  font-size: 11px;

  line-height: 1.5;
}

.breadcrumb a {
  color: #aebdce;

  text-decoration: none;

  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #28a8ff;
}

.breadcrumb span {
  color: #475569;
}

/* =========================================================
   HERO LABEL
========================================================= */

.hero-label {
  display: inline-block;

  margin-bottom: 14px;

  color: #28a8ff;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;
}

/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 13px 24px;

  color: #ffffff;

  background: #0284c7;

  border-radius: 7px;

  font-size: 13px;

  font-weight: 800;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.primary-button:hover {
  color: #ffffff;

  background: #0369a1;

  transform: translateY(-2px);

  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.3);
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-kicker {
  display: block;

  margin-bottom: 8px;

  color: #0284c7;

  font-size: 10px;

  font-weight: 900;

  letter-spacing: 1.7px;
}

.section-title {
  margin: 0;

  color: #172033;

  font-size: 32px;

  line-height: 1.2;
}

.section-description {
  color: #64748b;

  font-size: 14px;

  line-height: 1.8;
}

/* =========================================================
   CARD BASE
========================================================= */

.card-base {
  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 12px;

  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
}

/* =========================================================
   GLOBAL PAGE HERO
========================================================= */

.page-hero {
  position: relative;

  overflow: hidden;

  padding: 80px 0 50px;

  background: linear-gradient(135deg, #08111f 0%, #101b2e 65%, #13243a 100%);
}

.page-hero::after {
  content: "";

  position: absolute;

  right: -120px;

  top: -180px;

  width: 520px;

  height: 520px;

  border: 1px solid rgba(40, 168, 255, 0.14);

  transform: rotate(45deg);

  pointer-events: none;
}

.page-hero .container {
  position: relative;

  z-index: 1;
}

/* =========================================================
   HERO LABEL
========================================================= */

.page-hero .hero-label {
  display: inline-block;

  margin-bottom: 14px;

  color: #28a8ff;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;

  line-height: 1.4;
}

/* =========================================================
   HERO TITLE
========================================================= */

.page-hero h1 {
  max-width: 900px;

  margin: 0 0 18px;

  color: #ffffff;

  font-size: clamp(38px, 5vw, 58px);

  font-weight: 700;

  line-height: 1.08;

  letter-spacing: -1.5px;
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.page-hero p {
  max-width: 720px;

  margin: 0 0 28px;

  color: #aebdce;

  font-size: 17px;

  line-height: 1.7;
}

/* =========================================================
   HERO BUTTON AREA
========================================================= */

.page-hero .primary-button {
  margin-top: 4px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {
  .page-hero {
    padding: 58px 0 62px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero p {
    font-size: 14px;
  }
}

/* Footer navigation links */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .footer-links {
    gap: 12px 18px;
    margin-top: 14px;
  }

  .footer-links a {
    font-size: 13px;
  }
}