html, body { overflow-x: hidden; max-width: 100%; }
/* =========================================
   MR. SHEYHAKI — MAIN WEBSITE
   Homepage Styles
========================================= */


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #ffffff;

  color: #202636;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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


/* =========================================
   VARIABLES
========================================= */

:root {

  --purple: #6937d8;
  --purple-dark: #5425b8;
  --purple-light: #f3efff;

  --text: #202636;
  --text-light: #394152;

  --muted: #687184;

  --border: #e7e9ef;

  --container: 1180px;

  --radius-large: 28px;
  --radius-medium: 17px;

}



/* =====================================================
   FLOATING ARCADE NAV (from Learning Arcade)
===================================================== */

.arcade-header-bar {
  position: relative;
  z-index: 100;
  height: 0;
  pointer-events: none;
}

.arcade-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 15px;
  background: rgba(8,10,20,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.30), 0 0 0 1px rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.arcade-nav.nav-scrolled {
  transform: translateX(-50%) scale(0.92);
  opacity: 0.85;
  background: rgba(5,7,18,0.55);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.arcade-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e2e8f0;
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.arcade-nav .nav-link:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.arcade-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(124,92,255,0.80), rgba(78,203,255,0.45));
  border-color: rgba(255,255,255,0.20);
  color: #ffffff;
  box-shadow: 0 5px 18px rgba(124,92,255,0.28);
}

.arcade-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 16px;
  height: 2px;
  border-radius: 10px;
  background: #ffffff;
  transform: translateX(-50%);
}

/* Theme button inside floating nav */
.arcade-nav .theme-toggle {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: all 0.2s ease;
}

.arcade-nav .theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  background: rgba(255,255,255,0.14);
}

.arcade-nav .theme-toggle span {
  display: none !important; /* emoji only inside the pill */
}

/* Light theme adjustments for floating nav */
html[data-theme="light"] .arcade-nav,
html:not([data-theme="dark"]) .arcade-nav {
  background: rgba(255,255,255,0.82);
  border-color: rgba(20,25,45,0.12);
  box-shadow: 0 12px 35px rgba(15,23,42,0.14);
}

html[data-theme="light"] .arcade-nav .nav-link,
html:not([data-theme="dark"]) .arcade-nav .nav-link {
  color: #334155;
}

html[data-theme="light"] .arcade-nav .nav-link:hover,
html:not([data-theme="dark"]) .arcade-nav .nav-link:hover {
  color: #1e1b4b;
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.14);
}

html[data-theme="light"] .arcade-nav .nav-link.active,
html:not([data-theme="dark"]) .arcade-nav .nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #7c5cff, #4ecbff);
  border-color: rgba(255,255,255,0.25);
}

html[data-theme="light"] .arcade-nav .theme-toggle,
html:not([data-theme="dark"]) .arcade-nav .theme-toggle {
  background: rgba(255,255,255,0.72);
  color: #171a26;
  border-color: rgba(15,23,42,0.08);
}

/* Hide old site-header if any leftover */
.site-header { display: none !important; }

/* Remove fixed-header body padding (nav floats over content) */
body:not(.cabinet-body) {
  padding-top: 0 !important;
}

/* Desktop: show text, icon optional */
.arcade-nav .nav-ico {
  display: none;
  font-size: 16px;
  line-height: 1;
}
.arcade-nav .nav-text {
  display: inline;
}

/* Mobile: icon-only floating nav */
@media (max-width: 700px) {
  .arcade-nav {
    top: max(8px, env(safe-area-inset-top, 0px));
    left: 50%;
    width: calc(100% - 12px);
    max-width: 100%;
    padding: 6px;
    gap: 4px;
    border-radius: 14px;
    overflow-x: visible;
    justify-content: space-between;
  }
  .arcade-nav .nav-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    font-size: 0;
    border-radius: 10px;
    gap: 0;
  }
  .arcade-nav .nav-ico {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
  }
  .arcade-nav .nav-text {
    display: none;
  }
  .arcade-nav .nav-link.active::after {
    bottom: -3px;
    width: 12px;
    height: 2px;
  }
  .arcade-nav .theme-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 16px;
    border-radius: 10px;
  }
}


