/* Cloud Development Group — clean, retail-inspired interface */

:root {
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-elevated: #fafafa;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --focus: rgba(0, 113, 227, 0.45);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-full: 980px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 1068px;
  --max-narrow: 692px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.88;
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-desktop a:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px !important;
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.is-open .nav-toggle__bars span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bars span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px 22px 40px;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  border-top: 1px solid var(--border);
}

.site-header.is-open .nav-mobile {
  display: flex;
}

.nav-mobile a {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 14px 12px;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  text-decoration: none;
  background: var(--bg-subtle);
}

.nav-mobile .nav-cta {
  margin-top: 12px;
  text-align: center;
  padding: 14px 20px !important;
  font-size: 17px;
}

@media (max-width: 833px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 834px) {
  .nav-mobile {
    display: none !important;
  }
}

/* —— Layout —— */
main {
  padding-top: var(--nav-h);
}

.section {
  padding: 80px 22px;
}

.section--tight-top {
  padding-top: 48px;
}

.section--subtle {
  background: var(--bg-subtle);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--max-narrow);
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 56px 22px 88px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 55%);
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.33337;
  color: var(--text-secondary);
  max-width: 28ch;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  align-items: center;
}

/* —— AWS focus strip (no APN marks until qualified) —— */
.aws-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 22px;
}

.aws-strip__inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}

.aws-strip__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.aws-strip__title a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.aws-strip__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.aws-strip__sub strong {
  font-weight: 600;
  color: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  font-family: inherit;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  padding-left: 18px;
  padding-right: 18px;
}

.btn--secondary:hover {
  text-decoration: underline;
}

.btn:active {
  transform: scale(0.98);
}

/* —— Section titles —— */
.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.08349;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section__lede {
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 833px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feature-grid--stack {
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.section--subtle .feature-card {
  background: var(--bg-elevated);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.46667;
  color: var(--text-secondary);
  margin: 0;
}

/* —— Statement band —— */
.statement {
  text-align: center;
  padding: 96px 22px;
}

.statement__quote {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 18ch;
}

.statement__body {
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 auto;
}

/* —— Contact —— */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  line-height: 1.23536;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

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

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
}

.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.form-status--error {
  background: #fff2f2;
  color: #6e1a1a;
}

.form-status--info {
  background: #f0f7ff;
  color: #1a3a5c;
}

.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* —— Footer —— */
.site-footer {
  padding: 28px 22px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-tertiary);
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.site-footer__legal {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.site-footer__legal a {
  color: var(--accent);
}

.site-footer__tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.site-footer__tagline a {
  color: var(--accent);
}

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

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--text-secondary);
}

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

/* —— Thank you page —— */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  background: var(--bg-subtle);
}

.thankyou-page__inner {
  text-align: center;
  max-width: 480px;
}

.thankyou-page__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.thankyou-page__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text);
}

.thankyou-page__body {
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.thankyou-page__actions {
  margin: 0;
}
