@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;800&display=swap');

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
/*    border: 1px dotted black;*/
}

body {
    font-family: 'Manrope', sans-serif;
    width: 100%;
    color: #000;
}

a {
    color: #000;
    text-decoration: none;
}

b {
    font-weight: 500;
}

p, li {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
}

img {
    image-rendering: -moz-crisp-edges;         /* Firefox */
    image-rendering:   -o-crisp-edges;         /* Opera */
    image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;  /* IE (non-standard property) */
}

header {
    background-color: #121212;
    width: 100vw;
    height: 90vh;
}

#logo {
    position: absolute;
    top: 3%;
    left: 1.5%;
    height: 15%;
    text-align: center;
}

#meteaure-logo {
    height: 60%;
}

#logo h1 {
    margin-top: 0.5vh;
    font-size: 1.4vh;
    font-weight: 400;
}

#header {
    margin: auto;
    margin-top: 6%;
    text-align: center;
    width: 60%;
    height: 25vw;
    max-width: 1920px;
    overflow: hidden;
    border-radius: 30px;
}

#header-img {
    width: 100%;
    height: auto;
}

#top-section {
    margin-left: 30%;
    margin-top: 4em;
    margin-bottom: 1em;
    width: 40%;
    text-align: center;
}

#top-section h2 {
    font-size: 2.2em;
    font-weight: 400;
}

#top-section p {
    font-size: 1.3em;
}

#top-section * {
    margin-top: 1em;
}

#polaris-title {
    height: 4.5em;
    width: auto;
}

.floating-dock-wrapper {
  position: sticky;
  top: 24px; 
  margin-top: 36px; 
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  width: 100%;
}

.store-buttons {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.store-btn:first-child {
  margin-left: 32px; /* This creates the glass space on the far left */
}

.store-btn:last-child {
  margin-right: 32px; /* This creates the glass space on the far right */
}

.store-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 18px;
}

.section-block {
    padding-bottom: 2em;
    text-align: center;
}

.section-block h2 {
    font-size: 2.3em;
    padding-top: 2em;
}

#update-info {
    width: 18vw;
    height: auto;
    background-color: #BCB6FF;
    color: #272635;
    margin: auto;
    margin-top: 3em;
    padding: 1em;
    text-align: center;
    border-radius: 35px;
    position: relative;
}

#update-info h2 {
    font-size: 1.3em;
    margin-top: 0em;
}

#update-info p {
    margin-top:0.8em;
    font-size: 1em;
    left: 25%;
    transform: translate(0%, -50%);
}

#more-info-button, #discord-button {
    cursor: pointer;
    font-size: 1em;
    border-radius: 30px;
    display: flex;      /* Enables flexbox on the parent */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
}

#more-info-button {
    width: 15vh;
    height: 5vh;
    background-color: #FF6392;
    margin: auto;
    margin-top: 0.2em;
}

#discord-button {
    height: 4em;
    width: 25vh;
    margin: auto;
    margin-top: 3em;
    color: E0E3FF;
    background-color: #5865F2;
}

#discord-button img {
    padding: 1em;
    height: 100%;
}

#discord-button:hover {
    background-color: #4252ff;
    transition-property: color;
    transition: all 0.3s ease-in-out;
}

#user-friendly-img {
    margin: auto;
    text-align: center;
    width: 45%;
    height: 25vw;
    max-width: 1920px;
    overflow: hidden;
    border-radius: 30px;
    vertical-align: middle;
    position: relative;
}

#user-friendly-img img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left:0;
    bottom: 0;
    margin: auto;
}

#engines-section, #discord-section {
    position: relative;
    background-color: #060608; /* Ultra-deep midnight base */
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.03) 100%),
        radial-gradient(circle at 15% 25%, rgba(0, 122, 255, 0.35) 0%, transparent 55%),   /* Azure Blue (Crisp Depth) */
        radial-gradient(circle at 85% 75%, rgba(37, 99, 235, 0.28) 0%, transparent 55%);  /* Deep Electric Blue (Luminous Power) */
    background-attachment: fixed;
    overflow: hidden;
}

#engines-section *, #discord-section * {
    color: #eee;
}

#engines-section .two-features {
    margin-bottom: 4em;
}

#engines-section, #mixing-section, #discord-section {
    padding-top: 3em;
    padding-bottom: 5em;
}