/* =========================================
   HEADER
========================================= */

.site-header {

  position: fixed;

  top: 0;

  z-index: 100;

  height: 78px;

  background:
    rgba(255, 255, 255, 0.96);

  backdrop-filter:
    blur(16px);

  border-bottom:
    1px solid #eef0f4;

  width: 100%;
}


/* Keep the global header the same size and floating on every standard page. */
body:not(.cabinet-body) {
  padding-top: 0;
}


.header-inner {

  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  height: 78px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}


/* =========================================
   BRAND
========================================= */

.brand {

  display: flex;

  align-items: center;

  gap: 11px;

  color: var(--text);

  text-decoration: none;

  flex-shrink: 0;
}


.brand-mark {

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background:
    var(--purple);

  color: #ffffff;

  font-size: 12px;

  font-weight: 900;
}


.brand-text {

  display: flex;

  flex-direction: column;

  gap: 2px;
}


.brand-text strong {

  font-size: 14px;

  line-height: 1.15;

  font-weight: 800;
}


.brand-text small {

  color: #7d8595;

  font-size: 10px;

  line-height: 1.15;
}


/* =========================================
   NAVIGATION
========================================= */

.main-nav {

  display: flex;

  align-items: center;

  gap: 27px;
}


.main-nav a {

  position: relative;

  color: #6d7587;

  font-size: 13px;

  line-height: 1;

  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.2s ease;
}


.main-nav a:hover {

  color:
    var(--purple);
}


.main-nav a.active {

  color:
    var(--purple);
}


/* =========================================
   HERO
========================================= */

.hero {

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfaff 100%
    );
}


.hero-inner {

  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  min-height: 610px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    54% 46%;

  align-items: center;

  gap: 20px;
}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

  position: relative;

  z-index: 3;

  padding:
    75px 0;
}


.eyebrow {

  display: inline-block;

  color:
    var(--purple);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 1.7px;
}


.hero h1 {

  margin:
    14px 0 20px;

  color:
    var(--text);

  font-size:
    clamp(
      48px,
      6vw,
      76px
    );

  line-height:
    0.98;

  letter-spacing:
    -3.8px;
}


.hero h1 span {

  color:
    var(--purple);
}


.hero-description {

  max-width: 570px;

  margin: 0;

  color:
    var(--muted);

  font-size: 16px;

  line-height: 1.75;
}


/* =========================================
   HERO BUTTONS
========================================= */

.hero-actions {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}


.primary-button {

  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  padding:
    0 20px;

  border-radius: 10px;

  background:
    var(--purple);

  color: #ffffff;

  font-size: 12px;

  font-weight: 850;

  text-decoration: none;

  box-shadow:
    0 8px 20px
    rgba(105, 55, 216, 0.18);

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


.primary-button:hover {

  background:
    var(--purple-dark);

  transform:
    translateY(-2px);

  box-shadow:
    0 12px 26px
    rgba(105, 55, 216, 0.24);
}


.primary-button span {

  font-size: 18px;

  line-height: 1;
}


.secondary-button {

  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding:
    0 19px;

  border:
    1px solid
    #dfe2e9;

  border-radius: 10px;

  background:
    #ffffff;

  color:
    #4c5567;

  font-size: 12px;

  font-weight: 800;

  text-decoration: none;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.secondary-button:hover {

  border-color:
    var(--purple);

  color:
    var(--purple);

  transform:
    translateY(-2px);
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {

  position: relative;

  min-height: 520px;

  display: flex;

  align-items: center;

  justify-content: center;
}


.hero-circle {

  position: absolute;

  width: 390px;
  height: 390px;

  border-radius: 50%;

  background:
    var(--purple-light);

  box-shadow:
    inset 0 0 0 1px
    rgba(105, 55, 216, 0.04);
}


/* =========================================
   FLOATING HERO CARDS
========================================= */

.hero-card {

  position: absolute;

  z-index: 3;

  width: 220px;

  padding: 18px 20px;

  border:
    1px solid
    rgba(255, 255, 255, 0.8);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.94);

  box-shadow:
    0 16px 40px
    rgba(39, 45, 66, 0.10);

  backdrop-filter:
    blur(12px);

  transition:
    transform 0.3s ease;
}


.hero-card:hover {

  transform:
    translateY(-5px);
}


.hero-card span {

  display: block;

  margin-bottom: 6px;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1px;

  color:
    var(--purple);
}


.hero-card strong {

  display: block;

  font-size: 13px;

  line-height: 1.35;

  color:
    var(--text);
}


.hero-card-one {

  top: 110px;

  right: 35px;
}


.hero-card-two {

  bottom: 120px;

  left: 20px;
}


.hero-card-three {

  bottom: 55px;

  right: 60px;
}


/* =========================================
   QUICK ACCESS SECTION
========================================= */

.quick-section {

  padding:
    90px 0;

  background:
    #ffffff;
}


.section-container {

  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  margin:
    0 auto;
}


.section-heading {

  margin-bottom: 30px;
}


.section-heading h2 {

  margin:
    10px 0 7px;

  font-size:
    clamp(
      30px,
      4vw,
      42px
    );

  line-height: 1;

  letter-spacing:
    -1.8px;
}


.section-heading p {

  margin: 0;

  color:
    var(--muted);

  font-size: 14px;
}


/* =========================================
   QUICK CARDS
========================================= */

.quick-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 17px;
}


.quick-card {

  min-height: 185px;

  display: flex;

  align-items: flex-start;

  gap: 17px;

  padding: 25px;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-medium);

  background:
    #ffffff;

  text-decoration: none;

  box-shadow:
    0 7px 25px
    rgba(32, 38, 54, 0.035);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}


