/* ============================
   ENTERPRISE PAGE — Page-Specific Styles
   ============================ */

/* --- Enterprise Hero --- */
.ent-hero {
  position: relative;
  overflow: hidden;
  background: #0A2E33;
  color: #fff;
  padding: clamp(var(--space-16), 12vw, var(--space-32)) 0 clamp(var(--space-12), 10vw, var(--space-24));
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.ent-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ent-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 212, 219, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 212, 219, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.ent-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(1, 212, 219, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(1, 105, 111, 0.08) 0%, transparent 60%);
}

.ent-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--space-4);
}

.ent-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
}

.ent-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #01D4DB;
  animation: pulse-dot 2s ease-in-out infinite;
}

.ent-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  color: #fff;
}

.ent-hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-inline: auto;
}

.ent-hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.ent-hero .btn--primary {
  background: var(--color-primary);
}
.ent-hero .btn--primary:hover {
  background: #028B93;
}
.ent-hero .btn--secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}
.ent-hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* --- Section Titles (shared) --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.section-header__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* --- How It Works (Enterprise) --- */
.ent-how {
  background: var(--color-surface);
}

.ent-how__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
  position: relative;
}
@media (min-width: 768px) {
  .ent-how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.ent-step {
  text-align: center;
  padding: var(--space-6);
  position: relative;
}

.ent-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.ent-step__icon svg {
  width: 24px;
  height: 24px;
}

.ent-step__number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-surface-dynamic);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ent-step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.ent-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 300px;
  margin-inline: auto;
}

/* Connector lines between steps (desktop) */
@media (min-width: 768px) {
  .ent-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 28px);
    right: calc(-1 * var(--space-3));
    width: var(--space-6);
    height: 2px;
    background: var(--color-divider);
  }
}

/* --- Features Grid --- */
.ent-features {
  background: var(--color-bg);
}

.ent-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .ent-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ent-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}
.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-primary-highlight);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Pricing Section --- */
.ent-pricing {
  background: var(--color-surface);
}

.ent-pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .ent-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ent-pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.pricing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pricing-card--popular {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--color-primary-light), var(--shadow-card);
}
.pricing-card--popular:hover {
  box-shadow: 0 0 0 1px var(--color-primary-light), var(--shadow-card-hover);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__agents {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.pricing-card__features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.5;
}

.pricing-card__features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* --- API Preview --- */
.ent-api {
  background: var(--color-bg);
}

.ent-api__inner {
  max-width: var(--content-default);
  margin-inline: auto;
}

.ent-code-block {
  background: #0F1B1E;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .ent-code-block {
  background: #080F11;
  border-color: var(--color-border);
}

.ent-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ent-code-block__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ent-code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ent-code-block__dot--red { background: #FF5F57; }
.ent-code-block__dot--yellow { background: #FEBC2E; }
.ent-code-block__dot--green { background: #28C840; }

.ent-code-block__title {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}

.ent-code-block__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  font-family: var(--font-body);
}
.ent-code-block__copy:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.ent-code-block__content {
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
}

.ent-code-block__content pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #E0E8EA;
  white-space: pre;
  margin: 0;
}

/* Syntax highlighting for bash/curl */
.code-comment { color: #5A7A80; }
.code-cmd { color: #7DD3FC; }
.code-url { color: #86EFAC; }
.code-flag { color: #FBBF24; }
.code-header-key { color: #FCA5A5; }
.code-header-val { color: #86EFAC; }
.code-json-key { color: #7DD3FC; }
.code-json-val { color: #86EFAC; }

/* --- Signup Form --- */
.ent-signup {
  background: #0A2E33;
  color: #fff;
}
[data-theme="dark"] .ent-signup {
  background: #0F1D20;
}

.ent-signup__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.ent-signup__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-2);
  color: #fff;
}
[data-theme="dark"] .ent-signup__title {
  color: var(--color-text);
}

.ent-signup__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: var(--space-8);
}
[data-theme="dark"] .ent-signup__subtitle {
  color: var(--color-text-muted);
}

.ent-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ent-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ent-form__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .ent-form__label {
  color: var(--color-text-muted);
}

.ent-form__input {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.ent-form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.ent-form__input:focus {
  border-color: #01D4DB;
  box-shadow: 0 0 0 3px rgba(1, 212, 219, 0.15);
}
[data-theme="dark"] .ent-form__input {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .ent-form__input::placeholder {
  color: var(--color-text-faint);
}
[data-theme="dark"] .ent-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.ent-form__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
[data-theme="dark"] .ent-form__hint {
  color: var(--color-text-faint);
}

.ent-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .ent-form__row { grid-template-columns: 1fr 1fr; }
}

.ent-form__submit {
  margin-top: var(--space-2);
}
.ent-form__submit .btn--primary {
  width: 100%;
  justify-content: center;
  background: #01D4DB;
  color: #0A2E33;
  font-weight: 700;
}
.ent-form__submit .btn--primary:hover {
  background: #00BFC6;
}

/* Success state */
.ent-form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
  border: 2px solid #01D4DB;
  border-radius: var(--radius-lg);
  background: rgba(1, 212, 219, 0.08);
}
.ent-form-success.active {
  display: block;
}

.ent-form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(1, 212, 219, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: #01D4DB;
}

.ent-form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .ent-form-success__title {
  color: var(--color-text);
}

.ent-form-success__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
[data-theme="dark"] .ent-form-success__text {
  color: var(--color-text-muted);
}

.ent-form-success__credential {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  text-align: left;
}
[data-theme="dark"] .ent-form-success__credential {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-border);
}

.ent-form-success__credential-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-1);
}
[data-theme="dark"] .ent-form-success__credential-label {
  color: var(--color-text-faint);
}

.ent-form-success__credential-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ent-form-success__credential-value code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #01D4DB;
  word-break: break-all;
}

.ent-form-success__credential-value button {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.ent-form-success__credential-value button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Error message */
.ent-form-error {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  font-size: var(--text-sm);
  text-align: center;
}
.ent-form-error.active {
  display: block;
}

/* Loading state for submit button */
.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 46, 51, 0.3);
  border-top-color: #0A2E33;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
  .ent-hero__title {
    font-size: clamp(2rem, 1rem + 4vw, 3.5rem);
  }
  .pricing-card__amount {
    font-size: var(--text-xl);
  }
}
