/* MemoVisit modern website style */

:root {
  --bg: #070b1f;
  --bg-soft: #0f1737;
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --text: #11182f;
  --text-soft: #5f6780;
  --primary: #3ecf8e;
  --primary-dark: #17ab6e;
  --navy: #0e1430;
  --line: #dde5ff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 12px 35px rgba(15, 35, 95, 0.18);
  --shadow-soft: 0 10px 25px rgba(10, 25, 70, 0.08);
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-heading: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(62, 207, 142, 0.22), transparent 35%),
    radial-gradient(circle at 85% -20%, rgba(103, 139, 255, 0.3), transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 60%, #e9eeff 100%);
  min-height: 100vh;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(9, 15, 35, 0.75);
  border-bottom: 1px solid rgba(214, 227, 255, 0.22);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand img {
  width: 42px;
  height: 42px;
  mix-blend-mode: screen; /* removes black background, keeps white logo */
}

.nav-link {
  color: #d8e3ff;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  color: #ffffff;
}

main {
  flex: 1;
}

.hero-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #9fc0ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  color: #dbe3ff;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  max-width: 43ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #071726;
  background: linear-gradient(135deg, #3ecf8e 0%, #7ff0bb 100%);
  box-shadow: 0 8px 20px rgba(38, 211, 137, 0.35);
}

.btn-ghost {
  color: #e9efff;
  border: 1px solid rgba(229, 238, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(214, 226, 255, 0.14);
}

.highlights {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #f1f4ff;
  font-size: 0.96rem;
}

.highlights li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.screen-card {
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.15), rgba(192, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-card);
}

.screen-card img {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
  display: block;
  border-radius: 18px;
}

.features-section {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.features-section h2 {
  margin: 0 0 1.4rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  color: #f9fbff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Privacy page */
.policy-main {
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 4rem;
}

.policy-header {
  text-align: left;
  margin-bottom: 1.15rem;
}

.policy-header h1 {
  margin: 0.3rem 0 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3rem);
}

.policy-content .container {
  display: grid;
  gap: 0.9rem;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.05rem, 1.8vw, 1.3rem);
  box-shadow: var(--shadow-soft);
}

.policy-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--navy);
}

.policy-card p {
  margin: 0;
  color: var(--text-soft);
}

.policy-card p + ul,
.policy-card ul + p {
  margin-top: 0.5rem;
}

.policy-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.policy-card li {
  margin-bottom: 0.35rem;
}

.policy-card li:last-child {
  margin-bottom: 0;
}

.update-date {
  margin-top: 0.8rem !important;
  font-weight: 700;
  color: #3d4f8e !important;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 0.9rem;
}

.blog-card h2 {
  font-size: 1.05rem;
}

.blog-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.blog-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.blog-read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article-body h1 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 800;
}

.article-body h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.45rem;
}

.article-body h2:first-of-type {
  margin-top: 0.75rem;
}

.article-meta {
  margin: 0 0 0.5rem !important;
  font-size: 0.9rem;
  color: var(--text-soft) !important;
}

.article-meta a {
  color: var(--primary);
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-cta {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy) !important;
}

.article-cta a {
  color: var(--primary);
  text-decoration: none;
}

.article-cta a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(183, 200, 245, 0.35);
  background: rgba(9, 15, 36, 0.75);
}

.footer-inner {
  padding: 1rem 0;
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.site-footer a,
.site-footer p {
  margin: 0;
  color: #cedbff;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .screen-card img {
    max-width: 340px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    min-height: 66px;
  }

  .brand span {
    display: none;
  }

  .lead {
    max-width: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}
