:root {
  --ink: #f8fbff;
  --muted: #a8b8c9;
  --panel: #08111d;
  --line: rgb(255 255 255 / 14%);
  --accent: #54c7ff;
  --accent-strong: #91e4ff;
  --dark: #03070d;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--dark); color: var(--ink); font-family: var(--font-sans); scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; background: var(--dark); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
.hero-shell { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; background: var(--dark); }
.hero-video, .hero-overlay { position: absolute; inset: 0; }
.hero-video { z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { z-index: -1; background: radial-gradient(circle at 75% 42%, rgb(84 199 255 / 22%), transparent 32%), linear-gradient(90deg, rgb(3 7 13 / 70%) 0%, rgb(3 7 13 / 34%) 42%, rgb(3 7 13 / 12%) 100%), linear-gradient(0deg, rgb(3 7 13 / 70%) 0%, transparent 44%); }
.topbar { position: absolute; z-index: 4; top: 0; left: 0; display: grid; width: 100%; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: clamp(18px, 3.5vw, 42px); }
.logo-link { display: inline-flex; min-height: 44px; width: fit-content; align-items: center; }
.logo-link img { display: block; width: clamp(216px, 24vw, 336px); height: auto; filter: invert(1) brightness(1.8); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar nav a, .sound-toggle, .quick-prompts button, .bot-form button, .contact-form button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.topbar nav a, .sound-toggle { background: rgb(3 7 13 / 44%); padding: 0 14px; backdrop-filter: blur(14px); }
.sound-toggle { min-width: 86px; }
.hero-content { display: flex; min-height: 100svh; width: min(980px, 100%); flex-direction: column; justify-content: flex-end; padding: 132px clamp(18px, 6vw, 86px) clamp(38px, 8svh, 86px); }
.eyebrow { margin: 0 0 18px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: 0; }
h1 { --headline-scale: 1; max-width: 920px; font-size: clamp(48px, 9vw, 124px); line-height: 0.9; }
.rotating-headline { display: block; position: relative; max-width: 100%; min-height: 1.02em; margin-top: 0.04em; color: var(--accent-strong); font-size: calc(1em * var(--headline-scale)); line-height: 0.9; }
.headline-phrase { position: absolute; inset: 0 0 auto 0; width: 100%; opacity: 0; animation: rotate-headlines 15s infinite; animation-delay: calc(var(--headline-index) * 3s); overflow-wrap: anywhere; white-space: nowrap; }
.headline-phrase:first-child { position: relative; }
.hero-lead { max-width: 660px; margin: 24px 0 0; color: rgb(248 251 255 / 82%); font-size: clamp(17px, 2vw, 23px); line-height: 1.55; }
.value-section, .about-section, .cases-section, .seo-section, .consult-section, .contact-section { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr); gap: clamp(28px, 7vw, 96px); align-items: start; padding: clamp(72px, 10vw, 132px) clamp(18px, 6vw, 86px); background: var(--dark); }
.back-top { display: inline-flex; width: fit-content; min-height: 40px; align-items: center; justify-content: center; grid-column: 1 / -1; justify-self: end; order: 99; margin-top: clamp(8px, 2vw, 22px); border: 1px solid var(--line); background: rgb(255 255 255 / 5%); color: var(--accent-strong); padding: 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.back-top::before { content: '^'; margin-right: 8px; color: var(--ink); font-size: 14px; line-height: 1; }
.value-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #040910, #071727 58%, #03070d); }
.about-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #03070d, #061525 50%, #03070d); }
.contact-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--dark), #061525 48%, var(--dark)); }
.section-copy { position: sticky; top: 44px; }
.section-copy h2 { max-width: 720px; font-size: clamp(36px, 6vw, 76px); line-height: 0.96; }
.section-copy p:not(.eyebrow), .service-copy p:not(.eyebrow) { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }
.value-detail { display: grid; gap: 28px; }
.about-detail { display: grid; gap: 18px; }
.value-detail p, .about-detail p { margin: 0; color: rgb(248 251 255 / 82%); font-size: clamp(18px, 2.2vw, 28px); line-height: 1.45; }
.value-chain, .point-list, .stack-list { display: flex; flex-wrap: wrap; gap: 10px; }
.value-chain span, .point-list li, .stack-list span { border: 1px solid var(--line); background: rgb(255 255 255 / 6%); color: rgb(248 251 255 / 82%); font-size: 13px; font-weight: 700; }
.value-chain span { padding: 12px 14px; }
.service-sections { background: #03070d; }
.service-block { display: grid; min-height: clamp(640px, 86svh, 900px); grid-template-columns: minmax(0, 0.76fr) minmax(360px, 1fr); gap: clamp(28px, 6vw, 84px); align-items: center; border-top: 1px solid var(--line); padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 86px); }
.service-block:nth-child(even) .service-copy { order: 2; }
.service-copy h2, .method-section h2, .stack-section h2 { max-width: 760px; font-size: clamp(34px, 5.4vw, 72px); line-height: 0.98; }
.point-list { margin: 28px 0 0; padding: 0; list-style: none; }
.point-list li, .stack-list span { padding: 10px 12px; }
.service-image { margin: 0; }
.service-image img { display: block; width: 100%; aspect-ratio: 16 / 11; border: 1px solid rgb(255 255 255 / 18%); object-fit: cover; box-shadow: 0 28px 90px rgb(0 0 0 / 42%); }
.cases-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #03070d, #07111d 52%, #03070d); }
.seo-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #03070d, #071421 56%, #03070d); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); background: rgb(8 17 29 / 72%); padding: clamp(18px, 2.6vw, 26px); }
.faq-item h3 { margin: 0 0 12px; color: var(--ink); font-size: clamp(18px, 2vw, 23px); line-height: 1.22; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.case-card { min-height: 210px; border: 1px solid var(--line); background: rgb(8 17 29 / 74%); padding: clamp(18px, 2.6vw, 26px); }
.case-card h3 { margin: 0 0 14px; color: var(--ink); font-size: clamp(18px, 2vw, 24px); line-height: 1.16; }
.case-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.method-section, .stack-section { display: grid; gap: clamp(26px, 5vw, 52px); border-top: 1px solid var(--line); padding: clamp(72px, 10vw, 132px) clamp(18px, 6vw, 86px); background: var(--dark); }
.method-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.method-steps li { min-height: 112px; border: 1px solid var(--line); background: rgb(255 255 255 / 5%); padding: 14px; color: var(--ink); font-size: 16px; font-weight: 800; }
.method-steps span { display: block; margin-bottom: 20px; color: var(--accent-strong); font-size: 12px; }
.bot-panel, .contact-form { border: 1px solid var(--line); background: rgb(8 17 29 / 82%); backdrop-filter: blur(16px); }
.bot-panel { display: grid; gap: 16px; padding: clamp(16px, 3vw, 24px); }
.bot-thread { display: grid; max-height: 420px; overflow: auto; gap: 10px; padding-right: 4px; }
.bot-thread p { margin: 0; width: fit-content; max-width: min(520px, 100%); border: 1px solid var(--line); padding: 12px 14px; color: rgb(248 251 255 / 84%); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.bot-thread .bot { background: rgb(84 199 255 / 12%); }
.bot-thread .user { justify-self: end; background: rgb(255 255 255 / 9%); }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-prompts button { background: transparent; padding: 0 12px; text-transform: none; }
.bot-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.bot-form label { position: absolute; left: -10000px; }
.bot-form input, .contact-form input, .contact-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); background: rgb(255 255 255 / 8%); color: var(--ink); padding: 12px 14px; }
.bot-form input::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: rgb(248 251 255 / 48%); }
.bot-form button { background: var(--accent); color: #061421; padding: 0 18px; }
.contact-form { display: grid; gap: 16px; padding: clamp(18px, 4vw, 30px); }
.contact-form label { display: grid; gap: 8px; color: rgb(248 251 255 / 84%); font-size: 13px; font-weight: 700; }
.contact-form textarea { resize: vertical; }
.contact-form button { border-color: rgb(84 199 255 / 72%); background: rgb(84 199 255 / 24%); }
.contact-form button:disabled { cursor: progress; opacity: 0.68; }
.consent { grid-template-columns: 20px 1fr; align-items: start; }
.consent input { min-height: 20px; margin-top: 2px; }
.consent span, .form-status { color: var(--muted); font-size: 12px; line-height: 1.5; }
.honeypot { position: absolute; left: -10000px; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px clamp(18px, 6vw, 86px); background: #02050a; color: var(--muted); font-size: 13px; }
.legal-footer a { color: var(--accent-strong); font-weight: 700; }
.legal-page { min-height: 100svh; background: linear-gradient(180deg, #061525, #03070d 36%), var(--dark); color: var(--ink); }
.legal-header, .legal-content { width: min(920px, 100%); margin: 0 auto; padding-right: clamp(18px, 5vw, 42px); padding-left: clamp(18px, 5vw, 42px); }
.legal-header { padding-top: clamp(36px, 8vw, 86px); padding-bottom: 34px; }
.legal-header a { display: inline-flex; min-height: 42px; align-items: center; border: 1px solid var(--line); padding: 0 14px; color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.legal-header h1 { margin-top: 36px; font-size: clamp(38px, 8vw, 82px); }
.legal-updated, .legal-intro, .legal-content p { color: var(--muted); line-height: 1.7; }
.legal-intro { max-width: 70ch; font-size: clamp(17px, 2vw, 21px); }
.legal-content { display: grid; gap: 18px; padding-bottom: clamp(56px, 9vw, 110px); }
.legal-content section { border-top: 1px solid var(--line); padding-top: 24px; }
.legal-content h2 { font-size: clamp(22px, 3vw, 34px); line-height: 1.1; }
@keyframes rotate-headlines { 0% { opacity: 0; transform: translateY(18px); } 5%, 17% { opacity: 1; transform: translateY(0); } 22%, 100% { opacity: 0; transform: translateY(-18px); } }
@media (max-width: 1120px) {
  .topbar { align-items: start; grid-template-columns: 1fr auto; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .hero-content { padding-top: 168px; }
  .value-section, .about-section, .cases-section, .seo-section, .consult-section, .contact-section { grid-template-columns: 1fr; }
  .section-copy { position: static; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-overlay { background: linear-gradient(90deg, rgb(3 7 13 / 64%), rgb(3 7 13 / 18%)), linear-gradient(0deg, rgb(3 7 13 / 76%) 0%, transparent 50%); }
  .topbar { gap: 10px; padding: 16px 18px; }
  .topbar nav { gap: 8px; }
  .topbar nav a, .sound-toggle { min-height: 38px; }
  .sound-toggle { min-width: 72px; padding: 0 10px; }
  .hero-content { padding: 148px 18px 30px; }
  h1 { font-size: clamp(34px, 10.5vw, 52px); }
  .value-section, .about-section, .cases-section, .seo-section, .consult-section, .contact-section { grid-template-columns: 1fr; padding: 70px 18px; }
  .service-block, .service-block:nth-child(even) .service-copy { display: grid; min-height: auto; grid-template-columns: 1fr; order: initial; padding: 58px 18px; }
  .service-image img { aspect-ratio: 4 / 3; }
  .case-grid, .method-steps { grid-template-columns: 1fr; }
  .section-copy { position: static; }
  .method-section, .stack-section { padding: 70px 18px; }
  .bot-form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .logo-link img { width: clamp(150px, 50vw, 190px); }
  .topbar nav { width: 100%; }
  .topbar nav a, .sound-toggle, .quick-prompts button, .bot-form button, .contact-form button { min-height: 38px; font-size: 11px; }
  .topbar nav a { padding: 0 10px; }
  .hero-content { padding: 150px 14px 26px; }
  h1 { font-size: clamp(31px, 12vw, 46px); }
  .hero-lead { margin-top: 16px; font-size: 16px; }
  .section-copy h2, .service-copy h2, .method-section h2, .stack-section h2 { font-size: clamp(30px, 10vw, 42px); line-height: 1.02; }
  .value-section, .about-section, .cases-section, .seo-section, .consult-section, .contact-section, .method-section, .stack-section, .service-block { padding-right: 14px; padding-left: 14px; }
  .case-card { min-height: auto; }
  .quick-prompts button, .bot-form button, .contact-form button { width: 100%; }
  .back-top { justify-self: start; }
  .value-chain span, .point-list li, .stack-list span { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .topbar { gap: 8px; }
  .logo-link img { width: 138px; }
  .sound-toggle { min-width: 64px; }
  .hero-content { padding-top: 166px; }
  h1 { font-size: 30px; }
}
@media (max-height: 520px) and (orientation: landscape) { .topbar { padding: 10px 14px; } .logo-link img { width: 150px; } .topbar nav a, .sound-toggle { min-height: 34px; } .hero-content { min-height: 560px; padding-top: 116px; padding-bottom: 22px; } h1 { font-size: clamp(31px, 7vw, 56px); } .hero-lead { max-width: 560px; margin-top: 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } .hero-video { display: none; } .hero-shell { background: linear-gradient(90deg, rgb(3 7 13 / 88%), rgb(3 7 13 / 40%)), url('/assets/piquerco-evolution.png') center / cover; } }