/* ==========================================================================
   ArtSilk Digital — UI refresh proposal (layered after style.css)
   Direction: "where data meets art" made literal. Data shown as precise
   line charts that turn into silk threads; one champagne "art" thread.
   Everything else is quiet: one display face (Sora) + one text face
   (Inter), sentence case, left-aligned reading, no decorative motion.
   ========================================================================== */

:root {
  --bg: #0b1120;          /* midnight silk: page background */
  --surface: #111a2e;     /* panels */
  --surface-2: #17223b;   /* panel hover */
  --glass: rgba(255, 255, 255, 0.04);        /* the original glassy cards */
  --glass-hover: rgba(255, 255, 255, 0.065);
  --glass-line: rgba(255, 255, 255, 0.1);
  --line: rgba(201, 214, 240, 0.12);
  --text: #eef1f7;
  --text-muted: #aab3c7;  /* 8.6:1 on --bg */
  --text-faint: #8b95aa;  /* 5.9:1 on --bg, footer/meta only */
  --blue: #8fb0f0;        /* data */
  --blue-strong: #4a6cd6; /* actions; white text 4.8:1 */
  --silk: #e3c995;        /* art, used only in the hero threads and two small details */
  --radius: 14px;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem);
}

/* --- Base ---------------------------------------------------------------- */
button, input, textarea, select { font-family: inherit; }
body, body.landing { font-family: var(--body); background-color: var(--bg); color: var(--text); }
body p { color: var(--text-muted); }
body h1, body h2, body h3,
body .glass-card h3, body .lp-card h3,
body .pricing-card h3, body .price-amount, body .price-period,
body .price-option, body .subscribe-btn {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: -0.01em;
}
body h1 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
body h2 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--blue-strong); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* No scroll-triggered fades: content is always there, in its final state */
html.js .lp-reveal, html.js .lp-reveal.visible { opacity: 1; transform: none; transition: none; }
.hero::after { animation: none; }
.glass-card--service .service-icon-box { animation: none; }

/* --- Backgrounds: serve WebP without the (broken) JS detection ------------ */
.hero::after { background-image: url('../img/bg_hero.png'); background-image: image-set(url('../img/bg_hero.webp') type('image/webp'), url('../img/bg_hero.png') type('image/png')); }
.hero--analytics::after { background-image: url('../img/bg_analytics.png'); background-image: image-set(url('../img/bg_analytics.webp') type('image/webp'), url('../img/bg_analytics.png') type('image/png')); }
.hero--design::after { background-image: url('../img/bg_design.png'); background-image: image-set(url('../img/bg_design.webp') type('image/webp'), url('../img/bg_design.png') type('image/png')); }
.hero--management::after { background-image: url('../img/bg_management.png'); background-image: image-set(url('../img/bg_management.webp') type('image/webp'), url('../img/bg_management.png') type('image/png')); }
.hero--contact::after { background-image: url('../img/bg_contact.png'); background-image: image-set(url('../img/bg_contact.webp') type('image/webp'), url('../img/bg_contact.png') type('image/png')); }
.hero--products::after { background-image: url('../img/bg_products.png'); background-image: image-set(url('../img/bg_products.webp') type('image/webp'), url('../img/bg_products.png') type('image/png')); }

