/* =========================================================================
   AOFY — Cloud / VDS Infrastructure Landing
   Design tokens + component styles. Vanilla CSS, no preprocessor required.
   ========================================================================= */

/* ---------------------------------------------------------------------
   0. Reset & tokens
   --------------------------------------------------------------------- */
:root {
  --aofy-bg: #ffffff;
  --aofy-bg-alt: #f6f6f8;
  --aofy-bg-soft: #f0f0f3;
  --aofy-surface: #ffffff;
  --aofy-surface-2: #f4f4f6;
  --aofy-surface-hover: #ececef;
  --aofy-border: rgba(10, 10, 15, 0.09);
  --aofy-border-strong: rgba(10, 10, 15, 0.16);
  --aofy-text: #0a0a0c;
  --aofy-muted: #5c5c66;
  --aofy-muted-2: #96969e;
  --aofy-red: #ef2d2d;
  --aofy-red-dark: #b3190f;
  --aofy-red-soft: rgba(239, 45, 45, 0.09);
  --aofy-red-glow: rgba(239, 45, 45, 0.28);
  --aofy-green: #1f9d5c;

  --aofy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --aofy-font-mono: "SF Mono", "Roboto Mono", "Courier New", monospace;

  --aofy-radius-sm: 10px;
  --aofy-radius-md: 16px;
  --aofy-radius-lg: 24px;
  --aofy-radius-pill: 999px;

  --aofy-container: 1240px;
  --aofy-header-h: 76px;

  --aofy-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html,
body {
  background: var(--aofy-bg);
  color: var(--aofy-text);
}

body {
  margin: 0;
  font-family: var(--aofy-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

section {
  position: relative;
}

::selection {
  background: var(--aofy-red);
  color: #fff;
}

/* Scrollbar (webkit) — subtle, on-brand */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--aofy-bg);
}
::-webkit-scrollbar-thumb {
  background: #d4d4d9;
  border-radius: 10px;
  border: 2px solid var(--aofy-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #b9b9c0;
}

/* Focus visibility for a11y without ruining the aesthetic */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aofy-red);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   1. Typography helpers
   --------------------------------------------------------------------- */
.aofy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aofy-red);
  background: var(--aofy-red-soft);
  border: 1px solid rgba(255, 61, 61, 0.25);
  padding: 7px 14px;
  border-radius: var(--aofy-radius-pill);
}

.aofy-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aofy-red);
  box-shadow: 0 0 8px var(--aofy-red-glow);
}

.aofy-section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.aofy-section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.aofy-section-head .aofy-eyebrow {
  margin-bottom: 18px;
}

.aofy-h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.aofy-lede {
  font-size: 17px;
  color: var(--aofy-muted);
  line-height: 1.6;
}

.aofy-text-red {
  color: var(--aofy-red);
}

/* ---------------------------------------------------------------------
   2. Buttons
   --------------------------------------------------------------------- */
.aofy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--aofy-radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--aofy-ease), background 0.25s var(--aofy-ease),
    border-color 0.25s var(--aofy-ease), box-shadow 0.25s var(--aofy-ease), color .25s var(--aofy-ease);
  white-space: nowrap;
}

.aofy-btn svg {
  width: 16px;
  height: 16px;
}

.aofy-btn-primary {
  background: var(--aofy-red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--aofy-red-glow);
}

.aofy-btn-primary:hover {
  background: #d81f1f;
  box-shadow: 0 8px 26px -6px var(--aofy-red-glow);
  transform: translateY(-1px);
}

.aofy-btn-secondary {
  background: transparent;
  color: var(--aofy-text);
  border-color: var(--aofy-border-strong);
}

.aofy-btn-secondary:hover {
  background: rgba(10, 10, 15, 0.05);
  border-color: rgba(10, 10, 15, 0.35);
}

.aofy-btn-ghost {
  background: rgba(10, 10, 15, 0.04);
  color: var(--aofy-text);
  border-color: var(--aofy-border);
  padding: 10px 18px;
  font-size: 14px;
}

.aofy-btn-ghost:hover {
  background: rgba(10, 10, 15, 0.07);
}

.aofy-btn-block {
  width: 100%;
}

