/* =========================================================
   MAIL SERVER WEBSITE
   Complete responsive stylesheet
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --card: rgba(15, 30, 49, .78);
  --card-solid: #0f1e31;

  --text: #f5f8fc;
  --muted: #9eafc3;

  --primary: #1683df;
  --primary-light: #36a3ff;
  --primary-dark: #0b72c4;

  --cyan: #27d6d6;
  --green: #35d49a;

  --border: rgba(255,255,255,.09);
  --radius: 20px;

  --shadow: 0 20px 60px rgba(0,0,0,.30);

  --max-width: 1180px;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(54,163,255,.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(39,214,214,.09),
      transparent 28%
    ),
    var(--bg);

  color: var(--text);
  line-height: 1.6;

  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}


/* =========================================================
   3. GLOBAL CONTAINER
   ========================================================= */

.container {
  width: min(
    var(--max-width),
    calc(100% - 40px)
  );

  margin: 0 auto;
}


/* =========================================================
   4. HEADER / NAVIGATION
   ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  background: #ffffff;

  border-bottom: 1px solid #dce4ec;

  transition:
    box-shadow .3s ease,
    border-color .3s ease;
}

header.scrolled {
  border-bottom-color: #d2dce6;

  box-shadow:
    0 8px 30px rgba(11,31,51,.12);
}


/* =========================================================
   5. NAV
   ========================================================= */

nav {
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
}


/* =========================================================
   6. LOGO
   ========================================================= */

.logo {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.logo-image {
  display: block;

  width: 180px;
  height: auto;

  max-height: 52px;

  object-fit: contain;
}


/* =========================================================
   7. DESKTOP MENU
   ========================================================= */

.nav-links {
  display: flex;

  align-items: center;

  gap: 30px;

  list-style: none;

  margin: 0;
  padding: 0;

  color: #0b1f33;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;

  color: #0b1f33;

  text-decoration: none;

  font-size: 14px;
  font-weight: 650;

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}


/* =========================================================
   8. CTA NAV BUTTON
   ========================================================= */

.nav-cta {
  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  padding: 11px 18px !important;

  background: var(--primary);

  color: #ffffff !important;

  border-radius: 9px;

  font-weight: 700 !important;

  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);

  color: #ffffff !important;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(22,131,223,.22);
}


/* =========================================================
   9. MOBILE MENU BUTTON
   ========================================================= */

.menu-btn {
  display: none;

  appearance: none;
  -webkit-appearance: none;

  border: 0;
  outline: 0;

  background: transparent;

  color: #0b1f33;

  font-size: 28px;

  line-height: 1;

  padding: 5px;
  margin: 0;

  cursor: pointer;

  flex-shrink: 0;

  transition:
    color .2s ease,
    transform .2s ease;
}

.menu-btn:hover {
  color: var(--primary);
}

.menu-btn:focus {
  outline: none;
}

.menu-btn:active {
  transform: scale(.92);
}


/* =========================================================
   10. HERO
   ========================================================= */

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding:
    130px
    0
    80px;

  position: relative;
}

.hero::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background:
    rgba(54,163,255,.09);

  filter: blur(100px);

  top: 20%;
  left: -200px;

  pointer-events: none;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    1.08fr
    .92fr;

  align-items: center;

  gap: 70px;
}


/* =========================================================
   11. HERO BADGE
   ========================================================= */

.badge {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  padding: 7px 12px;

  border:
    1px solid
    rgba(54,163,255,.25);

  background:
    rgba(54,163,255,.08);

  border-radius: 999px;

  color: #91d2ff;

  font-size: 12px;
  font-weight: 700;

  margin-bottom: 23px;
}

.pulse {
  width: 7px;
  height: 7px;

  background: var(--green);

  border-radius: 50%;

  box-shadow:
    0 0 0 5px
    rgba(53,212,154,.10);
}


/* =========================================================
   12. TYPOGRAPHY
   ========================================================= */

h1 {
  font-size:
    clamp(
      42px,
      5.3vw,
      72px
    );

  line-height: 1.02;

  letter-spacing: -3.2px;

  max-width: 760px;

  margin-bottom: 25px;
}

h2 {
  font-size:
    clamp(
      31px,
      4vw,
      48px
    );

  letter-spacing: -1.8px;

  line-height: 1.08;

  margin-bottom: 17px;
}

.gradient {
  background:
    linear-gradient(
      100deg,
      #4ab2ff,
      #39ded0
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

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

  font-size: 18px;

  max-width: 660px;

  margin-bottom: 34px;
}


/* =========================================================
   13. BUTTONS
   ========================================================= */

.buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 13px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  padding:
    14px
    21px;

  border-radius: 10px;

  border:
    1px solid
    var(--border);

  font-size: 14px;

  font-weight: 750;

  transition:
    .25s ease;

  cursor: pointer;
}