/* --- Header -------------------------------------------------------------- */
.header { background: rgba(11, 17, 32, 0.88); border-bottom-color: var(--line); }
.nav a {
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.005em;
  text-transform: none; color: #cdd4e2;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a::after { height: 2px; bottom: -6px; background: var(--blue); border-radius: 2px; }
@media (min-width: 769px) { .nav { gap: 28px; } }
@media (max-width: 1200px) and (min-width: 769px) { .nav { gap: 20px; } }
@media (max-width: 768px) {
  /* mobile menu: original black panel, current page underlined in white */
  .header { background: rgba(0, 0, 0, 0.9); border-bottom-color: rgba(255, 255, 255, 0.05); }
  .nav { background: rgba(0, 0, 0, 0.95); gap: 4px; padding: 16px 24px 24px; align-items: center; }
  .nav a { display: inline-block; padding: 12px 4px; font-size: 1.05rem; text-align: center; }
  .nav a::after { bottom: 8px; height: 1px; background: #fff; border-radius: 0; }
  a.lang-switch-mobile { min-height: 44px; padding-left: 14px; padding-right: 14px; }
}

/* --- Buttons ------------------------------------------------------------- */

.lp-tag, .lp-eyebrow {
  text-transform: none; letter-spacing: 0.01em; font-size: 0.8rem; font-weight: 500;
}
.lp-tag { background: rgba(143, 176, 240, 0.14); color: #dce6fb; border: 1px solid rgba(143, 176, 240, 0.3); }
.lp-eyebrow { color: var(--blue); font-size: 0.95rem; }

/* --- Home hero: original silk background, left-aligned content -------- */
.lp-hero--home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 120px 24px 96px;
}
.lp-hero--home::after {
  background-image: url('../img/bg_silk_waves.png');
  background-image: image-set(url('../img/bg_silk_waves.webp') type('image/webp'), url('../img/bg_silk_waves.png') type('image/png'));
  animation: heroBgPan 30s ease-in-out infinite alternate;
}
.lp-hero--home::before {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10, 10, 20, 0.35) 0%, rgba(10, 10, 20, 0.8) 75%),
    linear-gradient(180deg, rgba(10, 10, 20, 0) 70%, var(--bg) 100%);
}
.lp-hero--home .lp-hero-content { width: 100%; max-width: 1152px; margin: 0 auto; }
.lp-hero--home h1 {
  font-size: var(--step-3);
  max-width: 17ch;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.lp-hero--home .lp-accent { display: block; } /* keeps the original gradient letters */
.lp-hero--home .lp-lead {
  margin: 0; max-width: 56ch;
  font-weight: 400; font-size: var(--step-1); line-height: 1.55;
  color: #d4d8e4; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.lp-hero--home .lp-actions { justify-content: flex-start; margin-top: 36px; }
.lp-hero--home .lp-trust { justify-content: flex-start; margin-top: 40px; gap: 10px 28px; color: #c3c9d8; font-size: 0.92rem; }
html[lang="es"] .lp-hero--home h1 { max-width: 22ch; }
html[lang="es"] .lp-hero--home .lp-accent { display: inline; }
body h1, body h2 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero--home::after { animation: none; }
}

/* --- Home sections: split layout (statement left, content right) -------- */
.lp-section { padding: clamp(72px, 9vw, 120px) 0; }
.lp-section--alt { background: radial-gradient(ellipse at 50% 0%, rgba(64, 112, 200, 0.10) 0%, rgba(11, 17, 32, 0) 60%), #0d1426; border-color: var(--line); }
.lp-section-header { text-align: left; margin: 0 0 48px; max-width: 640px; }
.lp-section-header h2 { font-size: var(--step-2); }
.lp-section-header p:not(.lp-eyebrow) { font-weight: 400; color: var(--text-muted); font-size: var(--step-0); line-height: 1.6; }

@media (min-width: 961px) {
  #services > .container,
  .lp-section--alt > .container {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }
  #services .lp-section-header,
  .lp-section--alt .lp-section-header { position: sticky; top: 120px; margin: 0; }
}

/* Services as an index of rows, not a wall of identical cards */
.lp-grid--offer { display: flex; flex-direction: column; gap: 12px; }
.lp-grid--offer > .lp-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title from"
    "icon sub   from"
    "icon list  list"
    "icon more  more";
  column-gap: 22px;
  padding: 26px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lp-grid--offer > .lp-card:hover { transform: none; background: var(--glass-hover); border-color: rgba(143, 176, 240, 0.35); }
.lp-grid--offer .lp-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 12px; margin: 0; background: rgba(143, 176, 240, 0.12); border-color: rgba(143, 176, 240, 0.22); }
.lp-grid--offer .lp-icon i { font-size: 1.15rem; color: var(--blue); }
.lp-grid--offer .lp-card h3 { grid-area: title; font-size: var(--step-1); font-weight: 600; color: var(--text); margin: 0; }
.lp-grid--offer .lp-card-sub { grid-area: sub; font-style: normal; color: var(--text-muted); margin: 2px 0 14px; }
.lp-grid--offer .lp-list {
  grid-area: list; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px; margin: 0 0 16px;
}
.lp-grid--offer .lp-list li { font-size: 0.95rem; color: #c9d0de; }
.lp-grid--offer .lp-list li::before { width: 5px; height: 5px; border-radius: 1px; background: var(--blue); }
.lp-grid--offer .lp-from { grid-area: from; justify-self: end; text-align: right; margin: 0; color: var(--text-faint); }
.lp-grid--offer .lp-from strong { font-size: 1.5rem; }
.lp-grid--offer .lp-more { grid-area: more; justify-self: start; margin: 0; font-size: 0.95rem; }

/* SmartContact: the product gets its own treatment, with the one silk detail */
.lp-grid--offer > .lp-card--product {
  display: flex; flex-direction: row; align-items: center; gap: 32px;
  padding: 32px 32px;
  border-color: rgba(227, 201, 149, 0.35);
  background:
    radial-gradient(ellipse 60% 90% at 90% 50%, rgba(74, 108, 214, 0.22), transparent 70%),
    var(--glass);
}
.lp-grid--offer > .lp-card--product:hover { border-color: rgba(227, 201, 149, 0.6); }
.lp-card--product .lp-product-text { display: flex; flex-direction: column; }
.lp-card--product .lp-list { grid-template-columns: 1fr; }
.lp-card--product .lp-tag { border-color: rgba(227, 201, 149, 0.45); color: #f1e3c4; background: rgba(227, 201, 149, 0.1); }

/* Why ArtSilk: 2x2, left-aligned, icon beside the text */
.lp-section--alt .lp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.lp-feature {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px;
  text-align: left; padding: 0;
}
.lp-feature i { grid-row: span 2; font-size: 1.25rem; margin: 4px 0 0; color: var(--blue); }
.lp-feature h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--text); }
.lp-feature p { font-size: 0.98rem; line-height: 1.6; }

/* Steps: a real sequence, so the numbers stay; the line becomes a thread */
.lp-steps::before { left: 6%; right: 6%; background: linear-gradient(90deg, var(--blue) 0%, rgba(143, 176, 240, 0.5) 60%, var(--silk) 100%); opacity: 0.45; }
.lp-step { text-align: left; padding: 0; }
.lp-step-num { background: var(--bg); border: 1.5px solid var(--blue); box-shadow: 0 0 0 6px var(--bg); color: var(--text); }
.lp-step:last-child .lp-step-num { border-color: var(--silk); }
.lp-step h3 { font-size: 1.125rem; }
.lp-step p { font-size: 0.98rem; line-height: 1.6; }

/* Final call to action */
.lp-cta { background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(74, 108, 214, 0.22), transparent 70%), var(--bg); padding: clamp(80px, 10vw, 120px) 0; }
.lp-cta h2 { font-size: var(--step-2); max-width: 22ch; margin-left: auto; margin-right: auto; }
.lp-cta p { max-width: 56ch; margin: 0 auto; }

/* --- Products hero: left-aligned like the rest, keeps its own art ------- */
.hero--products { text-align: left; }
.hero--products .lp-hero-content { max-width: 1152px; width: 100%; margin: 0 auto; }
.hero--products h1 { max-width: 16ch; }
.hero--products .lp-accent { background: none; color: inherit; filter: none; -webkit-background-clip: border-box; background-clip: border-box; }
.hero--products .lp-lead { margin: 0; max-width: 56ch; font-weight: 400; color: var(--text-muted); }

/* --- Inner pages: same type and alignment as the home page -------------- */
.hero--full:not(.hero--task), .hero--about { align-items: stretch; text-align: left; }
/* inner-page backgrounds keep the original smoky overlay, so the glass cards look the same */
.hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 32, 0) 22%), radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 70%); }
.hero .tagline { color: #c9cfdc; }
.hero:not(.hero--task) .hero-content {
  width: 100%; max-width: 1152px; margin: 0 auto; text-align: left; align-self: auto;
}
.hero h1 { font-size: var(--step-3); max-width: 20ch; text-shadow: none; }
.hero .tagline, .hero--analytics .hero-content .tagline {
  font-style: normal; font-size: var(--step-1); line-height: 1.55;
  color: var(--text-muted); max-width: 60ch; margin: 0; text-shadow: none;
}
body .hero-services { width: 100%; max-width: 1152px; margin: 64px auto 0; gap: 28px; }
.glass-card, .glass-card--service {
  text-align: left; padding: 44px 36px 40px;
  background: var(--glass); border-color: var(--glass-line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.glass-card::before { left: 46px; transform: none; }
.glass-card:hover { transform: none; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.glass-card--service .service-icon-box { margin: 0 0 28px; }
.glass-card h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 10px; color: var(--text); }
.glass-card p { font-style: normal; font-size: 0.98rem; line-height: 1.65; color: var(--text-muted); }
.glass-cards { margin-left: 0; margin-right: 0; }
.hero--about .btn-cta { margin-left: 0; }

/* Inner-page call to action band (added under analytics / design / management) */
.lp-cta--inner { text-align: left; border-top: 1px solid var(--line); }
.lp-cta--inner .container { max-width: 1200px; }
.lp-cta--inner h2, .lp-cta--inner p { margin-left: 0; }
.lp-cta--inner .lp-actions { justify-content: flex-start; }

/* Pricing pages: same type family, upright text */
body .pricing-card .subtitle, body .pricing-card li { font-family: var(--body); }
body .price-amount { letter-spacing: -0.02em; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: #080d19; border-top-color: var(--line); padding: 48px 0 40px; }
.footer p { color: var(--text-faint); }
.footer a { color: #b3bccd; }
.footer a:hover { color: #fff; }
.lp-footer-nav { text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem; gap: 4px 8px; }
.lp-footer-nav a, .footer-legal a { display: inline-block; padding: 12px 8px; }
.footer-legal { margin-top: 4px; font-size: 0.85rem; }
.footer-legal a { color: var(--text-faint); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .lp-section--alt .lp-grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lp-grid--offer > .lp-card {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon sub" "list list" "from from" "more more";
    padding: 22px 20px;
  }
  .lp-grid--offer .lp-icon { width: 44px; height: 44px; }
  .lp-grid--offer .lp-list { grid-template-columns: 1fr; }
  .lp-grid--offer .lp-from { justify-self: start; text-align: left; margin-bottom: 12px; }
  .lp-grid--offer > .lp-card--product { flex-direction: column-reverse; align-items: stretch; padding: 24px 20px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
  .lp-step-num { grid-row: span 2; margin: 0; }
  .lp-hero--home .lp-actions .lp-btn { width: 100%; }
  .hero-services { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-grid--offer > .lp-card, .glass-card { transition: none; }
}

/* --- Alignment rule: reading pages are left-aligned; task pages (contact,
       hosting, basic plan) stay centered around their form or pricing grid -- */
body .hero:not(.hero--task) .hero-content { text-align: left; width: 100%; max-width: 1152px; margin-left: auto; margin-right: auto; }
body .hero:not(.hero--task) .hero-content h1 { margin-left: 0; }
body .hero:not(.hero--task) .hero-content .tagline { margin: 0; max-width: 60ch; }
body .hero .hero-content .tagline { font-style: normal; color: var(--text-muted); text-shadow: none; }
body .hero--task .hero-content h1,
body .hero--task .hero-content .tagline { margin-left: auto; margin-right: auto; }
body .hero--design .hero-subtitle { text-align: left; margin-left: 0; }
body .pricing-card h3 { font-weight: 600; }
/* 2x2 service grids line up with the left-aligned heading (style.css uses !important here) */
body .hero:not(.hero--task) .hero-services--four,
body .hero:not(.hero--task) .hero-services--two { max-width: 1152px !important; gap: 28px !important; }
@media (max-width: 768px) {
  body .hero-services--four, body .hero-services--two { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  body .hero:not(.hero--task):not(.lp-hero--home) { padding-left: 24px; padding-right: 24px; }
}

/* Glass cards everywhere: a soft glow behind the home services list */
#services { background: radial-gradient(ellipse 55% 60% at 75% 40%, rgba(64, 112, 200, 0.10), transparent 70%); }

/* Products pricing: cards respond to hover, like the service cards */
.lp-promo { transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.lp-promo:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.065);
  border-color: rgba(143, 176, 240, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(143, 176, 240, 0.12);
}
.lp-promo:hover .lp-icon { border-color: rgba(143, 176, 240, 0.45); }
.lp-promo--featured:hover { border-color: rgba(143, 176, 240, 0.7); }
@media (prefers-reduced-motion: reduce) { .lp-promo:hover { transform: none; } }

/* The note below the pricing cards sits under the cards, not under the sticky heading */
@media (min-width: 961px) {
  .lp-section--alt > .container > .lp-note { grid-column: 2; text-align: left; margin-top: 0; }
}
