/* ============================================================
   style.css — Cloud:TbV
   ============================================================ */

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --color-bg:           #0F1923;
  --color-surface:      #1A2633;
  --color-accent:       #00C2FF;
  --color-text:         #E8EDF2;
  --color-text-muted:   #7A8FA6;
  --color-pass:         #22C55E;
  --color-fail:         #EF4444;
  --color-border:       #243447;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-height:  64px;
  --radius:      8px;
  --max-width:   1100px;
  --section-gap: 5rem;
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  color: var(--color-text);
  max-width: 65ch;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #0F1923;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__toggle-input {
  display: none;
}

.nav__toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav__toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-accent);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle-label {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links li:last-child a {
    border-bottom: none;
  }

  .nav__toggle-input:checked ~ .nav__links {
    display: flex;
  }

  /* Animate hamburger → × */
  .nav__toggle-input:checked ~ .nav__toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle-input:checked ~ .nav__toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle-input:checked ~ .nav__toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Page offset for fixed nav */
main {
  padding-top: var(--nav-height);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: var(--section-gap);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__disclaimer {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-style: italic;
}

.footer__copy {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(150deg, #0d1e2e 0%, var(--color-bg) 60%);
  border-bottom: 1px solid var(--color-border);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__subtitle strong {
  color: var(--color-text);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.hero__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Section headings
   ------------------------------------------------------------ */
.section__header {
  margin-bottom: 3rem;
}

.section__header h2 {
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ------------------------------------------------------------
   Problem Statement
   ------------------------------------------------------------ */
.problem {
  background-color: var(--color-surface);
}

.problem__content h2 {
  margin-bottom: 1.25rem;
}

.problem__content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.problem__content p + p {
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------
   Steps (3-step summary on homepage)
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #0F1923;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step__title {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
}

.step__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: none;
}

.steps__cta {
  margin-top: 2.5rem;
}

/* ------------------------------------------------------------
   Feature Cards
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.card__body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: none;
}

/* ------------------------------------------------------------
   Pricing Teaser (homepage)
   ------------------------------------------------------------ */
.price-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.price-teaser__card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-teaser__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.price-teaser__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.price-teaser__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.price-teaser__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: none;
}

/* ------------------------------------------------------------
   Pricing Table (pricing.html)
   ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--color-accent);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #0F1923;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: none;
  margin-top: 0.5rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--color-pass);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.pricing-card__cta {
  display: block;
  text-align: center;
  padding: 0.875rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.pricing-card__cta:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.pricing-card__cta--primary {
  background-color: var(--color-accent);
  color: #0F1923;
}

.pricing-card__cta--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
}

.faq__question {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.faq__answer {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: none;
}

/* ------------------------------------------------------------
   Checks Table
   ------------------------------------------------------------ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background-color: var(--color-surface);
}

th {
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 0.875rem 1.25rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

td:nth-child(2) {
  color: var(--color-text);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge--iam        { background: rgba(0,194,255,0.12);   color: var(--color-accent); }
.badge--s3         { background: rgba(34,197,94,0.12);   color: var(--color-pass); }
.badge--networking { background: rgba(251,146,60,0.12);  color: #fb923c; }
.badge--logging    { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* ------------------------------------------------------------
   Code Block
   ------------------------------------------------------------ */
.code-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   Workflow Steps (how-it-works.html)
   ------------------------------------------------------------ */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.workflow__step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.workflow__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.workflow__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: none;
}

/* ------------------------------------------------------------
   IAM Setup (two-column)
   ------------------------------------------------------------ */
.iam-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.iam-setup__text h2 {
  margin-bottom: 1rem;
}

.iam-setup__text p {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  max-width: none;
}

.iam-setup__text p + p {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .iam-setup {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: 50ch;
}

/* ------------------------------------------------------------
   Post-payment note
   ------------------------------------------------------------ */
.post-payment-note {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 680px;
  margin: 2.5rem auto 0;
}

.post-payment-note p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  max-width: none;
}

/* ------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------ */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  max-width: none;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.todo-placeholder {
  background-color: rgba(0, 194, 255, 0.06);
  border: 1px dashed var(--color-accent);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------
   404 page
   ------------------------------------------------------------ */
.not-found {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found__inner {
  max-width: 400px;
}

.not-found__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.not-found p {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps        { grid-template-columns: 1fr; }
  .cards        { grid-template-columns: 1fr; }
  .price-teaser { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .workflow     { grid-template-columns: 1fr; }
}