.quick-card:hover {

  transform:
    translateY(-4px);

  border-color:
    #d9dce5;

  box-shadow:
    0 15px 34px
    rgba(32, 38, 54, 0.08);
}


.quick-icon {

  width: 48px;
  height: 48px;

  flex:
    0 0 48px;

  display: grid;

  place-items: center;

  border-radius: 13px;

  background:
    var(--purple-light);

  font-size: 21px;
}


.quick-card h3 {

  margin:
    2px 0 7px;

  font-size: 17px;

  color:
    var(--text);
}


.quick-card p {

  margin: 0;

  color:
    var(--muted);

  font-size: 11px;

  line-height: 1.6;
}


.quick-link {

  display: inline-block;

  margin-top: 15px;

  color:
    var(--purple);

  font-size: 10px;

  font-weight: 850;
}


/* =========================================
   LEARNING ARCADE FEATURE
========================================= */

.arcade-feature {

  padding:
    100px 0;

  background:
    #f8f6ff;

  overflow: hidden;
}


.arcade-feature-inner {

  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  min-height: 430px;

  margin:
    0 auto;

  display: grid;

  grid-template-columns:
    52% 48%;

  align-items: center;

  gap: 30px;
}


.arcade-feature-content {

  position: relative;

  z-index: 3;
}


.arcade-feature h2 {

  margin:
    12px 0 18px;

  font-size:
    clamp(
      36px,
      5vw,
      56px
    );

  line-height:
    0.98;

  letter-spacing:
    -2.8px;
}


.arcade-feature p {

  max-width: 520px;

  margin:
    0 0 26px;

  color:
    var(--muted);

  font-size: 14px;

  line-height: 1.75;
}


/* =========================================
   ARCADE VISUAL
========================================= */

.arcade-feature-visual {

  position: relative;

  height: 420px;
}


.arcade-orb {

  position: absolute;

  width: 340px;
  height: 340px;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    #ffffff;

  box-shadow:
    0 25px 70px
    rgba(105, 55, 216, 0.12);
}


.arcade-orb::before {

  content: "";

  position: absolute;

  width: 110px;
  height: 110px;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 28px;

  background:
    var(--purple);

  box-shadow:
    0 15px 30px
    rgba(105, 55, 216, 0.22);
}


.arcade-orb::after {

  content: "MS";

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  color: #ffffff;

  font-size: 24px;

  font-weight: 900;
}


/* =========================================
   FLOATING SKILL LABELS
========================================= */

