:root {
  --ink: #0b1b2b;
  --ink-soft: #536173;
  --glow: #4ad8ff;
  --accent: #ff9a3c;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --shadow: rgba(12, 24, 38, 0.2);
  --bg-top: #0d2038;
  --bg-bottom: #2e4d6f;
  --card-border: rgba(255, 255, 255, 0.55);
  --placeholder-grid: rgba(255, 255, 255, 0.12);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top, rgba(74, 216, 255, 0.18), transparent 55%), linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  min-height: 100%;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("img/s4cfav-512.png");
  background-repeat: no-repeat;
  background-position: 90% 10%;
  background-size: 240px;
  opacity: 0.03;
  pointer-events: none;
  filter: saturate(0) blur(2px);
}

a {
  color: #004cff; 
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(6, 20, 36, 0.25);
  backdrop-filter: blur(14px) saturate(1.3);
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
}

 h1#s4cname {
  font-size: 1.6rem;
  margin: 0;
  color: var(--ink);
  font-family: boldman, "goldman-regular", "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
  font-style: italic;
}

.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

h1 {
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0.02em;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

nav {
  position: relative;
  background: linear-gradient(180deg, #d8dce2 0%, #adb2ba 45%, #7c8188 100%);
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 28px rgba(3, 6, 12, 0.45), inset 0 1px rgba(255, 255, 255, 0.9), inset 0 -1px rgba(0, 0, 0, 0.3);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

nav::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 38%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.8;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  gap: 0;
}

nav li {
  flex: 1 1 140px;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  color: #11141b;
  text-shadow: 0 1px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(189, 194, 204, 0.95));
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

nav li:last-child a {
  border-right: none;
}

.nav-toggle {
  display: none;
  background: linear-gradient(180deg, #ffffff, #d6dbe4);
  border: none;
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #11141b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

nav a:hover,
nav a:focus {
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #d6dbe4);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), inset 0 -1px rgba(0, 0, 0, 0.2);
}

nav a[aria-current="page"] {
  background: linear-gradient(180deg, #ffffff, #cfd5df);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.9), inset 0 -2px rgba(0, 0, 0, 0.28);
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.glass-panel {
  background: var(--glass-bg);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px var(--shadow);
  backdrop-filter: blur(18px) saturate(1.25);
}

.glass-panel h1,h2,h3,h4 {
    margin-top: 0;
    color: #2d2d2d;
    text-shadow: 1px 1px 3px gray;
    font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hero h2 {
  margin-top: 0;
  font-size: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 18px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #fefefe, #dbf9ff);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(6, 20, 36, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--ink);
}

.btn:hover {
  box-shadow: 0 8px 18px rgba(6, 20, 36, 0.2);
}

.app-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-frame {
  border-radius: 28px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05));
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  border-bottom: 4px solid rgba(12, 24, 38, 0.2);
}

.device-frame img {
    max-width: 90%;
}

.device-frame::after {
}

.placeholder-grid {
  position: absolute;
  inset: 12px;
  background-size: 16px 16px;
  background-image: linear-gradient(0deg, var(--placeholder-grid) 1px, transparent 1px), linear-gradient(90deg, var(--placeholder-grid) 1px, transparent 1px);
  border-radius: 20px;
  opacity: 0.7;
}

.app-card h3 {
  margin: 0;
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  text-transform: uppercase;
  font-size: 0.8em;
}

.list-inline li {
  padding-left: 1.2rem;
  position: relative;
}

.list-inline li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.news-item + .news-item {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
  padding-top: 1rem;
}

.news-item h4 {
  margin-bottom: 0.25rem;
}

.faq dt {
  font-weight: 700;
}

.faq dd {
  margin: 0 0 1rem 0;
}

/*conveniences*/

.centred {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
}

.highlight {
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.4rem;
  border-radius: 0.6rem;
}

.small-print {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  header .brand {
    flex-direction: column;
    text-align: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    justify-content: flex-start;
    padding-left: 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  nav li {
    flex: none;
    width: 100%;
  }

  nav li:last-child a {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  nav ul {
    display: none;
  }

  nav.open ul {
    display: flex;
  }

  nav li {
    width: 100%;
    flex: none;
  }

  nav a {
    letter-spacing: 0.05em;
    font-size: 1rem;
  }
}

.mv-0 {
    margin-top: 0;
    margin-bottom: 0;
}
.mt-0 {
    margin-top: 0;
}
