/* ===================================================================
   Triangle Cloud Solutions — styles.css
   Modern, responsive marketing site. No build step required.
   =================================================================== */

:root {
  /* palette */
  --bg:            #0b1220;
  --bg-soft:       #0f1a2e;
  --surface:       #ffffff;
  --surface-alt:   #f5f8fc;
  --ink:           #0b1220;
  --ink-soft:      #475569;
  --ink-mute:      #64748b;
  --line:          #e2e8f0;
  --line-dark:     #1e293b;

  --brand:         #2563eb;
  --brand-2:       #38bdf8;
  --brand-3:       #6366f1;
  --accent:        #f59e0b;

  --radius:        16px;
  --radius-sm:     10px;
  --shadow-sm:     0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  --shadow-md:     0 8px 30px rgba(15,23,42,.10);
  --shadow-lg:     0 24px 60px rgba(15,23,42,.16);

  --grad:          linear-gradient(120deg, #38bdf8 0%, #6366f1 100%);
  --grad-soft:     linear-gradient(120deg, rgba(56,189,248,.12), rgba(99,102,241,.12));

  --font:          'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head:     'Sora', 'Inter', system-ui, sans-serif;

  --container:     1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------------- Buttons ---------------- */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --pad: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(56,130,246,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(56,130,246,.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-mark { flex: none; }
.brand-accent { color: var(--brand); }

.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: .96rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--bg); color: #e7eefc; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 15% 10%, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(99,102,241,.28), transparent 60%),
    radial-gradient(60% 60% at 60% 100%, rgba(37,99,235,.18), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding: 84px 24px 64px;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow-light { color: var(--brand-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(56,189,248,.18); }

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #b6c4e0; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-cta .btn-ghost { color: #e7eefc; border-color: rgba(148,163,184,.4); }
.hero-cta .btn-ghost:hover { border-color: var(--brand-2); color: #fff; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #9fb0d0; font-size: .92rem; }
.hero-trust li { position: relative; padding-left: 20px; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.hero-trust strong { color: #e7eefc; font-weight: 600; }

/* hero panel / stat card */
.hero-panel { position: relative; }
.panel-glow { position: absolute; inset: -20% -10% -20% -10%; background: var(--grad); filter: blur(60px); opacity: .25; border-radius: 50%; }
.stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 20px; padding: 30px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: 1;
  background: linear-gradient(120deg,#7dd3fc,#a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; margin-top: 8px; font-size: .86rem; color: #9fb0d0; }
.stat-divider { height: 1px; background: rgba(148,163,184,.2); margin: 22px 0; }

/* Hero value-props panel */
.panel-title { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: #e7eefc; margin-bottom: 18px; }
.value-list { display: grid; gap: 14px; }
.value-list li { position: relative; padding-left: 30px; color: #cdd8ee; font-size: .96rem; line-height: 1.45; }
.value-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; color: #0b1220;
  background: linear-gradient(120deg,#7dd3fc,#a5b4fc);
}

/* providers strip */
.providers { position: relative; z-index: 1; padding: 8px 24px 48px; text-align: center; }
.providers-label { color: #8fa1c4; font-size: .85rem; margin-bottom: 18px; }
.providers-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  font-family: var(--font-head); font-weight: 700; color: #cdd8ee; font-size: 1.05rem;
  opacity: .85;
}
.providers-list li { transition: color .2s ease; }
.providers-list li:hover { color: #fff; }

/* ---------------- Sections ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }
.body-text { margin-top: 16px; color: var(--ink-soft); }

/* ---------------- Services cards ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Services catalog: centered flex so any card count fills rows cleanly and a
   lone last card centers instead of stranding in a corner. */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.services-grid .card { flex: 1 1 300px; max-width: calc((100% - 48px) / 3); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7d6ef; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand); margin-bottom: 18px;
}
.card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card-list { margin-top: 16px; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .92rem; }
.card-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------------- Two-column ---------------- */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.two-col-reverse .two-col-copy { order: 1; }
.two-col h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }

.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); }
.platform p { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; }
.platform-badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; color: #fff; }
.platform-badge.aws { background: linear-gradient(120deg,#ff9900,#ec7211); }
.platform-badge.azure { background: linear-gradient(120deg,#0089d6,#0072c6); }
.platform-badge.gcp { background: linear-gradient(120deg,#4285f4,#34a853); }
.platform-badge.tools { background: linear-gradient(120deg,#64748b,#334155); }

.cert-panel {
  background: var(--bg); color: #e7eefc; border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cert-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0, rgba(99,102,241,.35), transparent 60%); }
.cert-panel h3 { position: relative; font-size: 1.3rem; margin-bottom: 20px; }
.cert-list { position: relative; display: grid; gap: 14px; margin-bottom: 26px; }
.cert-list li { display: flex; gap: 12px; font-size: .96rem; color: #cdd8ee; }
.cert-list .check { color: #34d399; font-weight: 800; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ---------------- Results (dark) ---------------- */
.section-dark { background: var(--bg); color: #e7eefc; }
.section-dark .section-sub { color: #9fb0d0; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.result-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(148,163,184,.18); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.result-tag { align-self: flex-start; font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-2); background: rgba(56,189,248,.12); padding: 5px 12px; border-radius: 999px; }
.result-quote { font-size: 1.02rem; color: #dbe4f6; }
.result-card h3 { font-family: var(--font-head); font-size: 1.28rem; color: #fff; }
.result-desc { font-size: 1rem; color: #c3d0e8; }
.result-metrics { display: flex; gap: 28px; margin-top: auto; }
.result-metrics strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.result-metrics span { font-size: .82rem; color: #9fb0d0; }
.result-attr { font-size: .86rem; color: #8fa1c4; border-top: 1px solid rgba(148,163,184,.15); padding-top: 14px; }

/* ---------------- About ---------------- */
.about-stats { display: flex; gap: 22px; margin-top: 30px; }
.about-stats > div { flex: 1; }
.about-stats strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.about-stats span { font-size: .88rem; color: var(--ink-mute); }

.about-visual { display: grid; place-items: center; }
.orbit { position: relative; width: 320px; height: 320px; max-width: 100%; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px dashed var(--line); border-radius: 50%; }
.orbit::before { inset: 0; }
.orbit::after { inset: 52px; }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 12px 30px rgba(56,130,246,.4);
}
.orbit-node {
  position: absolute; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}
.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.n2 { top: 40%; right: -30px; animation-delay: .6s; }
.n3 { bottom: 6px; left: 66%; animation-delay: 1.2s; }
.n4 { bottom: 20%; left: -28px; animation-delay: 1.8s; }
.n5 { top: 24%; left: -18px; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(var(--tx,0)); } 50% { transform: translateY(-8px) translateX(var(--tx,0)); } }
.n1 { --tx: -50%; }

/* ---------------- CTA / Contact ---------------- */
.section-cta { background: linear-gradient(160deg, #0b1220 0%, #10203c 100%); color: #e7eefc; }
.cta-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.cta-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta-copy .section-sub { color: #9fb0d0; }
.cta-contact { margin-top: 28px; display: grid; gap: 14px; }
.cta-contact li { display: flex; align-items: center; gap: 12px; color: #cdd8ee; }
.cta-contact a:hover { color: #fff; text-decoration: underline; }
.cta-contact .ci { color: var(--brand-2); width: 20px; text-align: center; }

.contact-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.2);
  border-radius: var(--radius); padding: 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: #b6c4e0; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: .96rem; color: #eaf1ff;
  background: rgba(11,18,32,.6); border: 1px solid rgba(148,163,184,.28); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
.field select option { color: #0b1220; }
.field input.invalid, .field textarea.invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.18); }
/* Honeypot — visually and physically removed for humans, still in the DOM for bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }
.form-note.ok { color: #34d399; }
.form-note.err { color: #f87171; }

/* ---------------- Footer ---------------- */
.site-footer { background: #070c16; color: #9fb0d0; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #e7eefc; }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: .92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-bottom: 14px; }
.footer-nav a { display: block; padding: 5px 0; font-size: .92rem; color: #b6c4e0; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .86rem; }
.footer-legal a:hover { color: #fff; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-panel { max-width: 460px; }
  .two-col, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .two-col-reverse .two-col-copy { order: 0; }
  .cards-grid, .results-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .card { max-width: calc((100% - 24px) / 2); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .main-nav .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; z-index: 120;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #ffffff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 12px 24px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav .nav-links a { color: var(--ink); }
  .main-nav .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-grid, .results-grid, .steps, .platform-grid, .footer-nav { grid-template-columns: 1fr; }
  .services-grid .card { max-width: 100%; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .hero-trust { gap: 14px; }
}
