/* SkyMailr marketing site — shared styles */

/* ────────────────────────────────────────────────────────────────────────────
   Reset + base
   ──────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #cfd2dc;
  background: #06070d;
  background-image:
    radial-gradient(at 20% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 40%),
    radial-gradient(at 85% 10%, rgba(236, 72, 153, 0.12) 0px, transparent 45%),
    radial-gradient(at 50% 60%, rgba(56, 189, 248, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ────────────────────────────────────────────────────────────────────────────
   Layout primitives
   ──────────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
}
section {
  padding: 96px 0;
}
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   Header / nav
   ──────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 13, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: #b6bbcc;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-actions .btn:not(.btn-primary) {
    display: none;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -10px rgba(99, 102, 241, 0.6);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px -10px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, #5859e8 0%, #9b46f0 100%);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 10px;
}

/* ────────────────────────────────────────────────────────────────────────────
   Typography
   ──────────────────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5a8ba;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}
p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: #c2c5d6;
  max-width: 640px;
}
.text-muted {
  color: #8a8e9f;
}
.text-gradient {
  background: linear-gradient(120deg, #818cf8 0%, #ec4899 60%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header p {
  font-size: 17px;
  color: #b1b4c5;
  margin-top: 12px;
}

/* ────────────────────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  width: 100%;
}
.hero-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(99, 102, 241, 0.25));
}

/* ────────────────────────────────────────────────────────────────────────────
   Trust strip
   ──────────────────────────────────────────────────────────────────────────── */
.trust {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a2a6b8;
  font-size: 14px;
  font-weight: 500;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────────────────
   Cards / grids
   ──────────────────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12));
  color: #c4cdfa;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card p {
  color: #a1a5b8;
  font-size: 14.5px;
  margin: 0;
}

/* Outcome cards — bigger, more visual */
.outcome-card {
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.14);
  position: relative;
  overflow: hidden;
}
.outcome-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.3) 0%,
    rgba(236, 72, 153, 0.15) 100%
  );
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s;
}
.outcome-card:hover::before {
  opacity: 0.4;
}
.outcome-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.outcome-card p {
  font-size: 15px;
  color: #b6bacb;
}
.outcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.6);
}
.outcome-icon svg {
  width: 28px;
  height: 28px;
}

/* ────────────────────────────────────────────────────────────────────────────
   How it works (diagram)
   ──────────────────────────────────────────────────────────────────────────── */
.diagram-wrap {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.diagram-wrap svg {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────────────────────
   Code block
   ──────────────────────────────────────────────────────────────────────────── */
.code-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .code-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.code-block {
  background: #0a0d18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.08);
}
.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.code-block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2d3b;
}
.code-block-dot.r {
  background: #ff5f56;
}
.code-block-dot.y {
  background: #ffbd2e;
}
.code-block-dot.g {
  background: #27c93f;
}
.code-block-file {
  font-family: "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 12px;
  color: #8c91a3;
  margin-left: 8px;
}
.code-block pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d8dcec;
  background: transparent;
}
.tok-kw {
  color: #c084fc;
}
.tok-fn {
  color: #93c5fd;
}
.tok-str {
  color: #fbbf24;
}
.tok-com {
  color: #6b7280;
  font-style: italic;
}
.tok-num {
  color: #f472b6;
}
.tok-var {
  color: #67e8f9;
}

/* ────────────────────────────────────────────────────────────────────────────
   Use cases (tabs / list)
   ──────────────────────────────────────────────────────────────────────────── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .use-cases {
    grid-template-columns: 1fr;
  }
}
.use-case {
  padding: 32px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}
.use-case h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.use-case ul {
  padding-left: 18px;
  margin: 14px 0 0;
  color: #a8acbe;
  font-size: 14.5px;
}
.use-case ul li {
  margin-bottom: 6px;
}

/* ────────────────────────────────────────────────────────────────────────────
   CTA banner
   ──────────────────────────────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 80px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(99, 102, 241, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  z-index: 1;
}
.cta-banner .lead {
  margin: 16px auto 32px;
  position: relative;
  z-index: 1;
}
.cta-banner .hero-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* ────────────────────────────────────────────────────────────────────────────
   Pricing
   ──────────────────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(99, 102, 241, 0.02) 100%
  );
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2),
    0 30px 60px -30px rgba(99, 102, 241, 0.4);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-name {
  font-size: 14px;
  font-weight: 600;
  color: #cfd2dc;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-amount {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.price-amount small {
  font-size: 15px;
  color: #8b8f9f;
  font-weight: 500;
}
.price-desc {
  color: #969aac;
  font-size: 14px;
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #b6bacb;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.price-features li:first-child {
  border-top: none;
}
.price-features li svg {
  width: 16px;
  height: 16px;
  color: #6366f1;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ────────────────────────────────────────────────────────────────────────────
   Feature list (used on /features.html)
   ──────────────────────────────────────────────────────────────────────────── */
.feature-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-section.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}
.feature-section.reverse > :first-child {
  order: 2;
}
@media (max-width: 860px) {
  .feature-section,
  .feature-section.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-section.reverse > :first-child {
    order: 0;
  }
}
.feature-art {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.feature-art svg {
  width: 100%;
  max-width: 340px;
}

/* ────────────────────────────────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #9498aa;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-brand {
  color: #9498aa;
  font-size: 14px;
  line-height: 1.6;
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #6e7180;
  font-size: 13px;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   404
   ──────────────────────────────────────────────────────────────────────────── */
.not-found {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.not-found h1 {
  font-size: 88px;
  background: linear-gradient(120deg, #818cf8, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
