
/* =========================================================
   ROBOTICS — STYLE.CSS
   Site one-page responsivo
   ========================================================= */

/* ---------- RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: #020913;
  color: #f5f8ff;
  line-height: 1.5;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: #08aefc;
  color: #02101d;
}

/* ---------- HEADER ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 82px;
  padding: 12px clamp(16px, 3.2vw, 52px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: rgba(3, 13, 26, 0.96);
  border-bottom: 1px solid rgba(0, 174, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;

  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(0, 170, 255, 0.85));
}

.brand:hover {
  color: #09b9ff;
}

/* ---------- GOOGLE SEARCH ---------- */
.google-search {
  flex: 1 1 500px;
  width: min(500px, 42vw);
  max-width: 500px;
  min-width: 180px;
  height: 46px;

  display: flex;
  align-items: center;

  padding: 0 10px 0 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.15);
}

.google-search:focus-within {
  box-shadow:
    0 0 0 3px rgba(0, 174, 255, 0.22),
    0 0 30px rgba(0, 170, 255, 0.22);
}

.google-g {
  flex: 0 0 auto;
  margin-right: 12px;

  font-size: 23px;
  line-height: 1;
  font-weight: 800;

  background: linear-gradient(
    45deg,
    #4285f4,
    #34a853,
    #fbbc05,
    #ea4335
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.google-search input {
  width: 100%;
  min-width: 0;
  height: 100%;

  border: 0;
  outline: 0;
  background: transparent;

  color: #172033;
  font-size: 15px;
}

.google-search input::placeholder {
  color: #778396;
}

.google-search button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;
  background: transparent;

  color: #152238;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.google-search button:hover {
  background: #eef4f8;
}

/* ---------- RIGHT HEADER ---------- */
.right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
}

.socials,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 9px;
}

.socials a,
.footer-socials a {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 9px;
  text-decoration: none;

  color: #ffffff;
  background: #0b6aa6;
  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.socials a:hover,
.footer-socials a:hover {
  transform: translateY(-2px);
  filter: brightness(1.18);
}

.socials a:first-child,
.footer-socials a:first-child {
  background: #ef2222;
}

.socials a:nth-child(2),
.footer-socials a:nth-child(2) {
  background: #0a76b8;
}

.socials a:nth-child(3),
.footer-socials a:nth-child(3) {
  background: #c72da2;
}

.socials a:nth-child(4),
.footer-socials a:nth-child(4) {
  background: #1767bd;
}

.socials a:nth-child(5),
.footer-socials a:nth-child(5) {
  background: #050505;
  border: 1px solid #394553;
}

/* ---------- DROPDOWN MENU ---------- */
.dropdown {
  position: relative;
  flex: 0 0 auto;
}

.menu-btn {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 10px 15px;

  border: 1px solid #00aaff;
  border-radius: 11px;
  background: rgba(0, 80, 130, 0.18);

  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: rgba(0, 139, 220, 0.3);
  box-shadow: 0 0 18px rgba(0, 174, 255, 0.22);
  outline: none;
}

.menu-btn span {
  font-size: 13px;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1100;

  width: 190px;
  overflow: hidden;

  background: rgba(6, 23, 44, 0.98);
  border: 1px solid #138bd0;
  border-radius: 12px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

  display: none;
}

.menu-panel.open {
  display: block;
  animation: menuOpen 0.18s ease-out;
}

@keyframes menuOpen {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-panel a {
  display: block;
  padding: 14px 17px;

  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: #0879c6;
  outline: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 720px;
  padding: clamp(55px, 7vw, 90px) 5vw clamp(65px, 8vw, 95px);

  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(35px, 6vw, 90px);

  background:
    radial-gradient(
      circle at 20% 35%,
      #06335b 0,
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #020a14 0%,
      #04182b 55%,
      #01060d 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(
      rgba(0, 160, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 160, 255, 0.07) 1px,
      transparent 1px
    );

  background-size: 50px 50px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    black,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    black,
    transparent
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35),
    transparent
  );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  z-index: -1;

  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}

.glow-one {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: 0;
  background: #008cff;
}

.glow-two {
  width: 260px;
  height: 260px;
  right: 3%;
  top: 8%;
  background: #00d9ff;
}

