/* CloudStore SA — Services-as-products catalogue
   Dark mode, clean (NOT terminal). Product-tile service cards.
   Space Grotesk headlines + Inter body. Subtle green accent. */
:root {
  --bg: #0b0d10;
  --bg-card: #13161c;
  --bg-elev: #1a1f28;
  --bg-hover: #222832;
  --line: #252a34;
  --line-soft: #1e2229;
  --ink: #f4f5f7;
  --ink-2: #c7cbd1;
  --ink-3: #8a8f98;
  --muted: #5a5f69;
  --green: #22c55e;
  --green-br: #4ade80;
  --green-soft: rgba(34, 197, 94, 0.12);
  --purple: #a78bfa;

  --f-display: "Space Grotesk", -apple-system, "Helvetica Neue", sans-serif;
  --f-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============ NAV — horizontal pill with mega-links ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--green);
  color: var(--bg);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--ink-3);
  border-radius: 8px;
  transition: all .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-card); }
.nav-links a.active { color: var(--green-br); background: var(--green-soft); }
.nav-cta {
  padding: 10px 20px !important;
  background: var(--ink) !important;
  color: var(--bg) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green) !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  transition: all .2s;
  cursor: pointer;
}
.btn:hover { background: var(--green-br); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-hover); transform: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-br);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-left .pill .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero-h1 .green { color: var(--green-br); }
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Right: service preview card stack */
.hero-right {
  position: relative;
  min-height: 380px;
}
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: absolute;
  width: 100%;
  transition: all .3s;
}
.preview-card:nth-child(1) {
  transform: rotate(-3deg) translateY(40px);
  top: 0;
  left: -20px;
  z-index: 1;
  opacity: 0.7;
}
.preview-card:nth-child(2) {
  transform: rotate(2deg) translateY(10px);
  top: 80px;
  left: 10px;
  z-index: 2;
  opacity: 0.85;
}
.preview-card:nth-child(3) {
  transform: rotate(-1deg);
  top: 160px;
  left: 40px;
  z-index: 3;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.preview-card .pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.preview-card .pc-head .status {
  padding: 2px 8px;
  background: var(--green-soft);
  color: var(--green-br);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.preview-card h4 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.preview-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============ CATALOGUE — services as product tiles ============ */
.catalogue {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.cat-head h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.cat-head .count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-br), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.tile:hover {
  background: var(--bg-elev);
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-4px);
}
.tile:hover::before { opacity: 1; }

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.tile-cat {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green-br);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 4px;
}
.tile-sku {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.tile h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.tile-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 24px;
}

.tile-includes {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 20px;
}
.tile-includes h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tile-includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.tile-includes li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.tile-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tile-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.tile-meta .ok { color: var(--green-br); }
.tile-more {
  font-size: 13px;
  color: var(--green-br);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}
.tile:hover .tile-more { gap: 10px; }

/* ============ PLATFORM STRIP ============ */
.platform {
  padding: 72px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.platform-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.platform-left h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 14ch;
}
.platform-left p {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 30ch;
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.platform-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.platform-item .ic {
  width: 44px; height: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--green-br);
}
.platform-item .name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.platform-item .sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============ CTA ============ */
.cta {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.cta-inner .green { color: var(--green-br); }
.cta-inner p {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 48ch;
  margin: 0 auto 32px;
}

/* ============ FOOTER ============ */
.foot { padding: 60px 0 24px; background: var(--bg-card); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.foot-brand .logo .mk {
  width: 32px; height: 32px;
  background: var(--green);
  color: var(--bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
}
.foot-brand .logo .name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.foot-brand p { font-size: 14px; color: var(--ink-3); max-width: 320px; }
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green-br);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 14px; color: var(--ink-3); }
.foot-col a { color: var(--ink-3); transition: color .15s; }
.foot-col a:hover { color: var(--green-br); }
.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { min-height: 320px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile-includes ul { grid-template-columns: 1fr; }
  .platform-inner { grid-template-columns: 1fr; gap: 24px; }
  .platform-list { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bot { flex-direction: column; gap: 6px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .nav-cta { display: none; }
}

.in { animation: in .8s cubic-bezier(.2,.6,.2,1) both; }
.in.d1 { animation-delay: .1s; }
.in.d2 { animation-delay: .2s; }
.in.d3 { animation-delay: .3s; }
@keyframes in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