.aofy-btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.aofy-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   3. Header
   --------------------------------------------------------------------- */
.aofy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--aofy-header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--aofy-ease), border-color 0.35s var(--aofy-ease), backdrop-filter 0.35s var(--aofy-ease);
}

.aofy-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: var(--aofy-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.aofy-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.aofy-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aofy-text);
  flex-shrink: 0;
}

.aofy-logo__mark {
  width: 38px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.35s var(--aofy-ease);
}

.aofy-logo:hover .aofy-logo__mark {
  transform: translateX(-2px);
}

.aofy-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.aofy-logo__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.aofy-logo__tld {
  color: var(--aofy-red);
  font-weight: 700;
}

.aofy-logo__tagline {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aofy-muted-2);
}

.aofy-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.aofy-nav a {
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--aofy-muted);
  border-radius: var(--aofy-radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.aofy-nav a:hover {
  color: var(--aofy-text);
  background: rgba(10, 10, 15, 0.05);
}

.aofy-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aofy-login-link {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--aofy-muted);
  transition: color 0.2s ease;
}

.aofy-login-link:hover {
  color: var(--aofy-text);
}

.aofy-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--aofy-radius-sm);
  border: 1px solid var(--aofy-border);
  background: rgba(10, 10, 15, 0.03);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aofy-burger span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--aofy-text);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.aofy-burger span::before,
.aofy-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--aofy-text);
  transition: transform 0.25s ease;
}

.aofy-burger span::before {
  top: -6px;
}
.aofy-burger span::after {
  top: 6px;
}

.aofy-burger.is-active span {
  background: transparent;
}
.aofy-burger.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}
.aofy-burger.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.aofy-mobile-menu {
  position: fixed;
  inset: var(--aofy-header-h) 0 0 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--aofy-ease), transform 0.25s var(--aofy-ease);
  overflow-y: auto;
}

.aofy-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.aofy-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aofy-mobile-menu a {
  padding: 14px 4px;
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--aofy-border);
}

.aofy-mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* ---------------------------------------------------------------------
   4. Hero
   --------------------------------------------------------------------- */
.aofy-hero {
  padding: calc(var(--aofy-header-h) + 84px) 0 96px;
  background:
    radial-gradient(1200px 480px at 78% -10%, rgba(255, 61, 61, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(10, 10, 15, 0.035), transparent 55%),
    var(--aofy-bg);
  overflow: hidden;
}

.aofy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.aofy-hero__content h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 20px 0 22px;
}

.aofy-hero__content .aofy-lede {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}

.aofy-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.aofy-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.aofy-hero__checks li {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--aofy-muted);
  font-weight: 500;
}

.aofy-hero__checks svg {
  width: 15px;
  height: 15px;
  color: var(--aofy-red);
  flex-shrink: 0;
}

/* Hero visual: server infrastructure composition */
.aofy-hero__visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aofy-rig {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--aofy-radius-lg);
  background: linear-gradient(180deg, var(--aofy-surface) 0%, var(--aofy-bg-soft) 100%);
  border: 1px solid var(--aofy-border);
  box-shadow: 0 40px 90px -35px rgba(20, 20, 35, 0.16);
}

.aofy-rig::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(239, 45, 45, 0.35), transparent 40%, transparent 70%, rgba(10, 10, 15, 0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.aofy-rig__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--aofy-surface-2);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-sm);
  overflow: hidden;
}

.aofy-rig__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aofy-red);
  box-shadow: 0 0 10px var(--aofy-red-glow);
  flex-shrink: 0;
  animation: aofy-pulse 2.4s ease-in-out infinite;
}

.aofy-rig__node:nth-child(2) .aofy-rig__led { animation-delay: .3s; }
.aofy-rig__node:nth-child(3) .aofy-rig__led { animation-delay: .6s; }
.aofy-rig__node:nth-child(4) .aofy-rig__led { animation-delay: .9s; }

.aofy-rig__label {
  flex: 1;
  min-width: 0;
}

.aofy-rig__label strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.aofy-rig__label span {
  display: block;
  font-size: 11.5px;
  color: var(--aofy-muted-2);
  font-family: var(--aofy-font-mono);
}

