/* =========================================================
   MISTechnologies
   Clean Responsive Design System
   Ice Crystal Palette
   ========================================================= */

:root {
  --white: #FFFFFF;
  --ink: #0F52BA;
  --blue: #3B82F6;
  --crystal: #C7F0FF;
  --pale-blue: #EAF6FC;

  --ink-soft: #4B6070;
  --muted: #5F6F7B;

  --line: #DCE5EB;
  --surface: #F8FBFD;

  --shadow: 0 18px 45px rgba(27, 54, 93, 0.09);
  --shadow-soft: 0 10px 30px rgba(27, 54, 93, 0.07);

  --radius: 22px;
  --radius-small: 14px;

  --max-width: 1160px;
}


/* =========================================================
   RESET & ACCESSIBILITY FOCUS
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
  overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent; }

/* Enhanced Focus States for Accessibility */ a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   GENERAL
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.eyebrow {
  margin-bottom: 15px;

  color: var(--blue);

  font-size: 0.74rem;
  font-weight: 800;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 5.7rem); }

h2 {
  font-size: clamp(2.2rem, 4.7vw, 3.8rem); }

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--ink-soft);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);

  border-bottom:
    1px solid rgba(220, 229, 235, 0.85);

  backdrop-filter: blur(16px);
}

.nav-container {
  position: relative;

  min-height: 76px;

  display: flex;
  align-items: center;

  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: baseline;

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-main {
  color: var(--ink);
}

.logo-tech {
  color: var(--blue);
  font-weight: 650;
}

.header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--white);
  color: var(--ink);

  padding: 7px 12px;

  min-height: 44px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  cursor: pointer;

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.language-toggle:hover {
  border-color: var(--blue);

  box-shadow:
    0 7px 18px rgba(59, 130, 246, 0.12);

  transform: translateY(-1px);
}

.language-divider {
  color: var(--line);
}

#languageCurrent {
  color: var(--blue);
}

#languageOther {
  color: var(--muted);
}

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 27px;
}

.main-nav a {
  color: var(--ink);

  font-size: 0.88rem;
  font-weight: 650;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.main-nav .nav-cta {
  padding: 10px 17px;

  border-radius: 999px;

  background: var(--ink);
  color: var(--white);
}

.main-nav .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
}

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 11px;

  background: var(--pale-blue);

  align-items: center;
  justify-content: center;

  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  border-radius: 2px;

  background: var(--ink);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: calc(100vh - 76px);

  display: flex;
  align-items: center;

  padding: 100px 0;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(199, 240, 255, 0.78),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--white) 0%,
      var(--pale-blue) 100%
    );

  overflow: hidden;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 0.95fr);

  align-items: center;

  gap: 75px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 28px;

  font-size: clamp(2.65rem, 4.6vw, 4rem);
}

.hero h1 span,
.section-heading h2 span,
.approach-content h2 span,
.about-content h2 span,
.contact-content h2 span {
  color: var(--blue);
}

.hero-text {
  max-width: 600px;

  margin-bottom: 35px;

  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;

  border-radius: 999px;

  font-size: 0.87rem;
  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid var(--ink);

  background: var(--ink);
  color: var(--white);

  box-shadow:
    0 10px 25px rgba(27, 54, 93, 0.16);
}

.btn-primary:hover {
  border-color: var(--blue);

  background: var(--blue);

  box-shadow:
    0 12px 30px rgba(59, 130, 246, 0.22); }

.btn-secondary {
  border: 1px solid var(--line);

  background: var(--white);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--blue);
}


/* =========================================================
   HERO VISUAL (Straight & Engineered Panel)
   ========================================================= */

.hero-visual {
  position: relative;

  min-height: 450px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;

  width: 340px;
  height: 340px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(199, 240, 255, 0.85),
      rgba(234, 246, 252, 0.15) 70%,
      transparent 72%
    );

  filter: blur(3px);
}

.systems-card {
  position: relative;
  z-index: 2;

  width: min(430px, 100%);

  padding: 35px;

  border-radius: 26px;

  background: var(--ink);
  color: var(--white);

  box-shadow: var(--shadow);
  
  /* Tilt removed to ensure clean architectural alignment */ }

