* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navbar-offset: calc(1.2rem + 2rem);
    --footer-resting-space: clamp(140px, 18vh, 200px);
    --footer-safe-area: env(safe-area-inset-bottom, 0px);
    --footer-bottom-inset: 0px;
    --content-max-width: 1920px;
    --chrome-max-width: calc(var(--content-max-width) * 1.12);
    --dream-fox-image-width: 1453px;
    --dream-fox-image-height: 1115px;
}

html {
    /*background-image: radial-gradient(rgba(255,255,255,0.1), rgba(0,0,0,1));*/
    background-color: #111111;
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-offset);
}

body {
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    min-height: 100vh;
    padding-bottom: calc(
        var(--footer-resting-space) + var(--footer-safe-area, env(safe-area-inset-bottom, 0px))
    );
    overflow-x: hidden;
    position: relative;
}

.layout-boundary {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-inline: clamp(24px, 5vw, 64px);
}

body.barlow-fallback {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 500;
}

body.barlow-fallback .logo-text {
    font-weight: 600;
}

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

/* Prevent iOS auto-detected contact links from forcing underlines */
a[x-apple-data-detectors],
a[href^="mailto:"],
.contact a,
.contact p a {
    color: inherit !important;
    text-decoration: none !important;
}

/*navbar*/
navbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    padding: 1rem 0;
}

.navbar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    font-size: 1.2rem;
    align-items: center;
    max-width: var(--chrome-max-width);
}

.item {
    opacity: 0.3;
    transition: opacity 1s;
}

.item:hover {
    opacity: 1;
}

/* Hero Section */
.hero { 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex: 1 1 auto;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, #111111 100%);
  z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.1), rgba(0,0,0,0.7));
    background-color: #111111;
}

#threejs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*display: block;*/
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hero-inner {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.logo-text {
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    color: white;
    letter-spacing: 5rem;
    font-size: 8rem;
    margin-right: -5rem;

}
/*
.logo-number {
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    color: #4a4a4a;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        -2px -2px 4px rgba(255,255,255,0.1);
    position: relative;
    margin: 0 10px;
}

.logo-number::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    width: 30px;
    height: 8px;
    background-color: #4a4a4a;
    border-radius: 2px;
}

.logo-number::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -20px;
    width: 40px;
    height: 8px;
    background-color: #4a4a4a;
    border-radius: 2px;
}
*/
.subtitle {
    font-family: 'Pixelify Sans', monospace;
    font-size: 1.5rem;
    color: #cccccc;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    filter: contrast(1.2);
    margin-top: -2rem;

}

/* About */
.about {
    color: #888;
    font-size: 28px;
    padding: 4% 0;
    scroll-margin-top: var(--navbar-offset);
}

.about h2 {
    width: min(100%, 45ch);
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
}

/* Dream Fox */
.product {
    position: relative;
    min-height: max(100vh, var(--dream-fox-image-height));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: clamp(4rem, 10vh, 7rem) 0;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-margin-top: var(--navbar-offset);
    background-color: #111111;
}

.product-inner {
    display: flex;
    justify-content: flex-start;
}

.product::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.product-img {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.product-img img {
    width: var(--dream-fox-image-width);
    max-width: none;
    min-width: var(--dream-fox-image-width);
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center top;
    margin: 0 auto;
    box-sizing: unset !important;
}

.product-txt {
    color: white;
    font-size: 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    width: min(480px, 100%);
    margin-left: 0;
    position: relative;
    z-index: 2;
}

.product-header{
    font-size: 5rem;
}
.AI {
    color: #977DFF;
}

.go-btn {
    position: relative;
    background-color: #cccccc;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 4px;
    font-weight: bold;
    overflow: hidden;
    transition: none;
}
.go-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgb(215, 180, 244), rgb(66, 91, 251));
    opacity: 0;
    transition: opacity 1s;
    z-index: 0;
}
.go-btn a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}
.go-btn:hover::before {
    opacity: 1;
}

/* 404 Page */
body.error-page {
    padding-bottom: 0;
}

body.error-page navbar {
    position: static;
    padding: 2rem 0;
}

.error-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(6rem, 15vh, 12rem) 0;
}

