:root {
  color-scheme: dark;
  --bg: #0a111d;
  --surface: #101a2a;
  --text: #f3f6fc;
  --muted: #aab9cc;
  --line: #27374d;
  --accent: #74e4fb;
  --ink: #0b1f32;
  font-family: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; transform: translateY(-150%); padding: 8px 14px; background: var(--surface); z-index: 1; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.37rem; font-weight: 750; letter-spacing: -.045em; }
.brand span span { color: var(--accent); }
.header-row nav { display: flex; align-items: center; gap: clamp(14px, 3.5vw, 42px); font-size: .94rem; }
.header-row nav a { display: inline-flex; align-items: center; min-height: 44px; color: #dbe5f2; }
.header-row nav a:hover { color: var(--accent); }
.header-row nav .nav-contact { gap: 8px; border: 1px solid var(--line); padding-inline: 15px; border-radius: 7px; }

.hero { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: stretch; gap: clamp(25px, 4.7vw, 67px); padding-block: clamp(53px, 7vw, 104px) clamp(55px, 6.2vw, 88px); }
.hero-copy { align-self: center; padding-block: 14px; }
.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.55rem, 5.35vw, 5.1rem);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.068em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy p { margin: 25px 0 28px; max-width: 42ch; color: var(--muted); font-size: clamp(1.02rem, 1.38vw, 1.2rem); }
.hero-image {
  min-height: 360px;
  border: 1px solid #2a4460;
  border-radius: 19px;
  box-shadow: 0 16px 54px #04091095;
  background: #101e32 url("softelabs-servidores.webp") 55% center / cover no-repeat;
}
.actions, .resources { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { padding: 11px 16px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: #b3f0fe; }
.secondary { border-color: #3b5068; }
.secondary:hover { border-color: var(--accent); }
.button:disabled { opacity: .65; cursor: wait; }

.services h2, .android-panel h2, .contact h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 710; line-height: 1.05; letter-spacing: -.05em; }
.section-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 12px; padding-bottom: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); min-height: 34px; font-size: .94rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.services-grid li { background: var(--surface); padding: clamp(16px, 2.25vw, 29px); }
.services-grid li:last-child { grid-column: span 2; }
.services-grid h3 { font-size: 1.14rem; letter-spacing: -.024em; line-height: 1.22; font-weight: 680; }
.services-grid p { color: var(--muted); margin-top: 8px; font-size: .9rem; }
.materials { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding-block: 16px 59px; }
.resources { column-gap: 25px; }
.brochure { justify-self: end; }
.brochure summary { padding-block: 6px; cursor: pointer; color: #d5e4f7; font-size: .93rem; }
.brochure summary:hover { color: var(--accent); }
.brochure-images { display: grid; grid-template-columns: minmax(85px, .75fr) minmax(126px, 1.3fr); align-items: start; gap: 12px; margin-top: 11px; max-width: 480px; }
.brochure-images img { height: auto; border: 1px solid var(--line); border-radius: 8px; }

.android-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; padding: clamp(24px, 4.3vw, 54px); border: 1px solid #2a4460; border-radius: 16px; background: linear-gradient(113deg, #112135 23%, #12283c 100%); }
.android-panel p, .contact p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.android-panel .button { margin-top: 22px; }
.app-preview { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(14px, 3vw, 36px); padding: 0; margin: 0; list-style: none; text-align: center; font-size: .84rem; color: #dce9f7; }
.app-preview img { margin: 0 auto 9px; width: clamp(48px, 6vw, 68px); height: auto; border-radius: 16px; box-shadow: 0 8px 20px #03101cb0; }

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(23px, 6vw, 86px); padding-block: clamp(62px, 8vw, 108px); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; border: 1px solid #425471; border-radius: 7px; background: var(--surface); color: var(--text); min-height: 46px; padding: 9px 11px; }
.contact-form textarea { resize: vertical; display: block; }
.contact-submit { margin-top: 16px; }
.contact-submit p { font-size: .9rem; color: var(--text); }
.contact-submit p:empty { display: none; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 78px; padding-block: 15px; }
.footer-row p { color: var(--muted); font-size: .82rem; }
.footer-row .brand { font-size: 1.15rem; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 56px); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image { min-height: 300px; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 34px); }
  .header-row { min-height: 66px; flex-wrap: wrap; gap: 7px 16px; }
  .header-row nav { column-gap: 12px; font-size: .83rem; }
  .header-row nav .nav-contact { border: none; padding-inline: 0; }
  .header-row nav .nav-contact span { display: none; }
  .hero, .android-panel, .contact { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 42px; gap: 22px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 9.7vw, 4.15rem); }
  .hero-copy p { margin-block: 16px 22px; }
  .hero-image { min-height: 0; aspect-ratio: 16 / 9; }
  .materials { display: block; padding-bottom: 42px; }
  .android-panel { gap: 26px; }
  .app-preview { justify-content: flex-start; }
  .contact { padding-block: 48px; }
}
@media (max-width: 370px) {
  .header-row { justify-content: center; padding-block: 6px; }
  .header-row nav { flex: 1 0 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid li:last-child { grid-column: auto; }
  .contact-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