/* ---------- VIDEO ---------- */
.video-card {
  width: 100%;
  max-width: 690px;
  justify-self: center;

  overflow: hidden;

  border: 1px solid #00aaff;
  border-radius: 12px;
  background: #020a13;

  box-shadow:
    0 0 45px rgba(0, 156, 255, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.3);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  min-height: 46px;

  display: flex;
  align-items: center;

  padding: 12px 16px;

  color: #83d9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.pulse {
  display: inline-block;
  flex: 0 0 auto;

  width: 8px;
  height: 8px;
  margin-right: 8px;

  border-radius: 50%;
  background: #00e5ff;

  box-shadow: 0 0 10px #00e5ff;

  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

/* ---------- HERO COPY ---------- */
.hero-copy {
  width: 100%;
  max-width: 610px;
}

.eyebrow {
  margin-bottom: 22px;

  color: #00c4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.hero h1 {
  margin: 0 0 28px;

  color: #f5f8ff;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero h1 strong {
  color: #08aefc;
  text-shadow: 0 0 25px rgba(0, 174, 255, 0.3);
}

.hero p {
  margin: 0 0 18px;

  color: #c9d7e7;
  font-size: 18px;
  line-height: 1.65;
}

.hero .highlight {
  color: #00c4ff;
  font-weight: 600;
}

/* ---------- TOPICS ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin-top: 36px;

  border-top: 1px solid #1b5d84;
  border-bottom: 1px solid #1b5d84;
}

.topics div {
  min-height: 112px;
  padding: 20px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  border-right: 1px solid #1b5d84;
}

.topics div:last-child {
  border-right: 0;
}

.topics b {
  display: block;
  margin-bottom: 8px;

  color: #00b7ff;
  font-size: 27px;
  line-height: 1;
}

.topics span {
  color: #dce8f5;
  font-size: 12px;
  line-height: 1.35;
}

/* ---------- ARTICLES ---------- */
.articles {
  padding: clamp(60px, 8vw, 90px) 5vw;

  background: #ffffff;
  color: #091625;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading > span {
  color: #008fd2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.section-heading h2 {
  margin: 10px 0;

  color: #091625;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: #607085;
  font-size: 16px;
}

.article-grid {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article {
  min-height: 250px;
  padding: 27px;

  display: flex;
  flex-direction: column;

  border: 1px solid #cbe7f7;
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    #f6fbff,
    #eaf5fc
  );

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 136, 204, 0.12);
}

.article .tag {
  color: #008ed0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.article h3 {
  margin: 12px 0;

  color: #0a1b2d;
  font-size: 21px;
  line-height: 1.2;
}

.article p {
  margin: 0 0 20px;

  color: #53657a;
  font-size: 14px;
  line-height: 1.6;
}

.article .date {
  margin-top: auto;
  color: #8493a4;
  font-size: 11px;
}

/* ---------- FOOTER ---------- */
footer {
  display: grid;
  grid-template-columns:
    minmax(160px, 1.2fr)
    minmax(220px, 1.4fr)
    minmax(190px, 1.2fr)
    minmax(170px, 0.8fr);
  align-items: center;
  gap: 28px;

  padding: 35px 5vw;

  background: #020c18;
  border-top: 1px solid #0a5c8c;
}

.footer-brand strong {
  display: block;

  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.footer-brand span {
  display: block;
  margin-top: 5px;

  color: #88a3bb;
  font-size: 13px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-item > b {
  flex: 0 0 auto;

  color: #00b8ff;
  font-size: 25px;
}

.contact-item small {
  display: block;
  margin-bottom: 3px;

  color: #71889e;
  font-size: 12px;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  word-break: break-word;
}

.contact-item a:hover {
  color: #00c4ff;
}

.footer-socials {
  justify-content: flex-end;
}

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  .topbar {
    gap: 15px;
  }

  .google-search {
    max-width: 430px;
  }

  .socials {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 850px;
    justify-self: center;
  }

  .video-card {
    order: 2;
    max-width: 850px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-socials {
    justify-content: flex-start;
  }
}

/* ---------- TABLET SMALL ---------- */
@media (max-width: 800px) {
  .topbar {
    min-height: 72px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .google-search {
    width: auto;
    max-width: none;
    height: 42px;
  }

  .right-tools {
    gap: 8px;
  }

  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics div:nth-child(2) {
    border-right: 0;
  }

  .topics div:nth-child(1),
  .topics div:nth-child(2) {
    border-bottom: 1px solid #1b5d84;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 76px;
  }

  .topbar {
    padding: 9px 12px;
    gap: 8px;
  }

  .brand {
    gap: 5px;
    font-size: 1rem;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
    font-size: 21px;
  }

  .google-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 39px;
    padding-left: 10px;
  }

  .google-g {
    margin-right: 6px;
    font-size: 18px;
  }

  .google-search input {
    font-size: 12px;
  }

  .google-search button {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
    font-size: 22px;
  }

  .menu-btn {
    min-height: 39px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .menu-panel {
    right: 0;
    width: 175px;
  }

  .hero {
    padding: 45px 20px 60px;
    gap: 40px;
  }

  .hero-copy {
    order: 1;
  }

  .video-card {
    order: 2;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero p {
    font-size: 16px;
    line-height: 1.58;
  }

  .topics {
    margin-top: 28px;
  }

  .topics div {
    min-height: 105px;
    padding: 16px 8px;
  }

  .topics b {
    font-size: 24px;
  }

  .topics span {
    font-size: 11px;
  }

  .video-caption {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .articles {
    padding: 60px 20px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .section-heading p {
    font-size: 14px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article {
    min-height: 0;
    padding: 23px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 20px;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 390px) {
  .brand {
    font-size: 0.9rem;
  }

  .brand-icon {
    display: none;
  }

  .google-search {
    width: 100%;
  }

  .google-search input {
    font-size: 11px;
  }

  .menu-btn {
    padding: 8px;
  }

  .menu-btn span {
    display: none;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topics div {
    min-height: 95px;
  }
}

/* ---------- ACCESSIBILITY / REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