.error-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    color: #f5f5f5;
    max-width: 640px;
}

.error-kicker {
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: 0.75rem;
    font-weight: 600;
    color: #977dff;
}

.error-heading {
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    line-height: 1;
}

.error-copy {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #b5b5b5;
}

body.error-page .go-btn {
    margin-top: 1rem;
}
/* Partners */



/* Footer Section */
.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translate3d(0, var(--footer-bottom-inset, 0px), 0);
    display: flex;
    justify-content: center;
    padding: 24px 0;
    padding-bottom: calc(
        24px + var(--footer-safe-area, env(safe-area-inset-bottom, 0px))
    );
    font-family: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    color: #c0c0c0;
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 30;
}

.footer-inner {
    max-width: var(--chrome-max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.footer a {
    color: inherit;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 32px;
    width: 100%;
    text-align: center;
}

.footer .abn,
.footer .contact {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.footer .contact a {
    text-decoration: none;
}

.footer .copyright {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    opacity: 0.8;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-inner {
        align-items: stretch;
    }

    .footer-content {
        justify-content: space-between;
        text-align: left;
    }

    .footer .abn {
        text-align: left;
    }

    .footer .contact {
        text-align: right;
    }
}




/* Responsive Design */

  /* Tablet breakpoint */
  @media (max-width: 1024px) {
      .logo-text {
          font-size: 6rem;
          letter-spacing: 3.75rem;
          margin-right: -3.75rem;
      }

      .subtitle {
          font-size: 1.125rem;
      }
  }

    /* Mobile landscape breakpoint */
    @media (max-width: 768px) {
        .logo-text {
            font-size: 6rem;
            letter-spacing: 3.75rem;
        }

        .subtitle {
            font-size: 1.127rem;
            margin-right: 2rem;
            margin-top: -1rem;
        }

        .product {
            justify-content: center;
            padding: clamp(4rem, 14vw, 6rem) 0;
        }

        .product-txt {
            margin-left: 0;
        }

        .product-img img {
            object-position: center top;
        }

        .logo {
            font-size: 4rem;
        }

        .logo-number {
            font-size: 4rem;
        }

    }

  /* Mobile portrait breakpoint */
  @media (max-width: 480px) {

    :root {
        --navbar-offset: calc(1.2rem + 1rem);
    }

    navbar{
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1.5rem;
        backdrop-filter: blur(4px) saturate(180%);
        -webkit-backdrop-filter: blur(4px) saturate(180%);
    }

      .hero{
          overflow: visible;
      }

      .hero-background{
        height: 100%;
      }

      #threejs-canvas{
        height: 100%;
        width: 100%;
      }
      
      .logo-text {
          font-size: 4.5rem;
          letter-spacing: 1.2rem;
          margin-right: 0;
      }
      
      .subtitle {
          font-size: 1rem;
          margin-top: -1rem;
          margin-right: 0;
      }

      .about{
        font-size: 1rem;
        padding: 32% 5%;
        margin: 5%;
      }

      .product{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: clamp(3rem, 20vw, 6rem) 6% clamp(3rem, 12vw, 5rem);
      }

      .product-txt {
        width: 100%;
        margin-left: 0;
      }
      .product-header{
        font-size: 3rem;
        padding: 0;
      }

      .product-description {
        font-size: 1.5rem;
      }

      .go-btn { 
        font-size: 1.5rem;
      }

      .go-btn a {
        padding: 0.7rem 1.2rem;
      }

      body.error-page navbar {
        padding: 1rem 0;
      }

      .error-wrapper {
        padding: clamp(4rem, 18vh, 8rem) 0;
      }

      .error-kicker {
        letter-spacing: 0.4rem;
      }

      .error-heading {
        letter-spacing: 0.2rem;
      }

      .error-copy {
        font-size: 1.05rem;
      }

      .logo {
          font-size: 3rem;
      }
      
      .logo-number {
          font-size: 3rem;
      }

     
  }

/* Small mobile breakpoint */
@media (max-width: 360px) {
    .logo-text {
        font-size: 2rem;
        letter-spacing: 1.25rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-right: 0.5rem;
        margin-top: -0.3rem;
    }
}
