/* SamCloud — AI & Automation for SMBs
   Dark, modern design system: Space Grotesk + Inter,
   indigo→violet→cyan gradient accents, glass surfaces. */

:root {
  --bg: #070b14;
  --bg-raise: #0c1322;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #e6ecf5;
  --muted: #97a3b8;
  --indigo: #6366f1;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(100deg, #6366f1 0%, #a855f7 55%, #22d3ee 120%);
  --grad-soft: linear-gradient(100deg, rgba(99,102,241,.16), rgba(168,85,247,.12), rgba(34,211,238,.10));
  --radius: 16px;
  --glow: 0 0 40px rgba(99, 102, 241, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

/* ---------- Utilities ---------- */

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--grad);
}

.section-heading { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 20px; }
.section-intro { max-width: 660px; font-size: 17px; }

.centered { text-align: center; }
.centered .section-intro { margin-left: auto; margin-right: auto; }
.centered .eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--grad); }

section { padding: 100px 0; position: relative; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 46px; filter: invert(1) hue-rotate(180deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active { color: var(--text); }

.main-nav a.nav-cta {
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 600;
  font-size: 14px;
}

.main-nav a.nav-cta:hover { box-shadow: var(--glow); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn-primary { background: var(--grad); color: #fff; border: 0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }

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

.btn-ghost:hover { border-color: var(--indigo); color: #fff; transform: translateY(-2px); }

.text-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan);
}

.text-link::after { content: " →"; }
.text-link:hover { color: #7de8fb; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 15%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 40% at 70% 95%, rgba(168, 85, 247, 0.13), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { font-size: clamp(38px, 5.2vw, 60px); margin-bottom: 24px; }
.hero .lead { font-size: 19px; margin-bottom: 36px; max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-note { margin-top: 18px; font-size: 13.5px; color: #6b7689; }

/* ---------- Stats strip ---------- */

.stats-strip {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 34px 0;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label { font-size: 14px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(255, 255, 255, 0.055);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--surface-border);
  color: var(--cyan);
  margin-bottom: 22px;
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { font-size: 14.5px; flex: 1; margin-bottom: 20px; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 56px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 38px 30px 32px;
}

.step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.check-list { list-style: none; margin-top: 26px; }

.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  margin-top: 3px;
}

.check-list .sub { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }

/* ---------- Tool pills ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ---------- Visual panel (hero graphic) ---------- */

.viz {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.viz svg { display: block; width: 100%; height: auto; }

.viz .chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(12, 19, 34, 0.92);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.viz .chip .tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 10px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px 34px;
  text-align: left;
  position: relative;
}

.price-card.featured {
  border-color: rgba(99, 102, 241, 0.65);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.18);
}

.price-card .flag {
  position: absolute;
  top: -13px;
  left: 34px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 4px 14px;
}

.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .tagline { font-size: 13.5px; margin-bottom: 22px; }

.price {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 26px;
}

.price .currency { font-size: 22px; vertical-align: 14px; margin-right: 2px; }
.price .period { font-size: 15px; color: var(--muted); font-weight: 400; }

.price-card ul { list-style: none; margin-bottom: 30px; font-size: 14.5px; }

.price-card li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); }

.price-card li.unavailable { color: #525e70; text-decoration: line-through; }
.price-card li.unavailable::before { content: "✕"; color: #3c4657; }

/* ---------- CTA banner ---------- */

.cta-banner { padding: 40px 0 110px; }

.cta-banner .inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(99, 102, 241, 0.3), transparent 70%),
    radial-gradient(ellipse 50% 80% at 85% 110%, rgba(34, 211, 238, 0.16), transparent 70%),
    var(--bg-raise);
  text-align: center;
  padding: 80px 40px;
}

.cta-banner h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.cta-banner p { max-width: 560px; margin: 0 auto 34px; font-size: 17px; }

/* ---------- Blurbs / mini features ---------- */

.blurb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.blurb {
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--indigo), var(--cyan)) 1;
  padding-left: 24px;
  text-align: left;
}

.blurb h3 { font-size: 18px; margin-bottom: 10px; }
.blurb p { font-size: 14.5px; margin-bottom: 14px; }

/* ---------- Service rows ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 56px;
}

.service-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
}

.service-item .mini-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--surface-border);
  color: var(--cyan);
}

.service-item .mini-icon svg { width: 20px; height: 20px; }
.service-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.service-item p { font-size: 14px; }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 50% -10%, rgba(99, 102, 241, 0.22), transparent 65%),
    var(--bg);
}

.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 16px; }
.page-hero p { font-size: 17.5px; max-width: 640px; margin: 0 auto; }

/* ---------- Contact ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.contact-card .label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 2.5px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.contact-card a { font-weight: 600; }
.contact-card p { color: var(--text); }

/* ---------- Forms ---------- */

.contact-form {
  max-width: 680px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.contact-form label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--indigo);
  border-color: transparent;
}

.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form .opt {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  text-align: center;
  font-size: 15px;
}

.form-status.success { color: var(--green); }
.form-status.error { color: #f87171; }

/* ---------- Blog ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 44px;
}

.post-card h2 { font-size: 27px; margin-bottom: 10px; }
.post-card p { margin-bottom: 16px; }
.post-card p:last-child { margin-bottom: 0; }

.post-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 20px;
}

.sidebar h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  margin: 30px 0 12px;
}

.sidebar h4:first-child { margin-top: 0; }
.sidebar ul { list-style: none; font-size: 15px; }
.sidebar li { margin-bottom: 8px; }

/* ---------- Prose ---------- */

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 42px 0 14px; }
.prose ul { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 10px; }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--surface-border);
  background: #05080f;
  padding: 64px 0 34px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 48px;
}

.footer-brand img { height: 42px; filter: invert(1) hue-rotate(180deg); margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }

.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: #5d6878;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section { padding: 70px 0; }

  .hero { padding: 80px 0 70px; }
  .hero .container, .split, .blog-layout { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-form { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--surface-border);
    padding: 18px 24px 26px;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- ROI calculator ---------- */

.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: stretch;
}

.roi-controls {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roi-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.roi-field output {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.roi-field input[type="range"] {
  width: 100%;
  accent-color: var(--indigo);
  cursor: pointer;
}

.roi-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: auto 0 0;
}

.roi-output {
  background: var(--grad-soft);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.roi-output .label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 2.5px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--cyan);
}

.roi-big {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
}

.roi-substats {
  display: flex;
  gap: 40px;
  margin: 14px 0 24px;
}

.roi-substats .num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
}

.roi-substats .sub { font-size: 13px; }

@media (max-width: 900px) {
  .roi-grid { grid-template-columns: 1fr; gap: 24px; }
}
