/* SF Pro Font Declarations */
@font-face {
    font-family: 'SF Pro Display';
    src: url('./assets/fonts/sf-pro-display_regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('./assets/fonts/sf-pro-display_medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('./assets/fonts/sf-pro-display_bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-bg: #0D0E1F;
    --primary-text: #FFFFFF;
  
    --device-width: 535px;
    --device-height: 677px;
    
    --phone-container-width: 306px;
    --phone-container-height: 626px;
  
    --fade-duration: 2s;
    --fade-delay: 0.7s;
  }
  
  html,
  body {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-text);
    background-color: var(--primary-bg);
  }
  
  body, input, button, select, textarea {
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--primary-text);
  }
  
  /**
  * Safari video border fix
  * Prevents gray border on hover
  */
  video {
    isolation: isolate;
    mask-image: radial-gradient(white,white);
    
  }
  
  body {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 0px;
    padding-left: 30px;
    box-sizing: border-box;
  }
  
  @media screen and (max-width: 650px) {
    body {
      align-items: flex-start;
      padding-right: 0px;
      padding-left: 0px;
    }
  }
  
  .app-showcase-wrapper {
    width: 650px;
    display: grid;
    grid-template-columns: 1fr var(--device-width);
    grid-template-rows: auto auto;
    grid-template-areas:
      "content-area device-display"
      "signup-module device-display";
    column-gap: 38px;
    row-gap: 0;
    transform: scale(1.0);
    opacity: 1;
    transition-property: filter, transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
  }

  @media screen and (max-width: 650px) {
    .app-showcase-wrapper {
      width: 100%;
      grid-template-columns: 1fr;
      grid-template-areas:
        "content-area"
        "device-display"
        "signup-module";
    }
  }
  
  @keyframes shadowAppear {
    from {
      filter: drop-shadow(0 0 40px rgba(36, 138, 249, 0))
              drop-shadow(0 10px 80px rgba(36, 138, 249, 0));
    }
    to {
      filter: drop-shadow(0 0 40px rgba(36, 138, 249, 0.3))
              drop-shadow(0 10px 80px rgba(36, 138, 249, 0.4));
    }
  }
  
  @keyframes glowAppear {
    from {
      opacity: 0;
    }
    to {
      opacity: 0.2;
    }
  }
  
  
  .device-display {
    position: relative;
    grid-area: device-display;
    justify-self: center;
  }
  
  .ambient-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    opacity: 0;
    transform: translate(-50%, -60%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 166, 254, 0.9) 0%, rgba(34, 186, 237, 0) 70%);
    pointer-events: none;
    animation: glowAppear var(--fade-duration) ease-out forwards;
    animation-delay: var(--fade-delay);
  }
  
  .device-frame {
    position: relative;
    width: var(--device-width);
    height: var(--device-height);
  }
  
  .device-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(36, 138, 249, 0))
            drop-shadow(0 10px 80px rgba(36, 138, 249, 0));
    animation: shadowAppear var(--fade-duration) ease-out forwards;
    animation-delay: var(--fade-delay);
  }
  
  .device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  @media screen and (max-width: 650px) {
    .device-frame {
      width: var(--phone-container-width);
      height: var(--phone-container-height);
    }
    
    .device-mockup {
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
  
  .screen-content {
    position: absolute;
    top: 40.4%;
    left: 35.4%;
    transform: translate(-50%, -50%);
    width: 45%;
    aspect-ratio: 9/19.5;
    border-radius: 36px;
    overflow: hidden;
    object-fit: cover;
    z-index: 1;
  }
  
  @media screen and (max-width: 650px) {
    .device-display {
      width: 100%;
      display: flex;
      justify-content: center;
      position: relative;
      overflow: visible;
    }

    .device-display .ambient-effect {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 150%;
      height: 150%;
      transform: translate(-50%, -50%);
      z-index: -1;
    }

    .screen-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 89%;
      aspect-ratio: 9/19.5;
      border-radius: 36px;
      overflow: hidden;
      object-fit: cover;
      z-index: 1;
    }
  }
  
  .content-area {
    grid-area: content-area;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .brand-identity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    position: relative;
    left: -2px;
    margin: 0;
    opacity: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.1s;
  }
  
  .brand-identity img {
    width: 23px;
    height: 23px;
  }
  
  .brand-identity h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
  }
  
  .main-headline {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0px;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #c7c7c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
  }
  
  .tagline-text {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-top: 16px;
    letter-spacing: -0.005em;
    opacity: 0.8;
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.4s;
  }
  
  @media screen and (max-width: 650px) {
    .content-area {
      padding-top: 0;
      padding-left: 10px;
      padding-right: 10px;
      align-items: center;
      text-align: center;
      margin-top: 40px;
      margin-bottom: 20px;
    }
  
    .brand-identity {
      margin-bottom: 20px;
    }
  }
  
  .left-content {
    display: contents;
  }

  .signup-module {
    grid-area: signup-module;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
  }
  
  .platform-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
  }

  .apple-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
  }
  
  .platform-info img {
    position: relative;
    height: 17px;
    width: auto;
    top: -1px;
  }
  
  .privacy-note {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.5;
    transition: all 0.3s ease;
  }
  
  .privacy-note .default-text {
    display: inline;
  }
  
  .privacy-note .success-text {
    display: none;
    color: #10bf7a;
  }
  
  /* Success state for privacy note */
  .signup-module.form-success .privacy-note {
    opacity: 1;
  }
  
  .signup-module.form-success .privacy-note .default-text {
    display: none;
  }
  
  .signup-module.form-success .privacy-note .success-text {
    display: inline;
  }
  
  /* Loops Form Styles */
  .loops-form-container {
    width: 100%;
  }
  
  .loops-form {
    position: relative;
    width: 100%;
    height: 60px;
    left: -7px;
    margin-block-end: 0;
  }
  
  .loops-form-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0 70px 0 24px;
    font-size: 17px;
    font-weight: 400;
    color: var(--primary-text);
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .loops-form-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(36, 138, 249, 0.15);
    transform: scale(1.01);
  }
  
  .loops-form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .loops-form-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #248af9 0%, #1a6ed8 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(36, 138, 249, 0.3);
  }
  
  .loops-form-button:hover {
    background: linear-gradient(135deg, #3694fa 0%, #2678e2 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(36, 138, 249, 0.4);
  }
  
  .loops-form-button:active {
    transform: scale(0.98);
  }
  
  .loops-form-button .icon-paperplane,
  .loops-form-button .icon-checkmark {
    position: absolute;
    width: 22px;
    height: 22px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .loops-form-button .icon-paperplane {
    transform: translate(0, 0);
    opacity: 1;
  }
  
  .loops-form-button .icon-checkmark {
    transform: scale(0);
    opacity: 0;
  }
  
  /* Sending state animations */
  .loops-form.sending .loops-form-button .icon-paperplane {
    animation: flyAway 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  @keyframes flyAway {
    0% {
      transform: translate(0, 0);
      opacity: 1;
    }
    100% {
      transform: translate(30px, -30px);
      opacity: 0;
    }
  }
  
  /* Success animation states */
  .loops-form.success .loops-form-button {
    background: linear-gradient(135deg, #10bf7a 0%, #0fa968 100%);
    animation: successPulse 0.5s ease-out;
  }
  
  .loops-form.success .loops-form-button .icon-paperplane {
    transform: translate(30px, -30px);
    opacity: 0;
  }
  
  .loops-form.success .loops-form-button .icon-checkmark {
    transform: scale(1);
    opacity: 1;
  }
  
  @keyframes successPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes checkmarkPop {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }

  /* Page Load Animations */
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInDown {
    0% {
      opacity: 0;
      transform: translateY(-15px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes gradientFadeIn {
    0% {
      background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    }
    100% {
      background: linear-gradient(180deg, #ffffff 0%, #c7c7c7 100%);
    }
  }

  
  .loops-form.success .loops-form-input {
    color: rgba(16, 191, 122, 0.9);
    font-weight: 500;
    border-color: rgba(16, 191, 122, 0.3);
    background-color: rgba(16, 191, 122, 0.08);
  }
  
  .loops-form-input:disabled {
    cursor: default;
    opacity: 1;
  }
  
  .loops-error {
    text-align: center;
    padding: 10px;
  }
  
  .loops-error-message {
    color: #f2643b;
    margin: 0;
    font-size: 14px;
  }

  /* Beta Checkbox Styles */
  .beta-checkbox-container {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
  }

  .beta-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
  }

  .beta-checkbox-label:hover {
    color: rgba(255, 255, 255, 0.7);
  }

  .beta-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #248af9;
    cursor: pointer;
  }


  .beta-checkbox-text {
    user-select: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  
  @media screen and (max-width: 650px) {
    .signup-module {
      align-items: center;
      box-sizing: border-box;
      padding: 0 14px;
      margin: 40px auto;
      max-width: 350px;
    }

    .loops-form {
      left: 0;
    }

    .beta-checkbox-container {
      justify-content: center;
    }
  }

  /* Large screen media queries for external monitors */
  @media screen and (min-width: 1920px) {
    :root {
      --device-width: 588px;
      --device-height: 745px;
    }

    .app-showcase-wrapper {
      width: 715px;
      column-gap: 42px;
      transform: scale(1.1);
      transform-origin: center bottom;
    }

    .main-headline {
      font-size: 70px;
    }

    .tagline-text {
      font-size: 22px;
    }

    .loops-form {
      height: 58px;
    }

    .loops-form-input {
      height: 58px;
      font-size: 17px;
    }

    .loops-form-button {
      width: 42px;
      height: 42px;
    }

    .loops-form-button .icon-paperplane,
    .loops-form-button .icon-checkmark {
      width: 20px;
      height: 20px;
    }
  }

  /* Ultra-wide and 4K monitors */
  @media screen and (min-width: 2560px) {
    .app-showcase-wrapper {
      transform: scale(1.2);
    }
  }