#mixing-section {
    padding-bottom: 2em;
}

#sequencing-section, #tutorial-video-section {
    padding-bottom: 6em;
}

.section-block p {
    margin: 2em auto;
}

#tutorial-video-section iframe {
    width: 50vw;
    height: 28vw;
}

#feature-list-section {
    text-align: center;
    width: 100%;
}

#feature-list-section h2 {
    margin-bottom: 1.5em;
}

#feature-list-section p {
    width: 90%;
    font-weight: 300;
    font-size: 1.1rem;
    margin-top: 1em;
}

#feature-list-section ul {
    width: 45%;
    margin: auto;
    margin-top: 2em;
    font-weight: 400;
    font-size: 1.2rem;
    text-align: left;
    color: #000;
    list-style-type: none;
}

#feature-list-section .feature-column {
    text-align: left;
    width: 40%;
    margin-left: 8%;
}

#feature-list-section li {
    font-weight: 500;
    font-size: 1.3rem;
    padding-left: 1.5rem;
    list-style: inside;
    list-style-type: none;
    color: #333;
}

#feature-list-section ol li {
    font-weight: 300;
    font-size: 1.1rem;
    padding-left: 1.4rem;
    padding-top: 0.1em;
    list-style: inside;
    list-style-type: disc;
    color: #333;
}

#feature-list-section ol li ol li {
    font-size: 1rem;
    list-style-type: circle;
}

#about-header * {
    color: #fff;
}

#about-header {
    background-image: url(img/about-header.jpg);
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

#about-header-text {
    position: relative;
    top: 12%;
    width: 100%;
    height: 60%;
    text-align: center;
}

#about-header-text h1 {
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
 }

#about-header-text p {
    font-size: 1.2em;
    margin-top: 1%;
    font-weight: 300;
    left:30%;
    width: 40%;
    display: inline-block;
}

#about-body {
    color: #333;
    position: relative;
    left: 25%;
    width: 50%;
    padding-top: 2em;
    padding-bottom: 4em;
}

#about-body h2 {
    color: #333;
    font-size: 1.7em;
    margin-top: 2em;
    margin-bottom: 1em;
}

#about-body p {
    margin-bottom: 1.3em;
}

#about-body a {
    color:#000;
    border-bottom: 2px solid;
}

#about-body a:hover {
    color:#777;
    transition-property: color;
    transition: all 0.4s ease-in-out;
}

#menu {
    width: 26%;
    height: 10%;
    top: 1%;
    right: 0;
    position: fixed;
    text-align: right;
    z-index: 1000;
}

#menu li {
    margin-top: 4%;
    margin-right: 10%;
    height: 50%;
    font-size: 1.2em;
    font-weight: 200;
    display: inline-block;
}

#menu li a {
    color: #333;
}

.current-page {
    font-weight: 600;
}

.current-page, #menu li a:hover  {
    padding-bottom: 10%;
    border-bottom: 2px solid;
    transition: all 0.2s ease-in-out;
}

.current-page, #menu li a {
    transition: color 0.4s ease-in-out;
}

#work-together a {
    color: #06f;
    border-bottom: 2px solid;
    transition-property: color;
    transition: all 0.4s ease-in-out;
}

#work-together a:hover {
    color: #33e87e;
}

.feature-img {
    width: 17vw;
    margin: auto;
    border-radius: 30px;
}

.phone-screen {
    width: 13vw;
    margin: auto;
}

.two-features {
    display: flex;
    width: 60%;
    margin: auto;
}

.feature-column {
    text-align: center;
    width: 40%;
    margin: auto;
    margin-top: 0;
    padding: 0 2%;
}

.feature-column img {
    margin-top: 1em;
}

.feature-line {
    width: 45%;
    margin: auto;
    margin-bottom: 2em;
}

.feature-line p {
    text-align: left;
    font-size: 1.3rem;
}

.feature-column h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.feature-column p {
    font-size: 1.1rem;
    text-align: left;
    padding: 0 10%;
    margin-top: 1.5em;
}

footer {
    font-size: 1.1em;
    margin-top: 3em;
    margin-bottom: 1em;
    color: #333;
    text-align: center;
}

.social-icon img {
    font-size: 1.2em;
    height: 2em;
    color: #333;
    margin: 0 0.6em;
    margin-bottom: 1em;
}