.aofy-rig__ping {
  flex-shrink: 0;
  min-width: 58px;
  padding: 4px 9px;
  border-radius: var(--aofy-radius-pill);
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  font-family: var(--aofy-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: var(--aofy-muted-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--aofy-ease), background 0.3s var(--aofy-ease);
}

.aofy-rig__node.is-good .aofy-rig__ping { color: var(--aofy-green); background: rgba(31, 157, 92, 0.08); }
.aofy-rig__node.is-ok .aofy-rig__ping { color: #b7791f; background: rgba(214, 158, 46, 0.1); }
.aofy-rig__node.is-slow .aofy-rig__ping { color: var(--aofy-red); background: var(--aofy-red-soft); }
.aofy-rig__node.is-offline .aofy-rig__led { background: var(--aofy-muted-2); box-shadow: none; animation: none; }

.aofy-rig__line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 61, 0.5), transparent);
}

.aofy-rig__line span {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aofy-red);
  box-shadow: 0 0 8px var(--aofy-red-glow);
  animation: aofy-travel 2.6s linear infinite;
}

.aofy-telemetry {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--aofy-border-strong);
  border-radius: var(--aofy-radius-pill);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 12px 24px -10px rgba(20, 20, 35, 0.14);
  animation: aofy-float 6s ease-in-out infinite;
}

.aofy-telemetry svg {
  width: 14px;
  height: 14px;
  color: var(--aofy-red);
}

.aofy-telemetry--1 { top: 6%; right: -4%; animation-delay: 0s; }

@keyframes aofy-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes aofy-travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes aofy-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------------------------------------------------
   5. Quick stats
   --------------------------------------------------------------------- */
.aofy-stats {
  border-top: 1px solid var(--aofy-border);
  border-bottom: 1px solid var(--aofy-border);
  background: var(--aofy-bg-alt);
}

.aofy-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 44px 0;
}

.aofy-stats__item {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid var(--aofy-border);
}

.aofy-stats__item:first-child {
  border-left: none;
}

.aofy-stats__value {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.aofy-stats__label {
  font-size: 13px;
  color: var(--aofy-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------
   6. Generic section spacing
   --------------------------------------------------------------------- */
.aofy-section {
  padding: 108px 0;
}

.aofy-section--tight {
  padding: 88px 0;
}

.aofy-section--alt {
  background: var(--aofy-bg-alt);
  border-top: 1px solid var(--aofy-border);
  border-bottom: 1px solid var(--aofy-border);
}

/* ---------------------------------------------------------------------
   7. Tariffs
   --------------------------------------------------------------------- */
.aofy-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.aofy-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-pill);
  gap: 2px;
}

.aofy-toggle button {
  border: none;
  background: transparent;
  color: var(--aofy-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--aofy-radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.aofy-toggle button:hover {
  color: var(--aofy-text);
}

.aofy-toggle button.is-active {
  background: var(--aofy-text);
  color: var(--aofy-bg);
}

.aofy-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aofy-plans__head,
.aofy-plan {
  display: grid;
  grid-template-columns: 1.5fr 1.25fr 0.95fr 1fr 0.9fr 1.15fr 150px;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.aofy-plans__head {
  padding-bottom: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aofy-muted-2);
}

.aofy-plan {
  position: relative;
  min-height: 76px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  font-size: 14.5px;
  transition: border-color 0.25s ease, transform 0.25s var(--aofy-ease), box-shadow 0.25s ease;
}

.aofy-plan:hover {
  border-color: var(--aofy-border-strong);
  transform: translateY(-2px);
}

.aofy-plan--featured,
.aofy-plan--featured:hover {
  border-color: rgba(239, 45, 45, 0.45);
  box-shadow: 0 18px 40px -26px var(--aofy-red-glow);
}

.aofy-plan__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.aofy-plan__badge {
  padding: 3px 8px;
  border-radius: var(--aofy-radius-pill);
  background: var(--aofy-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aofy-plan__cell {
  white-space: nowrap;
}

/* Column captions are in the table head on desktop, inline on mobile */
.aofy-plan__label {
  display: none;
}

.aofy-plan__price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.aofy-plan__price small {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--aofy-muted);
}

.aofy-plan .aofy-btn {
  width: 100%;
  padding: 11px 18px;
}

.aofy-plan--disabled > :not(.aofy-plan__price) {
  opacity: 0.5;
}

.aofy-plans__note {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--aofy-muted);
}

/* ---------------------------------------------------------------------
   10. CPU / performance
   --------------------------------------------------------------------- */
.aofy-cpu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.aofy-cpu-card {
  padding: 32px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--aofy-ease), border-color 0.3s var(--aofy-ease);
}

.aofy-cpu-card:hover {
  transform: translateY(-4px);
  border-color: var(--aofy-border-strong);
}

.aofy-cpu-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--aofy-radius-sm);
  background: var(--aofy-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aofy-cpu-card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--aofy-red);
}

