/* 2cloud.solutions — site styles */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0354ff;
  --accent: #00c3ff;
  --accent-light: #7fd8ff;
  --navy: #0b1a3a;
  --navy-2: #124b9e;
  --text: #0f172a;
  --muted: #475569;
  --page: #f5f8fc;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 10px 30px rgba(3, 84, 255, 0.08);
  --shadow-hover: 0 16px 40px rgba(3, 84, 255, 0.14);
  --grad: linear-gradient(135deg, #0b2a6f, #0354ff 60%, #00c3ff);
  --radius: 18px;
  --header-bg: rgba(255, 255, 255, 0.85);
  --logo-wordmark: #124b9e;
  --logo-tagline: #0bafff;
  --link: #0354ff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0a0f1c;
    --card: #111a2e;
    --text: #e8edf5;
    --muted: #9fb0c8;
    --navy: #e8edf5;
    --navy-2: #bcd7ff;
    --line: #1f2a44;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(10, 15, 28, 0.85);
    --logo-wordmark: #e8edf5;
    --logo-tagline: #7fd8ff;
    --link: #6ec1ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--navy); margin: 0 0 0.5em; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
main p a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
ul { margin: 0; padding-left: 1.1em; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.logo { height: 38px; width: auto; display: block; }
.logo .wordmark { fill: var(--logo-wordmark); }
.logo .tagline { fill: var(--logo-tagline); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; font-weight: 500; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--link); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--link); }
.btn-pill, .nav .btn-pill {
  background: var(--primary); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-pill:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  position: absolute; left: 11px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  /* Without JS the menu stays inline and wraps; nav.js adds .js to <html> and enables the toggle. */
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
  .js .nav-toggle { display: block; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px;
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .js .nav a:first-child { border-top: 0; }
  .js .nav .btn-pill { margin-top: 10px; text-align: center; }
}

/* Sections */
.section { padding-block: 64px; }
.section + .section { padding-top: 0; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); font-weight: 700; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 34px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 10px; }

.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { background: var(--card); border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 0.98rem; color: var(--navy); margin-bottom: 4px; }
.tile span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; display: block; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 44px; color: #fff; background: var(--grad);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.btn-light {
  display: inline-block; background: #fff; color: var(--primary); border-radius: 999px;
  padding: 14px 24px; font-weight: 700; text-align: center; overflow-wrap: anywhere;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-light:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.link-light { color: #fff; font-weight: 500; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* Footer */
.site-footer { padding: 28px 0 36px; color: var(--muted); font-size: 0.85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hero (home) */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 72px 0 88px;
  background:
    radial-gradient(1200px 600px at 80% 0%, #00c3ff 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 100%, #0354ff 0%, transparent 60%),
    linear-gradient(135deg, #061a4a, #0b2a6f 50%, #0a3fb0);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.7; }
.b1 { width: 420px; height: 420px; right: -80px; top: -120px; background: #00c3ff; animation: float 6s ease-in-out infinite; }
.b2 { width: 360px; height: 360px; right: 22%; bottom: -160px; background: #0354ff; animation: float 7s ease-in-out infinite 1s; }
.b3 { width: 240px; height: 240px; right: 6%; bottom: 40px; background: #7fd8ff; opacity: 0.45; animation: float 8s ease-in-out infinite 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow-light { color: var(--accent-light); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 .grad { background: linear-gradient(90deg, #7fd8ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-cards { position: relative; min-height: 360px; }
.glass {
  position: absolute; width: 250px; padding: 14px 16px; border-radius: 16px; font-size: 0.8rem; line-height: 1.45;
  color: #fff; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.glass b { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.glass .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7fd8ff; margin-right: 6px; box-shadow: 0 0 10px #7fd8ff; }
.g1 { right: 0; top: 0; animation: float 6s ease-in-out infinite; }
.g2 { right: 120px; top: 130px; animation: float 7s ease-in-out infinite 1s; }
.g3 { right: 20px; top: 260px; animation: float 8s ease-in-out infinite 2s; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { min-height: 0; display: grid; gap: 12px; }
  .glass { position: static; width: auto; }
}

/* Compliance strip */
.strip { background: var(--card); border-bottom: 1px solid var(--line); }
.strip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 18px; }
.strip-row b { display: block; color: var(--link); font-size: 0.95rem; letter-spacing: 0.04em; }
.strip-row span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 760px) { .strip-row { grid-template-columns: 1fr; gap: 10px; } }

/* How we work */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.steps b { display: block; color: var(--navy); margin-bottom: 2px; }
.steps span:not(.n) { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }

/* Stack row */
.stack { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.stack-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; }
.stack-row span { font-weight: 700; color: var(--muted); letter-spacing: 0.02em; font-size: 0.95rem; }

/* Page intro + Work */
.page-intro { padding-top: 56px; padding-bottom: 8px; }
.page-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.case-customer { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--link); background: rgba(3, 84, 255, 0.10); padding: 4px 10px; border-radius: 999px; }
.case h2 { font-size: 1.3rem; margin-bottom: 12px; }
.case dl { margin: 0; font-size: 0.93rem; }
.case dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 12px; }
.case dd { margin: 2px 0 0; color: var(--text); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

/* Text pages */
.narrow { max-width: 760px; }
.subtitle { color: var(--muted); font-size: 1.02rem; margin-bottom: 24px; }
.pull { margin: 0; padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); font-size: 1.15rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.prose p { color: var(--text); margin-bottom: 1.1em; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.contact-mail { font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 700; overflow-wrap: anywhere; margin-bottom: 8px; }
.contact-meta { color: var(--muted); }
@media (max-width: 480px) {
  .cta-band .btn-light { font-size: 0.9rem; padding: 12px 16px; }
}