.popup_pane {
    display: none;
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    z-index: 2000; /* Layer above the fixed bottom menu (1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.popup {
    border-radius: 20px;
    background-color: #222;
    position: relative;
    left: 28%;
    top: 5%;
    width: 44%;
    height: auto;
    
    box-sizing: border-box;
    box-shadow: 0px -1px 20px 5px rgba(0,0,0,0.8);
}

#updateinfo_inner {
    background-color: #BCB6FF;
    color: #222;
}

#updateinfo_inner h2 {
    margin-top: 1em;
    margin-bottom: 1em;
}

#updateinfo_details .feature_access {
    margin-bottom: 1.6em;
    font-style: italic;
}

#updateinfo_inner p, li {
    font-size: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
}

#update_header {
   padding: 5px 50px;
}

#updateinfo_details {
    scrollbar-color: #444 transparent;
    scrollbar-width: thin;
    overflow-y: scroll;
    font-weight: 300;
    width: 100%;
    height: 80%;
    padding: 5px 50px;
    padding-bottom: 40px;
}

.button {
    border: 2px solid white;
    padding: 3%;
    text-align: center;
    border-radius: 80px;
    cursor: pointer;
    color: #fefefe;
    background-color: rgba(0,0,0,0);
    font-size: 100%;
    padding: 10px 30px 10px 30px;
    display: inline-block;
}

.button:hover {
    background-color: #333;
}

.close-icon {
    mask-image: url(img/cross.svg);
    -webkit-mask-image: url(img/cross.svg);
}

.close-cross {
    position: absolute;
    top: 0;
    right: 0;
    margin: 24px 24px;
    width: 20px;
    height: 20px;
    background: #000;
    mask-size: cover;
}

.close-cross:hover,
.close-cross:focus {
    background: #444;
    cursor: pointer;
}

#email-error {
    display: none;
    margin-top: 20px;
    color: #ff7777;
    font-size: 0.9em;
}

#email-valid {
    display: none;
    margin-top: 20px;
    color: #3ddc84;
    font-size: 0.9em;
}

#email {
    margin-top: 25px;
    margin-left: 10px; 
    margin-bottom: 25px;
    display: inline-block;
    vertical-align: top;
    border-radius: 8px;
    height: 42px;
    width: 60%;
    padding: 10px 20px 10px 30px;
    border: 2px solid white;
    color: #333;
}

#android-logo {
    margin-top: 37px;
    display: inline-block;
    height: 24px;
    background-color: rgba(0,0,0,0);
    vertical-align: top;
    margin-right: 8px;
}

#support, #privacy {
    font-size: 0.8em;
    color: #000;
    margin-left: 30px;
}

#support h1, #privacy h1 {
    margin-top: 20px;
    margin-bottom: 20px;
}

#support h2, #privacy h2 {
    margin-top: 20px;
    margin-bottom: 20px;
}

#support p, #privacy p {
    margin-top: 20px;
    margin-bottom: 10px;
}

#support a, #privacy a {
    color: #0000ff;
}

/* Mobile phones and smaller tablets: */
@media only screen and (max-width:900px) {
    
    header {
        height: fit-content;
    }

    #header {
        margin-top: 0;
        width: 100vw;
        height: auto;
        border-radius: 0px;
    }

    .store-buttons {
      border-radius: 24px;   /* A slightly tighter outer radius */
      padding: 8px;          /* This is the "inner margin" */
      gap: 8px;
    }

    .store-btn {
      background: rgba(0, 0, 0, 0.05); /* Very subtle fill */
      border-radius: 16px;   /* outer (24) - padding (8) = 16px */
    }

    .store-btn .text {
        text-align: left;
        white-space: nowrap;   /* Keeps "App Store" on one line if space permits */
    }

    .store-btn:first-child {
        margin-left: 12px;
    }

    .store-btn:last-child {
        margin-right: 12px;
    }

    #logo {
        height: 13%;
        top: 2%;
        left: 2%;
    }

    #logo h1 {
        font-size: 1.3vh;
        color: #fff;
    } 

    #top-section {
        margin-top: 2em;
    }

    #top-section p {
        text-align: left;
    }

    #top-section, #header-text, #feature-list-section .feature-column {
        width: 84%;
        margin-left: 8%;
    }

    #feature-list-section .feature-column {
        margin-bottom: 0;
    }

    #header-text {
        top: 5vh;
    }

    #polaris-title {
        height: 4em;
    }

    #header-text h2 {
        font-size: 1.5em;
        margin-bottom: 1em;
    }

    #about-header {
        height: 50vh;
    }

    #about-header-text {
        top: 58%;
    }

    #about-header-text h1 {
        font-size: 1.8em;
    }

    #about-header-text p {
        margin-top: 1%;
        font-size: 1em;
        top: 2%;
        width: 80%;
    }

    #header-description {
        position: relative;
    }

    #header-phone {
        max-height: 80%;
        max-width: 100%;
    }

    #header-right-section {
        max-height: none;
        width: 100%;
    }

    #header-phone, #header-right-section {
        position: relative;
        height: auto;
    }

    #header-right-section {
        text-align: center;
    }

    #header-text p {
        margin-top: 4%;
    }

    #update-info {
        width: 100%;
        border-radius: 0;
    }

    #updateinfo_inner {
        left: 0%;
        top: 0%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #update_header {
        padding-left: 1.5em;
    }

    #updateinfo_details {
        height: 90%;
        padding: 1.5em;
        padding-bottom: 40px;
    }

    #updateinfo_inner h2 {
        font-size: 1.3em;
    }

    #updateinfo_inner h3 {
        font-size: 1.2em;
    }

    #updateinfo_inner p {
        font-size: 1.1em;
    }

    #about-body {
        left: 8%;
        width: 84%;
    }

    #menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
        text-align: center;
        padding: 16px 0;
        /* Navigation content sits above the safe area */
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    #menu ul {
        display: flex;
        justify-content: center;
        gap: 2em;
    }

    #menu li {
        font-size: 1.1em;
        margin: 0;
        display: inline-block;
    }
    
    #menu li a {
        color: #333;
        font-weight: 400;
        padding: 8px 0;
    }
    
    .current-page, #menu li a:hover {
        border-bottom: 2px solid #333;
    }

    .feature-line, .feature-column {
        width: 84%;
        margin-left: 8%;
    }

    .two-features {
        display: block;
        width: 100%;
    }

    .feature-column {
        display: flex;
        flex-direction: column;
        margin-bottom: 4em;
        padding: 0;
    }

    .feature-column h3 {
        text-align: left;
        margin-bottom: 0;
    }

    .feature-column img {
        order: 3;
    }

    .feature-column p {
        margin: 0;
        padding: 0;
    }

    .feature-column img {
        width: 75vw;
        margin-top: 1em;
    }

    .section-block {
        padding-bottom: 2em;
    }

    .section-block p {
        margin-bottom: 1em;
    }

    .section-block h2 {
        font-size: 2em;
    }

    .section-block h3 {
        font-size: 1.4 em;
        margin-bottom: 0.4em;
    }

    #user-friendly-img {
        width: 95%;
        height: 50vw;
    }

    #engines-section h3 {
        text-align: center;
    }

    #engines-section img {
        width: 50vw;
    }

    #tutorial-video-section iframe {
        width: 100vw;
        height: 56vw;
    }

    .feature-img {
        width: 60%;
        height: auto;
        margin: auto;
    }

    footer {
        margin-top: 0;
        margin-bottom: 6em;
    }
}

/* Specific fix for iPhone SE and very narrow screens */
@media only screen and (max-width: 380px) {
    .store-buttons {
        padding: 6px;           /* Slightly tighter dock padding */
        gap: 4px;               /* Closer buttons */
        flex-wrap: nowrap !important; /* Absolute force to stay on one line */
    }

    .store-btn {
        padding: 8px 10px;      /* Reduced horizontal padding to save space */
        gap: 6px;               /* Tighter icon-to-text gap */
        flex: 1 1 0;            /* Force equal width distribution */
        min-width: 0;           /* Allows the button to shrink */
    }

    .store-btn:first-child {
        margin-left: 8px;       /* Keeps the glass edge but smaller than 32px */
    }

    .store-btn:last-child {
        margin-right: 8px;      /* Keeps the glass edge but smaller than 32px */
    }

    /* Scale the content inside to ensure it doesn't push the button wider */
    .store-btn .logo img {
        height: 18px; 
    }

    .store-btn .text small {
        font-size: 0.55rem;
    }

    .store-btn .text strong {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}