.aofy-cpu-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.aofy-cpu-card__loc {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin: -14px 0 -6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aofy-muted);
}

.aofy-cpu-card__loc::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aofy-red);
}

.aofy-cpu-card p {
  color: var(--aofy-muted);
  font-size: 14.5px;
}

.aofy-cpu-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--aofy-border);
}

.aofy-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--aofy-muted);
}

.aofy-tag:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--aofy-muted-2);
}

/* ---------------------------------------------------------------------
   11. Bento grid (Why AOFY)
   --------------------------------------------------------------------- */
.aofy-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.aofy-bento-card {
  position: relative;
  padding: 22px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--aofy-ease);
}

.aofy-bento-card:hover {
  border-color: var(--aofy-border-strong);
  transform: translateY(-3px);
}

.aofy-bento-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--aofy-red-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aofy-bento-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--aofy-red);
}

.aofy-bento-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.aofy-bento-card p {
  font-size: 13.5px;
  color: var(--aofy-muted);
}

/* ---------------------------------------------------------------------
   12. Operating systems
   --------------------------------------------------------------------- */
.aofy-os-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.aofy-os-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  padding: 24px 16px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.aofy-os-card:hover {
  border-color: var(--aofy-border-strong);
  transform: translateY(-3px);
}

.aofy-os-card__logo {
  width: 40px;
  height: 40px;
  margin: 4px 0;
}

.aofy-os-card span {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ---------------------------------------------------------------------
   13. Control panel mockup
   --------------------------------------------------------------------- */
.aofy-panel-mock {
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border-strong);
  border-radius: var(--aofy-radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20, 20, 35, 0.16);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.aofy-panel-mock__sidebar {
  background: var(--aofy-bg-soft);
  border-right: 1px solid var(--aofy-border);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aofy-panel-mock__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 20px;
  font-weight: 800;
  font-size: 15px;
}

.aofy-panel-mock__brand svg {
  width: 20px;
  height: 20px;
}

.aofy-panel-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--aofy-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--aofy-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.aofy-panel-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.aofy-panel-nav-item:hover {
  background: rgba(10, 10, 15, 0.05);
  color: var(--aofy-text);
}

.aofy-panel-nav-item.is-active {
  background: var(--aofy-red-soft);
  color: var(--aofy-red);
}

.aofy-panel-mock__main {
  padding: 26px 28px;
}

.aofy-panel-mock__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.aofy-panel-mock__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aofy-panel-mock__title h3 {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--aofy-font-mono);
}

.aofy-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--aofy-radius-pill);
  background: rgba(53, 208, 127, 0.12);
  color: var(--aofy-green);
  border: 1px solid rgba(53, 208, 127, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aofy-badge-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.aofy-badge-status.is-stopped {
  background: rgba(10, 10, 15, 0.06);
  color: var(--aofy-muted);
  border-color: var(--aofy-border-strong);
}

.aofy-panel-mock__meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--aofy-muted);
  flex-wrap: wrap;
}

.aofy-panel-mock__meta strong {
  color: var(--aofy-text);
}

.aofy-panel-mock__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.aofy-panel-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.aofy-metric-card {
  background: var(--aofy-surface-2);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-sm);
  padding: 16px;
}

.aofy-metric-card__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--aofy-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aofy-metric-card__value {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--aofy-font-mono);
  margin-bottom: 10px;
}

.aofy-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--aofy-surface);
  overflow: hidden;
}

