/* Minimal Single-Page Styles for SWAPP Landing */
:root {
  /* Brand palette tuned to neon green + cyan logo */
  --green: #35ff76;
  --green-glow: #18e85c;
  --cyan: #12e6ff;
  --cyan-glow: #0bc7e0;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-dark: #0c1012;
  --text: #162126;
  --text-on-dark: #e9fdf9;
  --text-muted: #5a6d75;
  --primary: var(--cyan-glow);
  --primary-alt: var(--green-glow);
  --primary-hover: #0895a6;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-glow: 0 0 0 2px rgba(53, 255, 118, .4), 0 0 22px -2px rgba(11, 199, 224, .55);
  --max: 1120px;
  --space: clamp(1rem, 2.5vw, 2.5rem);
  --gradient: linear-gradient(140deg, #0895a6, #12e6ff 35%, #35ff76 75%);
  --focus: 3px solid var(--cyan);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #dde4e8;
  backdrop-filter: saturate(160%) blur(14px);
  transition: .4s;
}

.site-header.scrolled {
  background: rgba(13, 21, 24, .9);
  border-color: rgba(255, 255, 255, .08);
}

.site-header.scrolled .nav-links a {
  color: var(--text-on-dark);
}

.site-header.scrolled .dropdown-trigger {
  color: #fff !important;
  /* Force white */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  /* Add shadow for legibility */
}

.site-header.scrolled .dropdown-trigger::after {
  border-top-color: #fff !important;
}

.site-header.scrolled .nav-links a.active {
  background: rgba(255, 255, 255, .08);
}

.site-header.scrolled .nav-links .btn {
  color: #041b1f;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: .5rem var(--space);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand .logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .5px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #d0d6dc;
  padding: .6rem .9rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: .5rem;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  /* Darker than --text-muted */
  padding: .55rem .85rem;
  border-radius: 8px;
  font-weight: 700;
  /* Increased weight */
  font-size: .85rem;
  /* Slightly larger */
  position: relative;
  transition: .25s;
}

.nav-links a:hover {
  background: var(--bg-alt);
  color: #000;
  /* Pure black on hover */
}

.nav-links a.active:not(.btn) {
  background: linear-gradient(135deg, rgba(18, 230, 255, .15), rgba(53, 255, 118, .18));
  color: #000;
  box-shadow: 0 0 0 1px rgba(18, 230, 255, .4);
}

.nav-links .btn.small {
  padding: .55rem .9rem;
}

.hero {
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 30%, rgba(255, 255, 255, .15), transparent 60%);
  pointer-events: none;
}

.hero .inner {
  position: relative;
}

.lead {
  font-size: 1.2rem;
  max-width: 780px;
  color: rgba(255, 255, 255, .9);
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

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

.inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.inner.narrow {
  max-width: 860px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin: 0 0 1.1rem;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.3rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.15rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: .8rem;
  opacity: .75;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.35rem;
  border-radius: 11px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
  transition: .3s;
  font-size: .92rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.btn:hover {
  background: var(--primary);
  color: #041b1f;
  box-shadow: var(--shadow-glow);
}

.btn.primary {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--primary-alt) 100%);
  color: #041b1f;
  border-color: var(--cyan-glow);
  box-shadow: var(--shadow-glow);
}

.btn.primary:hover {
  filter: brightness(1.08);
  color: #041b1f;
}

.btn.outline {
  background: #fff;
  color: var(--primary);
}

.btn.small {
  font-size: .75rem;
  padding: .55rem .9rem;
  border-width: 1px;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }
}

.media-box {
  background: linear-gradient(135deg, #edf5f7, #ffffff 65%);
  padding: 1.35rem;
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  border: 1px solid #e2ebee;
  position: relative;
}

.media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(18, 230, 255, .12), 0 0 0 5px rgba(53, 255, 118, .08);
  mix-blend-mode: overlay;
}

.media-box img {
  border-radius: 14px;
}

.pricing-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pricing-cards {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .pricing-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid #dfe4e8;
  padding: 1.5rem 1.4rem 1.7rem;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.card h3 {
  margin: 0 0 .4rem;
  font-size: 1.35rem;
}

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  font-size: .9rem;
}

.card ul li {
  position: relative;
  padding-left: 1.1rem;
}

.card ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: .4rem;
}

/* Enhanced pricing tiers */
.pricing-tier {
  position: relative;
  transition: .3s;
}

.pricing-tier:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.pricing-tier.featured {
  border: 2px solid var(--cyan);
  box-shadow: var(--shadow-glow);
}

.tier-header {
  margin-bottom: 1.2rem;
}

.tier-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--cyan), var(--primary-alt));
  color: #041b1f;
  margin-bottom: .65rem;
}