.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--primary-light),
      var(--primary)
    );

  border-color: transparent;

  color: #ffffff;

  box-shadow:
    0 12px 30px
    rgba(54,163,255,.18);
}

.btn-primary:hover {
  transform: translateY(-3px);

  box-shadow:
    0 17px 35px
    rgba(54,163,255,.28);
}

.btn-secondary {
  background:
    rgba(255,255,255,.03);

  color: #dce8f5;
}

.btn-secondary:hover {
  background:
    rgba(255,255,255,.07);

  transform: translateY(-3px);
}


/* =========================================================
   14. SERVER VISUAL
   ========================================================= */

.server-wrap {
  position: relative;
}

.server-glow {
  position: absolute;

  inset:
    20%
    -10%
    10%;

  background:
    rgba(54,163,255,.13);

  filter: blur(70px);
}

.server {
  position: relative;

  background:
    linear-gradient(
      145deg,
      #101f33,
      #081421
    );

  border:
    1px solid
    rgba(255,255,255,.11);

  border-radius: 22px;

  padding: 24px;

  box-shadow: var(--shadow);

  transform:
    perspective(900px)
    rotateY(-5deg);
}

.server-top {
  display: flex;

  justify-content: space-between;
  align-items: center;

  padding-bottom: 17px;

  border-bottom:
    1px solid
    var(--border);
}

.server-title {
  font-weight: 750;

  font-size: 14px;
}

.lights {
  display: flex;

  gap: 6px;
}

.light {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.light.red {
  background: #ff5964;
}

.light.yellow {
  background: #ffc857;
}

.light.green {
  background: #38d996;
}


/* =========================================================
   15. TERMINAL
   ========================================================= */

.terminal {
  margin-top: 20px;

  padding: 18px;

  background: #040b13;

  border-radius: 13px;

  border:
    1px solid
    rgba(255,255,255,.06);

  color: #8ce9c6;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 12px;

  line-height: 1.9;
}

.terminal .dim {
  color: #637b91;
}

.terminal .blue {
  color: #63bdff;
}


/* =========================================================
   16. SERVER STATUS
   ========================================================= */

.status-list {
  margin-top: 17px;

  display: grid;

  gap: 9px;
}

.status {
  display: flex;

  justify-content: space-between;
  align-items: center;

  padding:
    11px
    13px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  background:
    rgba(255,255,255,.025);

  font-size: 12px;
}

.status-right {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #74e3b6;

  font-weight: 700;
}


/* =========================================================
   17. TRUST
   ========================================================= */

.trust {
  padding:
    22px
    0
    60px;
}

.trust-inner {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding:
    22px
    28px;

  border:
    1px solid
    var(--border);

  background:
    rgba(255,255,255,.025);

  border-radius: 14px;
}

.trust-label {
  color: var(--muted);

  font-size: 13px;
}

.trust-items {
  display: flex;

  gap: 35px;

  flex-wrap: wrap;

  color: #c9d6e4;

  font-size: 13px;

  font-weight: 650;
}


/* =========================================================
   18. SECTIONS
   ========================================================= */

section {
  padding:
    105px
    0;
}

.section-head {
  max-width: 720px;

  margin-bottom: 52px;
}

.eyebrow {
  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 11px;

  font-weight: 800;

  color: var(--primary);

  margin-bottom: 12px;
}

.section-description {
  color: var(--muted);

  font-size: 16px;
}


/* =========================================================
   19. SERVICES
   ========================================================= */

.services {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255,255,255,.015),
      transparent
    );
}

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.service-card {
  padding: 27px;

  background: var(--card);

  border:
    1px solid
    var(--border);

  border-radius: var(--radius);

  transition:
    .3s ease;

  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform:
    translateY(-7px);

  border-color:
    rgba(54,163,255,.3);

  box-shadow:
    0 18px 45px
    rgba(0,0,0,.18);
}

.service-icon {
  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  background:
    rgba(54,163,255,.1);

  border:
    1px solid
    rgba(54,163,255,.16);

  border-radius: 13px;

  font-size: 21px;

  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 17px;

  margin-bottom: 9px;
}

.service-card p {
  color: var(--muted);

  font-size: 13px;

  line-height: 1.7;
}


/* =========================================================
   20. WHY / ADVANTAGES
   ========================================================= */

.why-grid {
  display: grid;

  grid-template-columns:
    .85fr
    1.15fr;

  gap: 70px;

  align-items: center;
}

.feature-list {
  display: grid;

  gap: 15px;
}

.feature {
  display: flex;

  gap: 15px;

  padding: 17px;

  border-radius: 13px;

  border:
    1px solid
    var(--border);

  background:
    rgba(255,255,255,.025);
}