.aofy-meter span {
  display: block;
  height: 100%;
  background: var(--aofy-red);
  border-radius: 3px;
  transition: width 0.6s var(--aofy-ease);
}

.aofy-panel-mock__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  padding-top: 8px;
  border-top: 1px solid var(--aofy-border);
}

.aofy-panel-feature {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--aofy-border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--aofy-muted);
}

.aofy-panel-feature svg {
  width: 15px;
  height: 15px;
  color: var(--aofy-red);
  flex-shrink: 0;
}

.aofy-panel-feature:nth-last-child(-n+2) {
  border-bottom: none;
}

/* ---------------------------------------------------------------------
   14. Use cases
   --------------------------------------------------------------------- */
.aofy-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.aofy-usecase-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.aofy-usecase-card:hover {
  border-color: var(--aofy-border-strong);
  transform: translateY(-2px);
}

.aofy-usecase-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--aofy-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aofy-usecase-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--aofy-red);
}

.aofy-usecase-card span {
  font-size: 15px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   16. Deployment steps
   --------------------------------------------------------------------- */
.aofy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.aofy-step {
  padding: 30px 24px;
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  position: relative;
}

.aofy-step__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--aofy-red);
  font-family: var(--aofy-font-mono);
  margin-bottom: 14px;
}

.aofy-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.aofy-step p {
  font-size: 13.5px;
  color: var(--aofy-muted);
}

/* ---------------------------------------------------------------------
   17. FAQ
   --------------------------------------------------------------------- */
.aofy-faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aofy-faq-item {
  background: var(--aofy-surface);
  border: 1px solid var(--aofy-border);
  border-radius: var(--aofy-radius-md);
  overflow: hidden;
}

.aofy-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--aofy-text);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
}

.aofy-faq-item__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--aofy-surface-2);
  border: 1px solid var(--aofy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--aofy-ease), background 0.3s ease;
}

.aofy-faq-item__icon svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--aofy-ease);
}

.aofy-faq-item.is-open .aofy-faq-item__icon {
  background: var(--aofy-red);
  transform: rotate(45deg);
}

.aofy-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--aofy-ease);
}

.aofy-faq-item__a-inner {
  padding: 0 24px 22px;
  color: var(--aofy-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------
   18. Final CTA
   --------------------------------------------------------------------- */
.aofy-final-cta {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
  background: var(--aofy-bg-alt);
  border-top: 1px solid var(--aofy-border);
}

.aofy-final-cta__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 10, 15, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  opacity: 0.5;
}

.aofy-final-cta__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 61, 61, 0.16), transparent 65%);
  pointer-events: none;
}

.aofy-final-cta__content {
  position: relative;
  z-index: 1;
}

.aofy-final-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 680px;
  margin: 20px auto 16px;
}

.aofy-final-cta p {
  color: var(--aofy-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 34px;
}

.aofy-final-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   19. Footer
   --------------------------------------------------------------------- */
.aofy-footer {
  background: var(--aofy-bg);
  padding: 76px 0 32px;
}

.aofy-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--aofy-border);
}

.aofy-footer__brand p {
  color: var(--aofy-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 240px;
}

.aofy-footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aofy-muted-2);
  margin-bottom: 16px;
}

.aofy-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aofy-footer__col a {
  font-size: 14px;
  color: var(--aofy-muted);
  transition: color 0.2s ease;
}

.aofy-footer__col a:hover {
  color: var(--aofy-text);
}

.aofy-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--aofy-muted-2);
}

.aofy-footer__socials {
  display: flex;
  gap: 10px;
}

.aofy-footer__socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--aofy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.aofy-footer__socials a:hover {
  border-color: var(--aofy-border-strong);
  color: var(--aofy-red);
}

.aofy-footer__socials svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------------------
   20. Utilities
   --------------------------------------------------------------------- */
.aofy-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--aofy-red);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

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

[data-aofy-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--aofy-ease), transform 0.7s var(--aofy-ease);
}

