/* ========================
       Ryde Web Hosting — Landing
       Single-file HTML/CSS/JS (minimal JS below)
       - Background gradient matches Rydefoundation request
       - Cards use a subtle variant of same gradient for harmony
       - No inline styles except for a few aria-hidden helpers
       ======================== */

:root {
  /* #0c705d,google checker with #fff color */
  /* palette (derived from the requested gradient) */
  --grad-start: #000000;
  /* black */
  --grad-end: #55efc4;
  /* --grad-end: #12f4b8; */
  /* mint green */
  --bg: linear-gradient(to top left, var(--grad-start), var(--grad-end));
  /* --bg: linear-gradient(180deg, #12af92, #4bce91); */
  --page-padding: 28px;
  --container-max: 1200px;

  /* typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --text-1: #e9fef7;
  /* near-white for contrast on dark bg */
  --muted: #bfeee0;
  /* softer text */
  --accent: #55efc4;
  /* bright accent */
  --accent-dark: #00b389;
  /* slightly darker accent */
  --card-opaque: rgba(255, 255, 255, 0.03);
  /* subtle overlay to lift cards */
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --btn-radius: 999px;
  --glass-blur: 8px;
  --transition: 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ===== base reset ===== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  /* background: linear-gradient(#12af92, #0adbb1); */
  /* color: #000000; */

  color: var(--text-1);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ===== layout utilities ===== */
.container {
  /* width: 94%; */

  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* ===== header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg);
  /* background: linear-gradient(to top left, #26c694, #7bf0a0); */
  /* background: #00b389; */
  /* background: linear-gradient(180deg, #12af92, #4bce91); */
  backdrop-filter: blur(var(--glass-blur));
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
}

nav a {
  height: 100%;

  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: 43px;
}
/* SIDEBAR BASE --------------*/

.blur-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.53); /* Semi-transparent background */
  backdrop-filter: blur(3px); /* Apply blur to whatever is behind the element */
  /* Add vendor prefixes for wider compatibility, e.g., -webkit-backdrop-filter */
  -webkit-backdrop-filter: blur(3px);
}
.sidebar {
  position: absolute;

  top: -14px;
  left: 0;
  height: 100vh;
  width: 260px;
  background: linear-gradient(180deg, #12af92, #4bce91);
  padding: 25px 18px;
  display: none; /* hidden first */
  flex-direction: column;
  gap: 10px;
  /* border-top-right-radius: 30px; */
  /* border-bottom-right-radius: 30px; */
  /* z-index: 1000; */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.12);
  transition: 0.3s ease;
}

/* WHEN SIDEBAR IS OPEN */
.sidebar.show {
  display: flex;
}

/* REMOVE BULLET */
.sidebar li {
  list-style: none;
}

/* LINKS DESIGN */
.sidebar li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: white;
  padding: 11px 15px;

  border-radius: 10px;
  display: flex;
  align-items: center;
  /* gap: 12px; */
  left: 0;
  right: 0;
  /* transition: 0.25s ease; */
}

.div-icon {
  padding: 0;
  margin: -14px;
  margin-bottom: -30px;
  display: flex;
}

/* HOVER EFFECT */
.sidebar li a:hover {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid #044536;
  color: #044536;
  transform: translateX(5px);
}
.menu-icon {
  width: 40px;
  height: 40px;
  margin-left: -25px;
  color: #044536;
  /* background-color: #00b389; */
}

.menu-icon:hover {
  color: #fff;
  /* border: 1px solid #044536; */
}

/* CLOSE ICON STYLING */
ion-icon.close-icon {
  font-size: 40px;
  color: white;
  cursor: pointer;
}
ion-icon.close-icon:hover {
  color: #044536;
  /* border: 1px solid #044536; */
}

/* sidebar end------------------------------------------------- */

.brand {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 25px;
}
/* ryde logo img --------------*/
.logo-mark {
  width: 65px;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

/*  logo img --------------*/
img {
  max-width: 100%;
  display: block;

  margin-left: 41px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
  /* color: #044536; */
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

/*  nav.desktop is a  home , host tutorial....... */
nav.desktop {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav.desktop a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-1);
  opacity: 0.95;
}

nav.desktop a:hover {
  /* background: rgba(255, 255, 255, 0.03); */
  /* color: #044536; */
  color: var(--accent);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  /* background: linear-gradient(180deg, #0ecf85, #00694c); */

  color: #00261a;
  font-weight: 800;
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-primary.h-btn:hover {
  color: #085342;
}

.cta-primary:active {
  transform: translateY(1px);
}

/* ===== hero ===== */
.hero {
  padding: 20px 0 30px;
  position: relative;

  /* height: 510px; */
  background: var(--bg);
}

.hero-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 14px;
  line-height: 1.05;
  font-weight: 800;
}

.hero p {
  margin-top: 30px;
  color: var(--muted);
  font-size: 16px;

  max-width: 56ch;
}

.hero-cta {
  display: flex;
  gap: 25px;
  margin-top: 35px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 0;
  padding: 12px 16px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-weight: 700;

  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));

  color: #002016;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.btn.toto-btn {
  border: 1px solid #0a7b5b;
  font-size: 14px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(3, 49, 22, 0.511);
  color: var(--text-1);
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #49d4ad;
  color: #044536;
}