.check {
  min-width: 30px;

  height: 30px;

  display: grid;

  place-items: center;

  border-radius: 8px;

  background:
    rgba(53,212,154,.11);

  color: var(--green);

  font-weight: 900;
}

.feature strong {
  display: block;

  font-size: 14px;

  margin-bottom: 3px;
}

.feature span {
  color: var(--muted);

  font-size: 12px;
}


/* =========================================================
   21. STATS
   ========================================================= */

.stats-card {
  padding: 32px;

  background:
    linear-gradient(
      145deg,
      #0e2137,
      #0a1625
    );

  border:
    1px solid
    var(--border);

  border-radius: 24px;

  box-shadow: var(--shadow);
}

.stats {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 1px;

  background:
    var(--border);

  border:
    1px solid
    var(--border);

  overflow: hidden;

  border-radius: 15px;
}

.stat {
  background: #0b192b;

  padding:
    28px
    20px;
}

.stat-number {
  font-size: 32px;

  font-weight: 850;

  letter-spacing: -1px;

  color: white;
}

.stat-label {
  color: var(--muted);

  font-size: 12px;

  margin-top: 3px;
}


/* =========================================================
   22. PROCESS
   ========================================================= */

.process {
  background:
    rgba(255,255,255,.015);
}

.process-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;
}

.process-card {
  position: relative;

  padding: 25px;

  border:
    1px solid
    var(--border);

  background:
    rgba(8,20,34,.7);

  border-radius: 17px;
}

.process-number {
  font-size: 12px;

  color: var(--primary);

  font-weight: 900;

  margin-bottom: 30px;
}

.process-card h3 {
  font-size: 16px;

  margin-bottom: 9px;
}

.process-card p {
  color: var(--muted);

  font-size: 12px;
}


/* =========================================================
   23. PACKAGES
   ========================================================= */

.packages-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.package {
  position: relative;

  padding: 31px;

  border:
    1px solid
    var(--border);

  background: var(--card);

  border-radius: 20px;
}

.package.featured {
  border-color:
    rgba(54,163,255,.5);

  box-shadow:
    0 15px 50px
    rgba(54,163,255,.09);
}

.popular {
  position: absolute;

  top: 18px;
  right: 18px;

  padding:
    5px
    9px;

  border-radius: 999px;

  background:
    rgba(54,163,255,.12);

  color: #73c5ff;

  font-size: 9px;

  font-weight: 800;

  text-transform: uppercase;
}

.package h3 {
  font-size: 20px;

  margin-bottom: 8px;
}

.package-desc {
  color: var(--muted);

  font-size: 12px;

  min-height: 42px;
}

.package ul {
  list-style: none;

  margin:
    25px
    0;

  display: grid;

  gap: 11px;
}

.package li {
  color: #cbd7e5;

  font-size: 13px;
}

.package li::before {
  content: "✓";

  color: var(--green);

  margin-right: 9px;

  font-weight: 900;
}


/* =========================================================
   24. CTA
   ========================================================= */

.cta-box {
  position: relative;

  overflow: hidden;

  padding: 65px;

  text-align: center;

  border:
    1px solid
    rgba(54,163,255,.2);

  border-radius: 25px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(54,163,255,.18),
      transparent 50%
    ),
    linear-gradient(
      145deg,
      #0c1d31,
      #091522
    );
}

.cta-box h2 {
  max-width: 760px;

  margin:
    0
    auto
    16px;
}

.cta-box p {
  max-width: 650px;

  margin:
    0
    auto
    27px;

  color: var(--muted);
}


/* =========================================================
   25. CONTACT
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    .8fr
    1.2fr;

  gap: 60px;
}

.contact-info {
  display: grid;

  gap: 17px;

  margin-top: 28px;
}

.contact-item {
  display: flex;

  gap: 13px;

  align-items: center;
}

.contact-item-icon {
  width: 39px;
  height: 39px;

  display: grid;

  place-items: center;

  background:
    rgba(54,163,255,.1);

  border-radius: 10px;
}

.contact-item small {
  display: block;

  color: #71869b;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.contact-item strong {
  font-size: 13px;
}


/* =========================================================
   26. FORM
   ========================================================= */

form {
  padding: 30px;

  border-radius: 20px;

  border:
    1px solid
    var(--border);

  background: var(--card);
}

.form-row {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;

  font-size: 11px;

  color: #aabacc;

  margin-bottom: 6px;

  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;

  border:
    1px solid
    var(--border);

  background: #081522;

  color: white;

  padding:
    12px
    13px;

  border-radius: 9px;

  outline: none;

  font: inherit;

  font-size: 13px;

  transition:
    .2s ease;
}

textarea {
  min-height: 125px;

  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color:
    rgba(54,163,255,.55);

  box-shadow:
    0 0 0 3px
    rgba(54,163,255,.07);
}

