/* ─────────────────────────────────────────────────────────
   Automation Ace - Page-Specific Styles
   ───────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--red-glow) 0%, transparent 65%);
}

.hero-bg-glow-2 {
  position: absolute;
  top: 0;
  left: -100px;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at top left, rgba(240, 192, 56, 0.035) 0%, transparent 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
  opacity: 0.45;
}

/* Main grid */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: var(--sp-64);
  min-height: calc(100svh - var(--nav-h) - 120px);
  padding: var(--sp-80) 0 var(--sp-64);
  position: relative;
}

.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-24);
  padding: 6px 14px;
  background: var(--red-glow-sm);
  border: 1px solid rgba(142, 18, 16, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-bright);
}

.hero-eyebrow .bolt {
  color: var(--gold);
}

.hero h1 {
  margin-bottom: var(--sp-24);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--sp-32);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-bottom: var(--sp-40);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

/* Photo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, var(--red) 0%, transparent 45%);
  border-radius: calc(var(--r-xl) + 1px);
  z-index: 0;
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  border-radius: 0 0 var(--r-md) 0;
  pointer-events: none;
  z-index: 2;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Credential card on photo */
.hero-credential-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  z-index: 5;
  display: grid;
  gap: 7px;
  padding: 13px 15px;
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.25;
}

.hero-credential-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-credential-card span {
  flex-shrink: 0;
  line-height: 1;
}

/* Stats Bar */
.hero-stats {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  flex: 1;
  padding: var(--sp-24) var(--sp-32);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.hero-stat-num .gold {
  color: var(--gold);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Credentials ─────────────────────────────────────────── */
.credentials-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

/* ── Advantages ──────────────────────────────────────────── */
.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-24);
  transition: border-color var(--t), transform var(--t-lg) var(--ease), box-shadow var(--t-lg);
}

.advantage-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.advantage-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-12);
}

.advantage-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-12);
  line-height: 1;
}

.advantage-card h4 {
  margin-bottom: var(--sp-8);
  font-size: 1.0625rem;
}

.advantage-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Services Preview ────────────────────────────────────── */
.service-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-24);
  cursor: pointer;
  transition: border-color var(--t), transform var(--t-lg) var(--ease), box-shadow var(--t-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.service-cat-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--red-glow);
}

.service-cat-icon {
  font-size: 1.5rem;
}

.service-cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.service-cat-items {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-cat-count {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border);
}

/* ── Cheat Codes Feature ─────────────────────────────────── */
.cheatcodes-wrap {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cheatcodes-content {
  padding: var(--sp-64);
}

.cheatcodes-visual {
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-48);
  position: relative;
}

.cheatcodes-screen {
  width: 100%;
  max-width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: var(--sp-20);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.cheatcodes-screen .prompt {
  color: var(--red-bright);
}

.cheatcodes-screen .key {
  color: var(--gold);
}

.cheatcodes-screen .val {
  color: var(--text);
}

@media (max-width: 900px) {
  .cheatcodes-wrap {
    grid-template-columns: 1fr;
  }

  .cheatcodes-visual {
    display: none;
  }

  .cheatcodes-content {
    padding: var(--sp-40) var(--sp-32);
  }
}

/* ══════════════════════════════════════════════════════════
   SERVICES PAGE
   ══════════════════════════════════════════════════════════ */
.service-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-32);
  transition: border-color var(--t), box-shadow var(--t);
}

.service-full-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-full-card h3 {
  margin-bottom: var(--sp-16);
  font-size: 1.25rem;
}

.service-full-card .item-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.service-item::before {
  content: '→';
  color: var(--red-bright);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.service-item:hover {
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   APPS PAGE
   ══════════════════════════════════════════════════════════ */
.apps-search-bar {
  display: flex;
  gap: var(--sp-12);
  align-items: center;
  margin-bottom: var(--sp-40);
}

.apps-search-input {
  flex: 1;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  padding: 11px 16px 11px 42px;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.apps-search-input::placeholder {
  color: var(--text-dim);
}

.apps-search-input:focus {
  outline: none;
  border-color: var(--red);
}

.apps-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-16) var(--sp-20);
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: default;
}

.app-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.app-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.app-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-12);
}

.app-card.hidden {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-80);
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  width: 380px;
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, var(--red), transparent 50%);
  border-radius: calc(var(--r-xl) + 1px);
}

.about-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-16);
  margin: var(--sp-48) 0;
}

.about-stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-24);
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.about-stat-num .gold {
  color: var(--gold);
}

.about-stat-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

.community-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-16);
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-24);
}

.community-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.community-num .gold {
  color: var(--gold);
}

.community-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    width: 100%;
    max-width: 320px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-row {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-64);
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
  padding: var(--sp-20);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.contact-method:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px var(--red-glow);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--red-glow-sm);
  border: 1px solid rgba(142, 18, 16, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-method-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-40);
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--sp-8);
}

.contact-form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-32);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   HERO RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: var(--sp-48);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-48);
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo-frame {
    max-width: 320px;
  }

  .hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: var(--sp-40) 0 var(--sp-32);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stat {
    padding: var(--sp-16);
  }

  .hero-credential-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    gap: 6px;
    font-size: 0.75rem;
    border-radius: var(--r-sm);
  }

  .hero-credential-card > div {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat {
    flex: 1 0 calc(50% - 1px);
    border-bottom: 1px solid var(--border);
  }
}