/* hero card (visual summary) */
.hero-card {
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-1);
}

.hero-stat {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #002016;
}
/* good */
/* ===== hosting grid ===== */
.hosting {
  padding: 36px 0;
  /* padding: 10px 0; */
  /* background-color: #07382a; */
  background-color: #00b389;
  /* background: linear-gradient(150deg, #4dd497, #4bce91); */
  /* Slight overlay to separate from hero while keeping gradient */

  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.hosting-header {
  display: grid;
  column-gap: 30px;
  gap: 12x;
  align-items: center;
}
#hosts-heading {
  margin: 0;

  font-size: 27px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 65px;
}
.muted-small {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}
.toggle-btn {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.hosting-grid {
  /* margin-top: 18px; */
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background-color: #044536;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  height: 350px;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 140px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.5);
}

.card .logo-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-row img {
  width: 65px;
  height: 20px;
  margin-bottom: 20px;
  display: flex;
}
.newlogo img {
  background-color: #ffffff;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
}

.card p {
  /* margin: 0; */
  color: var(--muted);
  font-size: 16px;
  margin-top: 22px;
  margin-left: 10px;
  /* padding: 10px; */
  flex: 1;
}

.card-footer {
  /* display: flex; */
  /* align-items: center; */
  gap: 20px;

  /* margin-top: 12px; */
}

.view-details {
  /* margin-left: auto; */
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #002016;
  font-weight: 800;
  border: 0;
  text-decoration: none;
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
  /* margin-top: 30px; */
  max-width: fit-content;

  margin-top: 40px;
}

.learn-more {
  /* font-weight: 700; */
  color: var(--accent);

  font-size: 13px;
  background: transparent;
  border: 0;
}
.learn-more:hover {
  text-decoration: underline;
}
.learn-more.small a {
  margin-left: auto;
  /* padding: 9px 12px; */
  color: var(--accent);

  gap: 10;

  /* font-weight: 800; */
  text-decoration: none;
}

/* ===== tutorials block ===== */

.tutorials {
  padding: 35px;
  display: grid;
  /* display: flex; */
  /* flex-direction: row; */
  /* justify-content: center; */
  grid-template-columns: 800px 370px;
  gap: 18px;
  align-items: center;
  height: 450px;
  /* width: 100%; */
  /* background-color: #47c4a0; */
  background: var(--bg);
}

.panel {
  border-radius: 12px;
  padding: 50px;
  align-items: center;
  box-shadow: var(--shadow);
  letter-spacing: 0.8;
  line-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.panel p {
  margin: 0;

  color: var(--muted);
}
/* #####   Footer  ###### */
footer {
  background: #044536;
  color: #fff;
  padding: 40px 0;
  /* margin-top: 40px; */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
}

footer h3,
footer h4 {
  margin: 0 0 12px;
}

.muted {
  color: #cccccc;
}

.small {
  font-size: 14px;
}

footer a {
  display: block;
  color: #cccccc;
  text-decoration: none;

  margin-bottom: 8px;
  transition: 0.2s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Social Icons */
.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  /* background: #075b36; */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 20px;
  color: #fff;
  /* transition: background 0.3s, transform 0.2s; */
}

.footer-social a:hover {
  background: #28be6c;
  transform: translateY(-3px);
}

.copyright {
  margin-top: 16px;
}

/* ============================================================
   MEDIA QUERIES — MOBILE & TABLET FIXES
   ============================================================ */

/* ---------- 1024px (tablets & small laptops) ---------- */
@media (max-width: 1024px) {
  nav.desktop {
    display: none; /* Hide desktop menu */
  }

  .menu-icon {
    display: block;
    margin-left: 10px;
  }

  .hero {
    height: auto;
    padding-bottom: 60px;
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hosting-grid {
    grid-template-columns: 1fr; /* 1 card per row */
  }

  .tutorials {
    grid-template-columns: 1fr;
    height: auto;
    padding: 20px;
  }
}

/* ---------- 768px (phones in portrait) ---------- */
@media (max-width: 768px) {
  .brand {
    margin-left: 10px;
    gap: 14px;
  }

  .brand-title {
    font-size: 14px;
  }

  .logo-mark {
    width: 45px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .card p {
    font-size: 14px;
  }

  .hero-card {
    width: 90%;
    margin: auto;
  }

  .hosting-header {
    text-align: center;
  }
  #hosts-heading {
    font-size: 18px;
    /* margin: 0; */
    margin-top: -20px;
  }
}

/* ---------- 480px (small phones) ---------- */
@media (max-width: 480px) {
  .menu-icon {
    width: 32px;
    height: 32px;
  }

  .sidebar {
    width: 220px;
    padding: 20px 14px;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .card {
    padding: 16px;
    height: 400px;
  }

  footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .learn-more.small {
    font-size: 10px;
  }
}