.floating-skill {

  position: absolute;

  z-index: 4;

  padding:
    10px 15px;

  border-radius: 10px;

  background:
    #ffffff;

  color:
    var(--text);

  font-size: 11px;

  font-weight: 800;

  box-shadow:
    0 10px 25px
    rgba(32, 38, 54, 0.09);

  animation:
    float 4s ease-in-out infinite;
}


.vocabulary-float {

  top: 65px;

  left: 30px;

  color:
    #5e2fc8;
}


.grammar-float {

  top: 105px;

  right: 20px;

  color:
    #07966d;

  animation-delay:
    -1s;
}


.listening-float {

  bottom: 100px;

  left: 15px;

  color:
    #176fd0;

  animation-delay:
    -2s;
}


.speaking-float {

  bottom: 65px;

  right: 45px;

  color:
    #0795a7;

  animation-delay:
    -3s;
}


@keyframes float {

  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-8px);
  }

}


/* =========================================
   ABOUT PREVIEW
========================================= */

.about-preview {

  padding:
    100px 0;
}


.about-grid {

  display: grid;

  grid-template-columns:
    60% 40%;

  align-items: center;

  gap: 50px;
}


.about-content h2 {

  margin:
    12px 0 18px;

  font-size:
    clamp(
      34px,
      4.5vw,
      52px
    );

  line-height:
    1;

  letter-spacing:
    -2.5px;
}


.about-content p {

  max-width: 610px;

  margin:
    0 0 20px;

  color:
    var(--muted);

  font-size: 14px;

  line-height: 1.8;
}


.text-button {

  color:
    var(--purple);

  font-size: 12px;

  font-weight: 850;

  text-decoration: none;
}


.text-button:hover {

  text-decoration:
    underline;
}


/* =========================================
   ABOUT BOX
========================================= */

.about-box {

  min-height: 270px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-large);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f7f4ff
    );

  box-shadow:
    0 18px 45px
    rgba(32, 38, 54, 0.06);
}


.about-box-mark {

  width: 72px;
  height: 72px;

  display: grid;

  place-items: center;

  margin-bottom: 15px;

  border-radius: 20px;

  background:
    var(--purple);

  color: #ffffff;

  font-size: 18px;

  font-weight: 900;

  box-shadow:
    0 12px 25px
    rgba(105, 55, 216, 0.22);
}


.about-box strong {

  font-size: 18px;

  font-weight: 850;
}


