/* ============================================
   Cloud Foundations — Custom Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary: #0a0f1a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --surface: #f7f8fa;
  --surface-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8fa3;
  --white: #ffffff;
  --border: #e8eaef;
  --border-light: #f0f1f4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ---- NAVIGATION ---- */
.scc-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.scc-hero {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.scc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(99,102,241,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.scc-hero > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.scc-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.scc-hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 0 2.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-diagram svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Diagram animations */
.node-anim {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.badge-float {
  opacity: 0;
  animation: fadeInFloat 0.8s ease forwards;
}

.line-anim {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.5s ease forwards 0.3s;
}

@keyframes fadeInUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInFloat {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Sub-page hero (centered, no grid) */
.scc-hero-simple {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scc-hero-simple::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(99,102,241,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.scc-hero-simple > * {
  position: relative;
  z-index: 1;
}

.scc-hero-simple h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.scc-hero-simple .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.cta-btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* ---- SECTIONS ---- */
.scc-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.scc-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.scc-section .section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.scc-section-alt {
  background: var(--surface);
}

/* ---- SERVICE CARDS ---- */
.scc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.scc-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.scc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scc-card .card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent);
}

.scc-card .card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

/* Icon in section headings */
.icon-heading {
  vertical-align: -5px;
  margin-right: 0.35rem;
  color: var(--accent);
  stroke-width: 1.75;
}

/* Icon in audience headings */
.scc-audience h3 svg.icon {
  vertical-align: -4px;
  margin-right: 0.3rem;
  color: var(--accent);
  stroke-width: 1.75;
}

.scc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.scc-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.925rem;
}

/* ---- AUDIENCE SEGMENTS ---- */
.scc-audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.scc-audience {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.scc-audience:hover {
  box-shadow: var(--shadow-sm);
}

.scc-audience h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.scc-audience ul {
  list-style: none;
  padding: 0;
}

.scc-audience ul li {
  padding: 0.45rem 0;
  color: var(--text-secondary);
  font-size: 0.925rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.scc-audience ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.5em;
}

/* ---- SOCIAL PROOF ---- */
.scc-proof {
  background: var(--surface);
  padding: 6rem 2rem;
}

.scc-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.scc-proof-item {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.scc-proof-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scc-proof-item .proof-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.scc-proof-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.scc-proof-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- CREDENTIALS ---- */
.scc-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.scc-cred-badge {
  background: var(--accent-subtle);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- CTA BANNER ---- */
.scc-cta-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.scc-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.scc-cta-banner > * {
  position: relative;
  z-index: 1;
}

.scc-cta-banner h2 {
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.scc-cta-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ---- FOOTER ---- */
.scc-footer {
  background: var(--primary);
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.825rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.scc-footer p {
  color: rgba(255,255,255,0.4);
}

.scc-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.scc-footer a:hover {
  color: var(--white);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.6rem 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Blog post body */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-post .blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-post h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.blog-post h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.blog-post p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-post ul, .blog-post ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text);
}

.blog-post li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.blog-post code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent);
}

.blog-post .blog-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.blog-post .blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ---- CONTACT FORM ---- */
.scc-form {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.scc-form .cta-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .scc-hero {
    padding: 3.5rem 1.5rem 3rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-text {
    text-align: center;
  }
  .scc-hero h1 {
    font-size: 2.1rem;
  }
  .scc-hero .subtitle {
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-diagram svg {
    max-width: 360px;
  }
  .scc-section {
    padding: 4rem 1.5rem;
  }
  .scc-section h2 {
    font-size: 1.75rem;
  }
  .scc-services-grid {
    grid-template-columns: 1fr;
  }
  .scc-audiences {
    grid-template-columns: 1fr;
  }
  .scc-proof {
    padding: 4rem 1.5rem;
  }
  .scc-proof-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a::after {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .scc-cta-banner {
    padding: 4rem 1.5rem;
  }
  .scc-cta-banner h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .scc-hero h1 {
    font-size: 1.85rem;
  }
  .scc-card {
    padding: 1.5rem;
  }
}