.form-submit {
  width: 100%;

  margin-top: 5px;
}

.form-message {
  display: none;

  margin-top: 14px;

  padding: 11px;

  border-radius: 8px;

  background:
    rgba(53,212,154,.1);

  border:
    1px solid
    rgba(53,212,154,.2);

  color: #7ce5b8;

  font-size: 12px;

  text-align: center;
}


/* =========================================================
   27. FOOTER
   ========================================================= */

footer {
  padding: 35px 0;

  border-top:
    1px solid
    var(--border);

  color: #71859a;

  font-size: 12px;
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;
}

.footer-links {
  display: flex;

  gap: 20px;
}

.footer-links a:hover {
  color: white;
}


/* =========================================================
   28. SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(25px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   29. TABLET
   ========================================================= */

@media screen and (max-width: 950px) {

  .hero-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .server {
    max-width: 620px;

    margin:
      0
      auto;
  }

  .services-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .packages-grid {
    grid-template-columns: 1fr;

    max-width: 620px;

    margin:
      0
      auto;
  }

  .why-grid {
    gap: 45px;
  }
}


/* =========================================================
   30. MOBILE
   IMPORTANT:
   Everything below 800px uses mobile navigation.
   ========================================================= */

@media screen and (max-width: 800px) {

  .container {
    width:
      min(
        var(--max-width),
        calc(100% - 28px)
      );
  }


  /* NAV */

  nav {
    height: 68px;
  }


  /* LOGO */

  .logo-image {
    width: 145px;

    max-height: 45px;
  }


  /* MOBILE BUTTON */

  .menu-btn {
    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;

    color: #0b1f33 !important;
  }


  .menu-btn:hover {
    color: var(--primary) !important;
  }


  /* MOBILE MENU
     Hidden by default */

  .nav-links {
    display: none !important;

    position: absolute;

    top: 78px;

    left: 14px;
    right: 14px;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 10px;

    margin: 0;

    background: #ffffff;

    border:
      1px solid
      #dce4ec;

    border-radius: 13px;

    box-shadow:
      0 15px 40px
      rgba(11,31,51,.15);

    z-index: 2000;
  }


  /* MOBILE MENU
     Visible after click */

  .nav-links.active {
    display: flex !important;
  }


  .nav-links li {
    width: 100%;
  }


  .nav-links a {
    display: block;

    width: 100%;

    padding:
      13px
      14px;

    color:
      #0b1f33 !important;

    border-radius: 8px;

    font-size: 14px;
  }


  .nav-links a:hover {
    color:
      var(--primary) !important;

    background:
      #f2f8fc;
  }


  .nav-links .nav-cta {
    display: flex !important;

    align-items: center;

    justify-content: center;

    margin-top: 5px;

    background:
      var(--primary) !important;

    color:
      #ffffff !important;
  }


  /* HERO */

  .hero {
    padding-top: 110px;
  }

  .hero-text {
    font-size: 16px;
  }


  /* SERVER */

  .server {
    transform: none;
  }


  /* SECTIONS */

  section {
    padding:
      75px
      0;
  }


  /* TRUST */

  .trust-inner {
    flex-direction: column;

    align-items: flex-start;
  }

  .trust-items {
    gap:
      15px
      25px;
  }


  /* FORM */

  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  form {
    padding: 21px;
  }


  /* CTA */

  .cta-box {
    padding:
      45px
      22px;
  }


  /* FOOTER */

  .footer-inner {
    flex-direction: column;

    text-align: center;
  }
}


/* =========================================================
   31. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 480px) {

  .container {
    width:
      calc(100% - 24px);
  }


  .logo-image {
    width: 130px;

    max-height: 42px;
  }


  .menu-btn {
    font-size: 26px;

    padding: 4px;
  }


  h1 {
    font-size:
      clamp(
        38px,
        11vw,
        48px
      );

    letter-spacing:
      -2px;
  }


  h2 {
    font-size: 32px;

    letter-spacing:
      -1.2px;
  }


  .buttons {
    flex-direction: column;

    align-items: stretch;
  }


  .btn {
    width: 100%;
  }


  .server {
    padding: 17px;

    border-radius: 17px;
  }


  .terminal {
    padding: 13px;

    font-size: 10px;

    overflow-x: auto;
  }


  .status {
    font-size: 11px;
  }


  .stats-card {
    padding: 18px;
  }


  .stat {
    padding:
      21px
      14px;
  }


  .stat-number {
    font-size: 25px;
  }


  .service-card,
  .package {
    padding: 23px;
  }


  .contact-item strong {
    font-size: 12px;
  }


  .footer-links {
    flex-wrap: wrap;

    justify-content: center;
  }
}


/* =========================================================
   32. REDUCED MOTION
   Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}