.tier-label.gold {
  background: linear-gradient(100deg, #f59e0b, #fbbf24);
}

.tier-label.platinum {
  background: linear-gradient(100deg, #6366f1, #a855f7);
}

.tier-price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: .35rem 0 .25rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.tier-price small {
  font-size: .95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-price .checkmark {
  font-size: 1.3rem;
  color: var(--cyan);
}

.tier-users {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.tier-features {
  flex: 1;
}

.tier-features li {
  font-size: .85rem;
  line-height: 1.5;
}

.tier-features .sub-features {
  margin-top: .4rem;
  padding-left: .5rem;
}

.tier-features .sub-features li {
  font-size: .8rem;
  color: var(--text-muted);
}

.tier-features .sub-features li::before {
  width: 6px;
  height: 6px;
}

.tier-note {
  font-size: .8rem;
  background: linear-gradient(100deg, rgba(53, 255, 118, .15), rgba(18, 230, 255, .15));
  padding: .5rem .75rem;
  border-radius: 8px;
  margin: .75rem 0;
  font-weight: 600;
  color: var(--text);
}

.tier-detail {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  margin: .4rem 0 1rem;
}

.btn-select {
  background: linear-gradient(100deg, var(--green-glow), var(--green));
  color: #041b1f;
  border-color: var(--green-glow);
  font-weight: 700;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(53, 255, 118, .3), 0 4px 14px -2px rgba(53, 255, 118, .4);
}

.btn-select:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(53, 255, 118, .5), 0 6px 20px -2px rgba(53, 255, 118, .55);
  color: #041b1f;
}

.store-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
}

.store-row img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.site-footer {
  background: #111;
  color: #ddd;
  padding: 3.5rem 0 3rem;
}

.site-footer a {
  color: #9bd6cf;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.footer-links a {
  font-size: .85rem;
}

.menu-toggle {
  font-weight: 600;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: .75rem 0;
  }

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

  .menu-toggle {
    display: inline-block;
  }
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

/* Utility */
.flow>*+* {
  margin-top: 1rem;
}

/* Simple fade */
.fade-in {
  animation: fade .6s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hero split layout */
.hero-split {
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: radial-gradient(circle at 65% 35%, rgba(255, 255, 255, .25), transparent 70%);
  filter: blur(10px);
  opacity: .55;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  max-width: 580px;
  border-radius: 20px;
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .35), 0 4px 14px -2px rgba(0, 0, 0, .25);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Refined media presentation */
.media-box {
  transition: box-shadow .4s, transform .4s;
}

.media-box:hover {
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .2), 0 4px 14px -2px rgba(0, 0, 0, .18);
  transform: translateY(-4px);
}

/* Button polish */
.btn {
  position: relative;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: .35s;
}

.btn:hover::after {
  opacity: .55;
}

.btn:active {
  transform: translateY(2px);
}

/* Responsive stacking for hero */
@media (max-width: 820px) {

  /* Unified mobile stacking: image first then text for clarity */
  .split,
  .hero-split {
    display: flex;
    flex-direction: column;
  }

  .split>.media-box,
  .hero-split>.hero-media {
    order: 0;
    margin-bottom: 1.25rem;
  }

  .split> :not(.media-box) {
    order: 1;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  /* Section separators */
  .section {
    padding: 2.75rem 0;
  }

  .section+.section {
    position: relative;
  }

  .section+.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(18, 230, 255, .5), rgba(53, 255, 118, .5));
    opacity: .45;
  }

  /* Improve heading clarity */
  .section h2 {
    font-size: 1.65rem;
    margin-top: .35rem;
  }
}

/* Smooth entrance */
.hero-split>* {
  animation: fade .8s ease both;
}

.hero-split>*:nth-child(2) {
  animation-delay: .15s;
}

/* Slight typography refinement */
h1 {
  letter-spacing: -1px;
}

.lead {
  font-weight: 600;
}

/* Simplified Pricing Layout */
.pricing-steps {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  text-align: center;
}

.step {
  flex: 1;
  min-width: 250px;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #041b1f;
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 15px rgba(53, 255, 118, 0.4);
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Growth Tiers Horizontal List */
.growth-tiers-container {
  max-width: 900px;
  margin: 0 auto;
}

.growth-tiers-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.growth-tier {
  display: grid;
  grid-template-columns: 1.2fr 2fr 0.8fr;
  align-items: center;
  background: white;
  border: 1px solid #e1e4e8;
  margin-bottom: 1rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  gap: 1.5rem;
  transition: transform 0.2s;
}

.growth-tier:hover {
  transform: scale(1.01);
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tier-info h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.tier-info .users {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.tier-badge.free {
  background: #e1e4e8;
  color: #5a6d75;
}

.tier-badge.basic {
  background: rgba(18, 230, 255, 0.15);
  color: #0895a6;
}

.tier-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: #b8860b;
}

.tier-badge.platinum {
  background: rgba(229, 228, 226, 0.3);
  color: #5a6d75;
  border: 1px solid #ccc;
}

.tier-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.tier-cost {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  line-height: 1;
}

.tier-cost small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .growth-tier {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

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

/* Pricing Preview Grid */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.preview-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  transition: .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan);
}

.preview-card.featured {
  border: 2px solid var(--cyan);
  box-shadow: 0 5px 15px rgba(18, 230, 255, 0.1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.plan-name {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.plan-users {
  background: #f0f4f8;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a6d75;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.plan-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: .95rem;
  /* Larger */
  font-weight: 700;
  /* Bolder */
  color: #374151;
  /* Darker grey */
  cursor: pointer;
  padding: .55rem .85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #374151;
  /* Match color */
  transition: transform 0.2s;
  opacity: 0.8;
}

.dropdown-trigger:hover,
.nav-item-dropdown:hover .dropdown-trigger {
  color: #000;
}

.nav-item-dropdown:hover .dropdown-trigger::after {
  border-top-color: var(--text);
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  list-style: none;
  /* Ensure no bullets */
  margin: 0;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
  /* Double ensure */
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #000 !important;
  /* Force Black */
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  /* Bold */
  white-space: nowrap;
  background: transparent;
  /* Reset any inheritance */
}

.dropdown-menu a:hover {
  background: #f0fdf9;
  /* Very light mint/white */
  color: #0d9488;
  /* Teal/Green hover */
}

@media (max-width: 900px) {
  .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    width: 100%;
    background: transparent;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    display: flex;
  }
}