.about-box span {

  margin-top: 4px;

  color:
    var(--muted);

  font-size: 11px;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {

  border-top:
    1px solid
    #edf0f4;

  background:
    #ffffff;
}


.footer-inner {

  width:
    min(
      calc(100% - 48px),
      var(--container)
    );

  margin:
    0 auto;

  padding:
    35px 0;

  display: grid;

  grid-template-columns:
    1fr auto;

  align-items: center;

  gap: 25px;
}


.footer-brand {

  display: flex;

  flex-direction: column;

  gap: 3px;
}


.footer-brand strong {

  font-size: 13px;

  font-weight: 850;
}


.footer-brand span {

  color:
    var(--muted);

  font-size: 10px;
}


.footer-links {

  display: flex;

  align-items: center;

  gap: 20px;
}


.footer-links a {

  color:
    #71798a;

  font-size: 10px;

  font-weight: 700;

  text-decoration: none;
}


.footer-links a:hover {

  color:
    var(--purple);
}


.copyright {

  grid-column:
    1 / -1;

  margin:
    5px 0 0;

  color:
    #9aa1ae;

  font-size: 9px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

  .hero-inner {

    grid-template-columns:
      1fr;

    min-height:
      auto;

    padding-bottom:
      60px;
  }


  .hero-content {

    padding:
      70px 0 30px;
  }


  .hero-visual {

    min-height:
      390px;
  }


  .quick-grid {

    grid-template-columns:
      1fr;
  }


  .arcade-feature-inner {

    grid-template-columns:
      1fr;
  }


  .arcade-feature-content {

    text-align:
      center;
  }


  .arcade-feature-content p {

    margin-left:
      auto;

    margin-right:
      auto;
  }


  .arcade-feature-visual {

    max-width:
      550px;

    width:
      100%;

    margin:
      0 auto;
  }


  .about-grid {

    grid-template-columns:
      1fr;
  }


  .about-box {

    max-width:
      500px;

    width:
      100%;

    margin:
      0 auto;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .header-inner {

    width:
      calc(100% - 28px);
  }


  .main-nav {

    display:
      none;
  }


  .hero-inner,
  .section-container,
  .arcade-feature-inner,
  .footer-inner {

    width:
      calc(100% - 28px);
  }


  .hero-content {

    padding:
      55px 0 20px;
  }


  .hero h1 {

    font-size:
      48px;

    letter-spacing:
      -2.6px;
  }


  .hero-description {

    font-size:
      14px;
  }


  .hero-actions {

    align-items:
      stretch;

    flex-direction:
      column;

    width:
      100%;
  }


  .primary-button,
  .secondary-button {

    width:
      100%;
  }


  .hero-visual {

    min-height:
      330px;
  }


  .hero-circle {

    width:
      280px;

    height:
      280px;
  }


  .hero-card {

    width:
      175px;

    padding:
      14px;
  }


  .hero-card-one {

    top:
      50px;

    right:
      0;
  }


  .hero-card-two {

    bottom:
      70px;

    left:
      0;
  }


  .hero-card-three {

    bottom:
      15px;

    right:
      20px;
  }


  .quick-section,
  .arcade-feature,
  .about-preview {

    padding:
      70px 0;
  }


  .section-heading h2 {

    font-size:
      34px;
  }


  .arcade-feature h2 {

    font-size:
      40px;
  }


  .arcade-feature-visual {

    height:
      350px;
  }


  .arcade-orb {

    width:
      280px;

    height:
      280px;
  }


  .floating-skill {

    font-size:
      10px;

    padding:
      8px 11px;
  }


  .vocabulary-float {

    left:
      0;
  }


  .grammar-float {

    right:
      0;
  }


  .listening-float {

    left:
      0;
  }


  .speaking-float {

    right:
      0;
  }


  .footer-inner {

    grid-template-columns:
      1fr;

    text-align:
      center;
  }


  .footer-brand {

    align-items:
      center;
  }


  .footer-links {

    justify-content:
      center;

    flex-wrap:
      wrap;

    gap:
      13px;
  }


  .copyright {

    grid-column:
      auto;
  }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 420px) {

  .hero h1 {

    font-size:
      42px;
  }


  .hero-card {

    width:
      155px;
  }


  .hero-card strong {

    font-size:
      11px;
  }


  .about-content h2 {

    font-size:
      38px;
  }

}

/* =========================================
   MOBILE MENU TOGGLE
========================================= */

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    position: absolute;
    top: 78px;
    left: 0;
    right: 0;

    background: #ffffff;
    border-bottom: 1px solid #eef0f4;
    padding: 14px 24px 20px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;

    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 8px 0;
    width: 100%;
  }

}

/* ========== PHONE HOMEPAGE / GLOBAL COMPACT ========== */
@media (max-width: 700px) {
  .site-header {
    height: 56px !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  }
  .header-inner {
    height: 56px !important;
    min-height: 56px !important;
  }
  body:not(.cabinet-body) {
    padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Theme toggle + menu: round icon buttons */
  .theme-toggle {
    min-width: 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
  }
  .theme-toggle span { display: none !important; }

  .menu-toggle {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid #e7e9ef;
    background: #fff;
  }

  /* Glass dropdown menu with icons */
  .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0 14px !important;
    z-index: 200;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(32,38,54,.16);
    transition: max-height .32s cubic-bezier(.22,1,.36,1), opacity .28s ease, padding .28s ease;
  }
  .main-nav.open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
    padding: 12px 14px 14px !important;
  }
  .main-nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  .main-nav a.active {
    background: rgba(105,55,216,.14) !important;
    color: #6937d8 !important;
  }

  /* Hero tighter on phone */
  .hero {
    padding: 28px 0 36px !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem) !important;
    line-height: 1.05 !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100%;
  }
  .hero-actions a,
  .hero-actions .main-btn,
  .hero-actions .secondary-button {
    width: 100% !important;
    justify-content: center !important;
  }
}