[data-aofy-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* 1280px */
@media (max-width: 1280px) {
  .aofy-container { max-width: 100%; }
}

/* 1024px */
@media (max-width: 1024px) {
  .aofy-nav { display: none; }
  .aofy-login-link { display: none; }
  .aofy-burger { display: flex; }

  .aofy-hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .aofy-hero__visual { height: 380px; order: -1; }

  .aofy-stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .aofy-stats__item:nth-child(3n+1) { border-left: none; }
  .aofy-stats__item:nth-child(n+4) { border-left: none; }

  .aofy-cpu-grid { grid-template-columns: 1fr; }

  .aofy-bento { grid-template-columns: repeat(2, 1fr); }

  .aofy-panel-mock { grid-template-columns: 1fr; }
  .aofy-panel-mock__sidebar { display: none; }
  .aofy-panel-metrics { grid-template-columns: repeat(2, 1fr); }
  .aofy-panel-mock__grid { grid-template-columns: repeat(2, 1fr); }

  .aofy-usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .aofy-steps { grid-template-columns: repeat(2, 1fr); }

  .aofy-footer__top { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .aofy-footer__brand { grid-column: span 3; }
}

/* 1180px: tighter tariff table */
@media (max-width: 1180px) {
  .aofy-plans__head,
  .aofy-plan {
    grid-template-columns: 1.25fr 1.35fr 0.9fr 1fr 0.85fr 1.05fr 118px;
    gap: 12px;
    padding: 0 18px;
  }
  .aofy-plan { font-size: 13.5px; }
  .aofy-plan__name { font-size: 15px; }
  .aofy-plan__price { font-size: 19px; }
  .aofy-plan .aofy-btn { padding: 10px 12px; }
}

/* 900px: tariff table rows turn into compact cards */
@media (max-width: 900px) {
  .aofy-plans__head { display: none; }
  .aofy-plan {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 18px;
  }
  .aofy-plan__name { grid-column: 1 / -1; }
  .aofy-plan__cell { font-size: 14px; }
  .aofy-plan__label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aofy-muted-2);
  }
  .aofy-plan__price { margin-top: 4px; }
  .aofy-plan .aofy-btn { margin-top: 4px; }
}

/* 768px */
@media (max-width: 768px) {
  .aofy-container { padding: 0 20px; }
  .aofy-section { padding: 76px 0; }
  .aofy-section--tight { padding: 64px 0; }

  .aofy-hero { padding-top: calc(var(--aofy-header-h) + 48px); padding-bottom: 64px; }
  .aofy-hero__cta { flex-direction: column; align-items: stretch; }
  .aofy-telemetry--1 { right: 1%; }
  .aofy-hero__cta .aofy-btn { width: 100%; }

  .aofy-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .aofy-stats__item { border-left: none !important; text-align: left; }

  .aofy-toggle-row { flex-direction: column; align-items: center; }


  .aofy-bento { grid-template-columns: 1fr; }

  .aofy-os-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .aofy-os-card { scroll-snap-align: start; flex-shrink: 0; }

  .aofy-panel-metrics { grid-template-columns: 1fr; }
  .aofy-panel-mock__grid { grid-template-columns: 1fr; }
  .aofy-panel-mock__topbar { flex-direction: column; align-items: flex-start; }

  .aofy-usecase-grid { grid-template-columns: 1fr; }
  .aofy-steps { grid-template-columns: 1fr; }

  .aofy-final-cta { padding: 84px 0; }
  .aofy-final-cta__actions { flex-direction: column; }
  .aofy-final-cta__actions .aofy-btn { width: 100%; }

  .aofy-footer__top { grid-template-columns: repeat(2, 1fr); }
  .aofy-footer__brand { grid-column: span 2; }
  .aofy-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 430px / 390px small phones */
@media (max-width: 430px) {
  .aofy-logo__tagline { display: none; }
  .aofy-hero__content h1 { font-size: 34px; }
  .aofy-hero__visual { height: 320px; }
  .aofy-rig { max-width: 320px; padding: 20px; }
  .aofy-telemetry { font-size: 11px; padding: 8px 11px; }
  .aofy-telemetry--1 { right: 0; }

  .aofy-stats__grid { grid-template-columns: 1fr 1fr; }

  .aofy-footer__top { grid-template-columns: 1fr; }
  .aofy-footer__brand { grid-column: span 1; }

}
