/* ==========================================================================
   EDMAN SMS — MAIN DESIGN SYSTEM (PIGGYVEST-INSPIRED MODERN SAAS)
   ========================================================================== */

:root {
  /* ── Brand Colors ── */
  --edman-navy: #0d1b2a;
  --edman-navy-deep: #061224;
  --edman-blue: #0803B7;
  --edman-blue-bright: #1d4ed8;
  --edman-blue-light: #eef2ff;
  --edman-blue-subtle: #e0e7ff;

  --edman-green: #00E599;
  --edman-green-dark: #00b377;
  --edman-green-light: #e6fcf3;
  --edman-green-subtle: #ccf8e8;

  --edman-violet: #7c3aed;
  --edman-violet-light: #f5f3ff;
  --edman-violet-subtle: #ede9fe;

  --edman-amber: #d97706;
  --edman-amber-light: #fffbeb;
  --edman-amber-subtle: #fef3c7;

  --edman-rose: #e11d48;
  --edman-rose-light: #fff1f2;
  --edman-rose-subtle: #ffe4e6;

  --edman-cyan: #0891b2;
  --edman-cyan-light: #ecfeff;
  --edman-cyan-subtle: #cffafe;

  /* ── Neutrals & Surface Tints ── */
  --bg-page: #f2f4f7;
  --bg-white: #ffffff;
  --bg-dark: #061224;
  --bg-card: #ffffff;

  --text-main: #0d1b2a;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --text-on-dark: #f8fafc;
  --text-muted-dark: #94a3b8;

  --border-subtle: rgba(13, 27, 42, 0.08);
  --border-card: #e5e7eb;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* ── Radii (Reduced & Sharper) ── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-btn: 8px;
  --radius-pill: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 6px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(13, 27, 42, 0.06);
  --shadow-lg: 0 16px 36px -6px rgba(13, 27, 42, 0.1);
  --shadow-glow: 0 0 35px rgba(8, 3, 183, 0.18);

  /* ── Emil Kowalski Smooth Easing ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* ── Adaptive Sizing & Fluid Spacing Scales ── */
  --fluid-section-pad: clamp(40px, 5.5vw, 72px);
  --fluid-card-pad: clamp(20px, 2.4vw, 32px);
  --fluid-gap: clamp(14px, 2vw, 24px);
  --container-width: min(100% - clamp(24px, 4vw, 48px), 1280px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ── Layout Containers & Adaptive Spacing ── */
.container {
  width: var(--container-width);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.section {
  padding: var(--fluid-section-pad) 0;
  position: relative;
}

.section-white {
  background-color: var(--bg-white);
}

.section-blue {
  background-color: var(--edman-blue);
  color: #ffffff;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.tag-translucent {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.title-white {
  color: #ffffff !important;
}

.desc-white {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ── Fluid Typography & Section Headers ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.72rem, 0.9vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--edman-blue);
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

.section-tag.tag-green {
  color: var(--edman-green-dark);
}

.section-tag.tag-light {
  color: #60a5fa;
}

.section-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: clamp(10px, 1.4vw, 16px);
}

.section-title.title-white {
  color: #ffffff;
}

.section-desc {
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.section-desc.desc-light {
  color: var(--text-muted-dark);
}

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

.desc-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

/* ── Buttons (Rounded Pill, Clean & Shadowless) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: none;
  transition: transform 0.2s var(--ease-out),
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

/* Tactile press response */
.btn:active {
  transform: scale(0.96) !important;
}

.btn-dark {
  background-color: var(--edman-navy);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--edman-blue);
  color: #ffffff;
  border-color: var(--edman-blue);
  box-shadow: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--edman-blue);
  border-color: var(--edman-blue);
  box-shadow: none;
}

.btn-white {
  background-color: #ffffff;
  color: var(--edman-blue);
  border: 1.5px solid var(--border-card);
  box-shadow: none;
}

.btn-ghost-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.84rem;
  border-radius: var(--radius-pill);
}

@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover {
    background-color: #1a2f45;
    transform: translateY(-1px);
    box-shadow: none;
  }

  .btn-primary:hover {
    background-color: #060291;
    border-color: #060291;
    transform: translateY(-1px);
    box-shadow: none;
  }

  .btn-outline:hover {
    background-color: var(--edman-blue);
    color: #ffffff;
    transform: translateY(-1px);
  }

  .btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: none;
  }

  .btn-ghost-dark:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }

  .btn:hover i.fa-arrow-right {
    transform: translateX(4px);
  }
}

.btn i {
  transition: transform 0.2s var(--ease-out);
}

/* ── Sticky Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background-color: transparent;
  transition: background-color 0.3s var(--ease-out),
    backdrop-filter 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    padding 0.3s var(--ease-out),
    border-color 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle), 0 8px 24px -6px rgba(13, 27, 42, 0.05);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  font-size: 0.65rem;
  margin-left: 5px;
  opacity: 0.6;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--edman-blue);
  background-color: var(--edman-blue-light);
}

/* ── Dropdown Menu Styling ── */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-dropdown-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link-dropdown-btn .nav-caret {
  font-size: 0.65rem;
  transition: transform 0.2s var(--ease-out);
  opacity: 0.7;
}