.systems-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 34px;
}

.systems-card-label {
  color: var(--crystal);

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-dot {
  display: block;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--crystal);

  box-shadow:
    0 0 0 5px rgba(199, 240, 255, 0.13),
    0 0 20px rgba(199, 240, 255, 0.72);
}

.systems-list {
  display: grid;
}

.systems-row {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 16px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.12); }

.systems-row-icon {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(199, 240, 255, 0.12);

  color: var(--crystal);

  font-size: 0.85rem;
}

.systems-row strong {
  display: block;

  color: var(--white);

  font-size: 1rem;
}

.systems-row small {
  display: block;

  margin-top: 2px;

  color:
    rgba(255, 255, 255, 0.58);

  font-size: 0.77rem;
}

.floating-card {
  position: absolute;
  z-index: 3;

  padding: 14px 18px;

  border:
    1px solid rgba(199, 240, 255, 0.95);

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(199, 240, 255, 0.42)
    );

  color: var(--ink);

  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(12px);

  font-size: 0.77rem;
  font-weight: 750;

  white-space: nowrap;
}

.floating-one {
  top: 25px;
  right: 0;
}

.floating-two {
  bottom: 27px;
  left: 0;
}

.floating-card::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: middle;
}


/* =========================================================
   SECTION HEADING & SERVICES
   ========================================================= */

.section-heading {
  max-width: 760px;

  margin-bottom: 55px;
}

.section-heading h2 {
  margin-bottom: 21px;
}

.section-heading > p:last-child {
  max-width: 680px;

  font-size: 1rem;
}

.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.service-card {
  position: relative;

  padding: 33px;

  border:
    1px solid var(--line);

  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(59, 130, 246, 0.28);

  box-shadow: var(--shadow);
}

.service-card-featured {
  background: var(--ink);
  border-color: var(--ink);
}

.service-card-featured h3 {
  color: var(--white);
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card-featured .service-label {
  color: var(--crystal);
}

.service-card-featured .service-star {
  color: var(--crystal);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin-bottom: 27px;
}

.service-label {
  color: var(--blue);

  font-size: 0.67rem;
  font-weight: 800;

  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-star {
  color: var(--blue);

  font-size: 0.95rem;
}

.service-card h3 {
  margin-bottom: 15px;

  max-width: 530px;
}

.service-card > p {
  margin-bottom: 23px;

  font-size: 0.91rem;
  line-height: 1.72;
}

.service-list {
  list-style: none;
}

.service-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  .service-card-wide .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 33px;
  }
}

.service-list li {
  padding: 9px 0;

  border-top:
    1px solid var(--line);

  color: var(--ink);

  font-size: 0.82rem;
}

.service-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  color: var(--blue);
  vertical-align: middle;
}

.service-card-featured .service-list li {
  border-color:
    rgba(255, 255, 255, 0.14);

  color: rgba(255, 255, 255, 0.88);
}

.service-card-featured .service-list li::before {
  color: var(--crystal);
  background: var(--crystal);
}


/* =========================================================
   APPROACH & ABOUT & CONTACT
   ========================================================= */

.approach-section {
  background:
    linear-gradient(
      135deg,
      var(--pale-blue),
      #F4FBFE
    );
}

.approach-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  align-items: start;

  gap: 95px;
}

.approach-content h2 {
  margin-bottom: 30px;
}

.approach-content p:not(.eyebrow) {
  max-width: 620px;

  margin-bottom: 20px;
}

.steps {
  display: grid;

  overflow: hidden;

  border:
    1px solid rgba(220, 229, 235, 0.95);

  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow-soft);
}

.step {
  display: grid;

  grid-template-columns: 48px 1fr;

  gap: 18px;

  padding: 29px;

  border-bottom:
    1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--pale-blue);

  color: var(--blue);

  font-size: 0.8rem;
}

.step-content h3 {
  margin-bottom: 7px;
}

.step-content p {
  font-size: 0.88rem;
}

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(0, 1.25fr);

  align-items: start;

  gap: 95px;
}

