/* ==========================================================================
   Foxwriters — Premium polish layer
   Loaded after style.css / responsive.css
   ========================================================================== */

:root {
  --color-primary: #07090d;
  --color-secondary: #3d4a5c;
  --color-accent: #1270d8;
  --color-accent-dark: #0b5bb3;
  --color-accent-light: #3a96ef;
  --color-background: #fbfcfe;
  --color-light: #eef4fb;
  --color-border: #d7e1ec;
  --color-muted: #6b7a8c;
  --color-navy: #0b1726;

  --font-heading: Gilroy, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: Montserrat, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Gilroy, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-hero: clamp(3rem, 6.8vw, 5.25rem);
  --text-2xl: clamp(2.15rem, 3.8vw, 3rem);
  --section-space: clamp(4.75rem, 9vw, 8.25rem);
  --header-height: 82px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-md: 0 20px 50px rgba(7, 9, 13, 0.08);
  --shadow-lg: 0 34px 90px rgba(7, 9, 13, 0.14);
  --shadow-book: 0 30px 60px rgba(7, 9, 13, 0.3);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(18, 112, 216, 0.07), transparent 50%),
    var(--color-background);
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

/* Major titles use Inter (same as headings) */
.hero__title,
.page-hero__title,
.cta-section__title,
.section-heading__title {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.hero__title {
  font-size: clamp(2.75rem, 5.2vw, 4.35rem) !important;
  line-height: 1.08 !important;
  max-width: 14ch;
}

.page-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem) !important;
  line-height: 1.05 !important;
}

h3,
.service-card__title,
.benefit-card__title,
.genre-card__title,
.portfolio-card__title,
.process-step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Header */
.site-header {
  height: var(--header-height);
  background: rgba(251, 252, 254, 0.72);
  backdrop-filter: blur(18px) saturate(1.25);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(7, 9, 13, 0.06);
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav__link.is-active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
  border-radius: 2px;
}

/* Buttons */
.btn {
  min-height: 52px;
  padding: 0.9rem 1.9rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

.btn--accent {
  background: linear-gradient(135deg, #3a96ef 0%, #1270d8 55%, #0b5bb3 100%);
  border-color: transparent;
  box-shadow:
    0 12px 28px rgba(18, 112, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--accent:hover {
  background: linear-gradient(135deg, #4ea3f5 0%, #1270d8 45%, #0b5bb3 100%);
  border-color: transparent;
  box-shadow:
    0 18px 40px rgba(18, 112, 216, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(7, 9, 13, 0.14);
  backdrop-filter: blur(10px);
}

.btn--primary {
  box-shadow: 0 12px 28px rgba(7, 9, 13, 0.18);
  border-color: var(--color-white);
}

/* Section headings */
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.section-heading__eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--color-accent);
}

.section-heading--center .section-heading__eyebrow {
  justify-content: center;
}

.section-heading__text {
  line-height: 1.75;
  max-width: 52ch;
}

.section-heading--center .section-heading__text {
  margin-inline: auto;
}

/* Hero */
.hero {
  padding-block: clamp(3.75rem, 8vw, 6.75rem) clamp(4.75rem, 9vw, 7.5rem);
  isolation: isolate;
}

.hero::before {
  background:
    radial-gradient(ellipse 48% 55% at 92% 10%, rgba(30, 155, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 34% 40% at 6% 90%, rgba(15, 127, 217, 0.08), transparent 55%),
    linear-gradient(155deg, #eaf3fb 0%, #fbfcfe 44%, #e7f0f9 100%);
}

.hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1.3rem;
  padding: 0.48rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-accent-dark);
  background: rgba(30, 155, 255, 0.09);
  border: 1px solid rgba(30, 155, 255, 0.2);
  border-radius: 999px;
}

.hero__title {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero__text {
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.hero__trust {
  display: none;
}

.hero__trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.9rem;
}

.hero__trust-list li {
  padding: 0.48rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(215, 225, 236, 0.95);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero__visual {
  min-height: 500px;
}

.hero__stage {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 155, 255, 0.3) 0%, rgba(30, 155, 255, 0.08) 45%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
}

.hero__accent-ring {
  display: none;
}

.hero__books {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero__book {
  border-radius: 3px 12px 12px 3px;
  box-shadow: var(--shadow-book);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__book--1 {
  width: 46%;
  left: 5%;
  top: 15%;
  transform: rotate(-8deg);
}

.hero__book--2 {
  width: 49%;
  right: 3%;
  top: 5%;
  transform: rotate(7deg);
}

.hero__book--3 {
  width: 40%;
  left: 30%;
  bottom: 7%;
  transform: rotate(2deg);
}

.hero__plinth {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 3%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(7, 9, 13, 0.3), transparent 72%);
  filter: blur(8px);
  z-index: 1;
}

@keyframes float-a {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-14px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-18px); }
}

@keyframes float-c {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-11px); }
}

/* Stats */
.stats {
  position: relative;
  background:
    radial-gradient(ellipse 50% 80% at 85% 50%, rgba(30, 155, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #07090d 0%, #122033 100%);
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
}

.stats__value {
  background: linear-gradient(180deg, #ffffff 20%, #9fd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stats__label {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Cards */
.service-card,
.benefit-card,
.genre-card,
.portfolio-card,
.testimonial-card,
.faq-item,
.contact-form,
.detail-feature,
.belief-item,
.writer-card,
.service-row {
  border-radius: var(--radius-md);
  border-color: rgba(215, 225, 236, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.service-card:hover,
.benefit-card:hover,
.genre-card:hover,
.portfolio-card:hover,
.service-row:hover {
  border-color: rgba(30, 155, 255, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card,
.benefit-card,
.genre-card,
.portfolio-card,
.service-row {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card__icon,
.benefit-card__icon,
.genre-card__visual {
  background: linear-gradient(145deg, rgba(30, 155, 255, 0.12), rgba(30, 155, 255, 0.04));
  color: var(--color-accent-dark);
  border: 1px solid rgba(30, 155, 255, 0.15);
}

.process-step__num {
  background: linear-gradient(180deg, #fff, #eef5fb);
  border-color: rgba(30, 155, 255, 0.25);
  color: var(--color-accent-dark);
  box-shadow: 0 10px 24px rgba(30, 155, 255, 0.12);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* Featured / case */
.featured-service__visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(215, 225, 236, 0.8);
}

.case-study__visual {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.featured-service__eyebrow,
.case-study__label,
.page-hero__eyebrow {
  letter-spacing: 0.14em;
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0;
}

/* CTA */
.cta-section__panel {
  border-radius: calc(var(--radius-lg) + 8px);
}

.cta-section__title {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
}

/* Page hero */
.page-hero__title {
  max-width: 16ch;
  letter-spacing: -0.045em;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 40% 50% at 90% 0%, rgba(30, 155, 255, 0.12), transparent 50%),
    #07090d;
}

.placeholder-note {
  opacity: 0.55;
}

/* Contact */
.contact-form {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  background: #f7fafc;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(30, 155, 255, 0.14);
}

@media (max-width: 1024px) {
  .hero__visual {
    min-height: 380px;
  }

  .hero__stage {
    width: min(100%, 380px);
  }
}

@media (max-width: 768px) {
  .hero__visual {
    min-height: 300px;
  }

  .hero__title {
    max-width: none;
  }

  .btn {
    border-radius: 999px;
  }
}