.nav-item-dropdown:hover .nav-link-dropdown-btn,
.nav-item-dropdown:focus-within .nav-link-dropdown-btn,
.nav-item-dropdown.active-open .nav-link-dropdown-btn {
  color: var(--edman-blue);
  background-color: var(--edman-blue-light);
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret,
.nav-item-dropdown.active-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 40px -8px rgba(13, 27, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
  z-index: 1100;
}

/* Invisible hover bridge to prevent dropdown from closing when moving cursor over the gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  display: block;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.active-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  color: var(--text-main) !important;
  text-decoration: none;
  background: transparent !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--edman-blue-light) !important;
}

.dropdown-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f4ff;
  color: var(--edman-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover .dropdown-item-icon {
  background: var(--edman-blue);
  color: #ffffff;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--edman-navy);
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

/* Mobile Dropdown */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.mobile-dropdown-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.mobile-dropdown.open .mobile-dropdown-btn i {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding: 4px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin: 6px 0 10px;
}

.mobile-dropdown.open .mobile-submenu {
  display: flex;
}

.mobile-submenu a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav Action: Sign In (Borderless, Shadowless, Clean Link Button) */
.btn-signin-nav {
  background-color: transparent;
  border: none;
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-signin-nav:hover {
    color: var(--edman-blue);
    background-color: var(--edman-blue-light);
    transform: translateY(-1px);
  }
}

/* Nav Action: Get Started (Rounded Pill, Brand Blue, No Shadow) */
.btn-pill-nav {
  background-color: var(--edman-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-pill-nav:hover {
    background-color: #060291;
    transform: translateY(-1px);
    box-shadow: none;
  }
}

.btn-outline-nav {
  background-color: transparent;
  border: none;
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--edman-navy);
  cursor: pointer;
  padding: 6px;
}

/* ── Mobile Menu Drawer ── */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 1200;
  padding: 24px 28px 48px;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.mobile-menu-header img {
  height: 30px;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--edman-navy);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu a:not(.btn) {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--edman-navy);
  padding: 16px 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.05);
}

.mobile-menu .btn {
  margin-top: 24px;
  width: 100%;
}

/* ── Fade Up Animation Trigger ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Wallio-Inspired Seamless Dark CTA & Minimalist Footer ── */
.site-dark-footer {
  background-color: #000000;
  color: #94a3b8;
  padding: clamp(60px, 7vw, 90px) 0 40px;
  position: relative;
  overflow: hidden;
}

/* Vivid Blue CTA Banner Card */
.wallio-cta-card {
  background: var(--edman-blue);
  border-radius: 28px;
  padding: clamp(40px, 5vw, 60px) clamp(28px, 4.5vw, 60px) 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(60px, 7vw, 84px);
  box-shadow: none !important;
}

.wallio-cta-left {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(40px, 5vw, 60px);
}

.wallio-cta-desc {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  font-weight: 500;
}

.wallio-cta-title {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 24px;
}

.wallio-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-onboard-cta {
  background: #ffffff;
  color: var(--edman-blue);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: none !important;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

.btn-onboard-cta:hover {
  transform: translateY(-2px);
  background-color: #f8fafc;
  color: var(--edman-blue);
}

.btn-onboard-cta:active {
  transform: scale(0.97);
}

/* Right Mockup Frame (Flush Bottom, Zero Padding, Increased Size) */
.wallio-cta-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  margin-bottom: 0;
  line-height: 0;
}

.wallio-device-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  transform: none;
  line-height: 0;
}

.wallio-screen-mockup {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

/* Minimalist Footer Top Row */
.wallio-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.wallio-footer-logo {
  height: 28px;
  width: auto;
}

.wallio-footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

.wallio-footer-nav a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.wallio-footer-nav a:hover {
  color: #ffffff;
}

.wallio-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallio-footer-socials a {
  color: #94a3b8;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.wallio-footer-socials a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Divider */
.wallio-footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

/* Minimalist Footer Bottom Row */
.wallio-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #64748b;
}

.wallio-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wallio-legal-links a {
  color: #64748b;
  transition: color 0.15s ease;
}

.wallio-legal-links a:hover {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .wallio-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wallio-cta-actions {
    justify-content: center;
  }

  .wallio-cta-right {
    margin-top: 24px;
  }

  .wallio-footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .wallio-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ── Responsive Rules ── */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-logo img {
    height: 25px;
  }

  .mobile-menu-header img {
    height: 25px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 23px;
  }

  .mobile-menu-header img {
    height: 23px;
  }
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .social-btn {
    transition: none !important;
  }
}