.about-card {
  min-height: 280px;

  padding: 35px;

  display: flex;
  align-items: flex-end;

  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      var(--pale-blue),
      var(--white)
    );

  border:
    1px solid var(--line);

  box-shadow: var(--shadow-soft);
}

.about-mark {
  margin-right: 20px;

  color: var(--blue);

  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 850;

  letter-spacing: -0.08em;
}

.about-card-text {
  display: flex;
  flex-direction: column;
}

.about-card-text span {
  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 750;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-card-text strong {
  margin-top: 4px;

  color: var(--ink);

  font-size: 0.95rem;
}

.about-content h2 {
  margin-bottom: 27px;
}

.about-content > p:not(.eyebrow) {
  max-width: 720px;

  margin-bottom: 20px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;

  gap: 12px 24px;

  margin-top: 30px;
}

.about-points > div {
  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--ink);

  font-size: 0.82rem;
  font-weight: 650;
}

.check {
  color: var(--blue);

  font-size: 0.7rem;
}

.contact-section {
  background: var(--pale-blue);
}

.contact-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);

  align-items: start;

  gap: 95px;
}

.contact-content h2 {
  margin-bottom: 24px;
}

.contact-content > p:not(.eyebrow) {
  max-width: 500px;

  margin-bottom: 29px;
}

.contact-email {
  display: inline-block;

  padding-top: 10px;
  padding-bottom: 3px;

  border-bottom:
    1px solid var(--blue);

  color: var(--blue);

  font-weight: 750;
}

.contact-form {
  padding: 34px;

  border:
    1px solid var(--line);

  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: var(--ink);

  font-size: 0.8rem;
  font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  border:
    1px solid var(--line);

  border-radius: 11px;

  padding: 13px 14px;

  background: var(--surface);
  color: var(--ink);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 135px;

  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.10);
}

.contact-form .btn {
  border: 0;
}

.form-note {
  margin-top: 11px;

  font-size: 0.72rem;
}

.form-status {
  margin-top: 8px;

  font-size: 0.8rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #15803D;
}

.form-status[data-state="error"] {
  color: #B91C1C;
}

.form-honeypot {
  position: absolute;
  left: -9999px;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.site-footer {
  padding: 35px 0;

  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.footer-logo {
  margin-bottom: 5px;

  color: var(--white);

  font-size: 1rem;
  font-weight: 800;

  letter-spacing: -0.02em;
}

.footer-logo span {
  color: var(--crystal);
  font-weight: 600;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.63);

  font-size: 0.75rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 17px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 0.7rem;
}

.reveal {
  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 950px) {
  .section {
    padding: 85px 0;
  }

  .hero-grid,
  .approach-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    max-width: 750px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .about-card {
    min-height: 220px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-container {
    min-height: 70px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 23px 20px 27px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 8px 0;
  }

  .main-nav .nav-cta {
    width: auto;
    margin-top: 5px;
    padding: 10px 17px;
  }

  .hero {
    padding: 75px 0 80px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 350px;
  }

  .systems-card {
    padding: 29px;
  }

  .floating-one {
    top: 3px;
    right: 5px;
  }

  .floating-two {
    bottom: -16px;
    left: 5px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 210px;
  }

  .contact-form {
    padding: 27px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 70px 0;
  }

  .language-toggle {
    padding: 7px 10px;
  }

  .hero-visual {
    min-height: 315px;
  }

  .systems-card {
    width: 94%;
    padding: 24px;
  }

  .systems-row {
    padding: 13px 0;
  }

  .floating-card {
    padding: 11px 13px;
    font-size: 0.67rem;
  }

  .service-card {
    padding: 27px;
  }

  .step {
    grid-template-columns: 42px 1fr;
    padding: 25px;
  }

  .about-card {
    padding: 27px;
  }

  .about-mark {
    font-size: 3.3rem;
  }

  .about-points {
    flex-direction: column;
    gap: 11px;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Line icons */
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.service-star .ico {
  width: 26px;
  height: 26px;
}
.service-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.service-link:hover { text-decoration: underline; }
.form-privacy a, .footer-link {
  color: inherit;
  text-decoration: underline;
}
