/* Apple-inspired design system */
@layer tokens, base, components, sections, utilities;
/* ------------- tokens ------------- */
@layer tokens {
  :root {
    --fg: #1d1d1f;
    --bg: #ffffff;
    --muted: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --secondary: #f5f5f7;
    --border: #d2d2d7;
    --pad: clamp(20px, 5vw, 40px);
    --maxw: 1024px;
    --hero-maxw: 980px;
    --radius: 18px;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
}
.bg-red{
    background-color: red;
}
.bg-yellow{
    background-color: yellow;
}

.p-10{
    padding: 10px;
}

/* ------------- base ------------- */
@layer base {
  *,*::before,*::after { box-sizing: border-box; }
  html { 
    font-size: 62.5%; 
    scroll-behavior: smooth;
  }

 .cursor {
      width: 120px;
      height: 120px;
      backdrop-filter: url(#displacementFilter5);
      position: fixed;
      pointer-events: none; /* so it doesn't block clicks */
      translate: -70% -70%; /* center the circle on the cursor */
      transition: transform 0.05s ease;
      z-index: 10000; /* ensure it's on top of other elements */
    }
  body {
    margin: 0;
    color: var(--fg);
    background: var(--secondary);
    font: 400 1.2rem/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Helvetica,Arial,sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.022em;
  }

    #cursor {
    position: fixed;
    z-index: 10000;
    overflow: hidden;
    left: 0;
    inset: 0;
    top: 0;
    border-radius: 100%;
    width: 40px;         /* ball size */
    height: 40px;
    box-shadow:  white;
    transform: translate(-50%, -50%);
    }
   
  p { color:white;
    margin: 0; }
  img, picture { max-inline-size: 100%; block-size: auto; display: block; }
  .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------- components ------------- */
@layer components {
  /* Hide default cursor on devices with hover capability */
  }
  .nav { 
    width: 70%; 
    margin-inline: auto; 
    padding: 0 var(--pad); 
    height: 38px;
    color: white;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    
  }
    .nav__brand { display:flex; align-items:center; }
    .nav__links { display:flex; align-items:center; gap:20px; }
    .nav__links a { text-decoration:none; font-size:1.2rem; color:white; font-weight:300; }
    .nav__links a:hover { color: var(--accent); }
    .nav__hamburger { display:none; background:transparent; border:0; padding:8px; cursor:pointer; position:relative; }
    .nav__hamburger span { display:block; width:22px; height:2px; background:white; margin:4px 0; transition:transform .3s, opacity .3s; }
    .nav--open .nav__hamburger span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
    .nav--open .nav__hamburger span:nth-child(2){ opacity:0; }
    .nav--open .nav__hamburger span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
    @media (max-width: 900px){
      .nav { width:100%; }
    }
    @media (max-width: 760px){
      .nav { height:auto; padding:8px var(--pad); }
      .nav__hamburger { display:block; }
      .nav__links { 
        position:absolute; 
        top:100%; left:0; right:0; 
        display:flex; flex-direction:column; align-items:flex-start; 
        gap:12px; 
        background:rgba(0,0,0,0.9); 
        padding:16px var(--pad) 28px; 
        max-height:0; 
        overflow:hidden; 
        opacity:0; 
        transition:max-height .45s ease, opacity .35s ease; 
        border-bottom:1px solid rgba(255,255,255,0.08);
      }
      .nav--open .nav__links { max-height:70vh; opacity:1; }
      .nav__links a, .nav__links .nav__toggle-cursor { width:100%; }
      .nav__links .nav__toggle-cursor { justify-content:flex-start; }
    }
  .nav__toggle-cursor {
  display: flex;
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  font-size: 1.4rem;
  transition: background-color 0.2s ease;
  margin-left: auto;  /* Push to the right end of the nav */
}
.nav__toggle-cursor:hover {
  background: var(--accent-hover);
}
.cursorico{
    width: 10px;
    height: auto;
  }
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

  .site-header{
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    width: 100%;
    z-index: 102;
  }
  .nav .p1{
    color: white;
    font-size: 15px !important;
  }
  .nav__logo { 
    font-weight: 600; 
    font-size: 2.1rem;
    letter-spacing: -0.022em; 
    text-decoration: none; 
    color: inherit; 
  }
  .nav__cta {
    appearance: none; 
    border: 0; 
    border-radius: var(--radius); 
    padding: 8px 16px;
    background: var(--accent); 
    color: #fff; 
    cursor: pointer; 
    font-weight: 400;
    font-size: 1.4rem;
    transition: background-color 0.2s ease;
  }
  .nav__cta:hover {
    background: var(--accent-hover);
  }
  .navico{
    width: 20px;
    height: 20px;
    border-radius: 50%;

  }
.heroimage {
  width: 100%;
  max-width: 980px;
  height: auto !important;
  margin:auto;
  margin-top: 10px;

}


  /* Button specific styles */
  .button {
    padding: 1.5rem 2.5rem;
    border-radius: 3rem;
  }



/* ------------- sections ------------- */
@layer sections {
  .hero {
    background-color: black;
    width: 100%;
    border-radius: 0 0 50px 50px;
    z-index: 50;
  }
    .hero_inner {
    color: white;
    height: 12vh !important;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--pad);
    max-width: var(--hero-maxw);
    margin: 0 auto;
  }
  .hero__eyebrow { 
    font-size: 2.1rem; 
    color: var(--muted); 
    margin-bottom: 8px;
    font-weight: 400;
  }
  .hero__title { 
    font-size: clamp(2.8rem, 10vw, 9.6rem); 
    font-weight: 400;
    letter-spacing: -0.055em; 
    margin: 0 0 16px;
    color:white;

  }
  .hero__subtitle { 
    font-size: clamp(2.4rem, 4vw, 2.8rem); 
    color: var(--fg);
    margin: 0 0 25px;
    font-weight: 400;
    color: white;  

  }

  .hero__pricing p {
    font-size: 2.1rem;
    color: var(--muted);
  }
  .hero__cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-highlights {
    background: var(--secondary);
    padding: 50px 0 80px 0;
    margin-bottom:50px;
    margin-top: 0px;
    }
  .highlight-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
  }
  .highlight {
    text-align: center;
  }
  .highlight h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.022em;
  }
  .highlight h4 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 16px;
  }
  .highlight p {
    font-size: 1.9rem;
    color: var(--muted);
    line-height: 1.42;
  }
  .feature-callout {

    padding: 30px;
    position: relative;  
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    /* full-bleed section */
    width: 100%;
    background-image: url('assets/titt.png') !important;
    box-shadow: inset 0 0 5em 1em #000;
  }
.marquee-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* replace the old marquee block */
.marquee-overlay .osc {
  width: max-content;                /* size to content so it can slide */
  transform: translateX(var(--x-left));  /* start on the left */
  animation: oscX var(--osc-duration) ease-in-out  infinite alternate;
  will-change: transform;
}
@keyframes oscX {
  from { transform: translateX(var(--x-left)); }
  to   { transform: translateX(var(--x-right)); }
}

.marquee-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}
    .glass {
    margin-top: 100px;
    width: 400px;
    height: 400px;
    backdrop-filter: url(#displacementFilter4);
    }

    .section2 {
    padding-top: 100px;
    padding-bottom: 10px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* full-bleed section */
    width: 100%;
    background: var(--secondary);
    margin: 0 auto;

  }
  /* wrap around the image so overlay can sit on top */
  .section2-media {
    position: relative;
    width: 100%;
    /* movement variables (desktop defaults) */
    --x-left: 25%;
    --x-right: 280%;
    --osc-duration: 5s;
  }

  /* make the image define the overlay area */
  .section2image {
    display: block;
    width: 100%;           /* was 100vw; avoids horizontal overflow */
    height: auto;
    /* border: red 2px solid;  remove if not needed */
  }

    .section2 h2 {
    color: black;
    font-size: 5rem !important;
  }

    .section3 {
      display: flex;
      flex-wrap: wrap; /* allows wrapping on small screens */
      gap: 20px;   
      background-color: white;
      padding: 20px;
    }

    .box {
      flex: 1;   
      display: flex;
      flex-direction: column;
      justify-content: space-between;            /* equal width */
      min-width: 250px;      /* stack when screen smaller than this */
      padding: 40px;
      padding-bottom: 0;
      background-color: var(--secondary);  
      border-radius: 20px;
      text-align: center;
    }
    .section3image1{
        display: block;
        width: 100%;           /* was 100vw; avoids horizontal overflow */
        margin-top: auto;
        height: 70%;
    }
        .section3image2{
        display: block;
        width: 100%;           /* was 100vw; avoids horizontal overflow */
        height: 70%;
        margin-top: auto;
    }

    .section3 h2 {
    color: black;
    font-size: 5rem !important;
  }
  .section3 p{
        font-size: 1.9rem;
    color: var(--muted);
    line-height: 1.42;
  }
@keyframes floatPulse {
  0%,100% { transform: translateY(0) ; }
  50%     { transform: translateY(3px); }
}
.testglass {
  position: relative;
margin-top: 40px;
  width: 282px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Use filter, not backdrop-filter, to apply your SVG filter to the element itself */
  backdrop-filter: url(#displacementFilter6);
  background: transparent;
  color: #fff;
}

/* Border & shadow exactly around the smaller inner rectangle (141x42.5 at 70.5/21.25) */
.testglass::before {
  content:"";
  position: absolute;
  left:70.5px;
  top:21.25px;
  width:141px;
  height:42.5px;
  border:0.6px solid rgb(255, 255, 255);
  border-radius:26px;
    pointer-events:none;
}

    .hero_inner:hover{
        transform: scale(1.05);
        transition: transform 0.3s ease-in-out;
    }
  .arrow-icon{
    width: 25px;
    height: auto;
    margin-left: 4px;
  }


  /* Between-CTA: centers an absolute button between sections */
  .between-cta {
    position: relative;
    height: 0px !important; /* allocate space so the button isn’t overlapped */
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;

  }
  .feature-callout h2 {
    font-size: clamp(4.0rem, 8vw, 6.4rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.055em;
  }
  .feature-description {
    font-size: 2.4rem;
    line-height: 1.33;
    color: white;
    max-width: 640px;
    margin: 0 auto;
  }

  .tech-specs {
    background: rgb(0, 0, 0);
    padding: 80px var(--pad);
  }
  .spec h3{
    color: rgb(187, 187, 187);
  }
  .tech-specs h2 {
    font-size: 4.0rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.022em;
  }
  .specs-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 70px;
  }
  .spec {
    text-align: center;
  }
  .spec h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 16px;
  }
  .spec p {
    font-size: 1.9rem;
    color: var(--muted);
    line-height: 1.42;
  }

  .site-footer {
    padding: 40px var(--pad);
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--secondary);
  }
  .site-footer small {
    font-size: 1.4rem;
    color: var(--muted);
  }
}

/* ------------- utilities ------------- */
@layer utilities {
     @media (hover: hover) and (pointer: fine) {
     }
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  }
    @media (max-width: 1028px) {
    .section2-media { --x-left: 0%; --x-right: 180%; --osc-duration: 3s; }
  }
  /* --- minimal responsive adjustments --- */
  @media (max-width: 900px) {
    .nav { width: 100%; gap: 12px; flex-wrap: nowrap; }
        .nav{justify-content: start !important; }
    .nav p1 { font-size: 1.2rem; }
    .heroimage { height: 36rem !important; }
    .hero__title { font-size: clamp(3.2rem, 9vw, 6.4rem); }
    .hero__subtitle { font-size: clamp(1.8rem, 3.8vw, 2.4rem); }
    .highlight-grid { gap: 40px; }
    .feature-callout { padding: 40px 20px; }
    .section3 { flex-direction: column; }
    .box { padding: 32px 24px 0; }
    /* tighten glass travel on tablets */
    .section2-media { --x-left: 0%; --x-right: 140%; --osc-duration: 3s; }
  }
  @media (max-width: 600px) {
    html { font-size: 58%; }
    .hero_inner { height: auto !important; padding-top: 60px; }
    .heroimage { height: auto !important;
    margin-top: 40px;
    }
    .nav{justify-content: start !important; }
    .testglass { transform: scale(.9); }
    .highlight h3 { font-size: 2.6rem; }
    .highlight h4 { font-size: 2.0rem; }
    .highlight p, .section3 p, .spec p { font-size: 1.6rem; }
    .section2 h2, .section3 h2 { font-size: 3.6rem !important; }
    .specs-grid { gap: 40px; }
    .glass { width: 280px; height: 280px; 
      margin-top: 0px !important;
    }
    /* further reduce travel on small phones */
    .section2-media { --x-left: -10%; --x-right: 120%; --osc-duration: 3s; }
  }
  @media (max-width: 500px) {
        .nav{justify-content: start !important; }
    html { font-size: 55%; }
    .testglass{margin-top: 0px !important;}
    .heroimage { border-radius: 0% !important; margin-top: 50px !important;}
    .box { padding: 28px 20px 0; }
    .section2image{margin-bottom: 80px;}
     .tech-specs { padding: 50px 0px; };
    .product-highlights{margin-bottom: 0px !important;}
    .feature-callout h2 { font-size: clamp(3.2rem, 10vw, 5rem); }
    /* very small devices: minimal motion and slower */
    .section2-media { --x-left: -20%; --x-right: 100%; --osc-duration: 2s; }
  }
}
/* filepath: /Users/jvalaj/apple-day-1/css/styles.css */
/* ...existing code... */

/* ------------- animations ------------- */
/* Baseline hidden state for any data-animate element */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
  /* You can set a neutral transform that many animations override */
  transform: translateY(24px);
}

html.no-anim-mobile [data-animate] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
html.no-anim-mobile * {
  animation: none !important;
}
@media (max-width:700px) {
  html.no-anim-mobile .testglass { animation: none !important; }
  html.no-anim-mobile .glass { animation: none !important; }
}
/* Sample keyframes (add as many varieties as you need) */
@keyframes fadeInSoft {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDownLg {
  from { transform: translateY(-60px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
@keyframes slideDownLgg {
  from { transform: translateY(-400px); opacity:1;}
  to   { transform: translateY(0); opacity:1; }
}
@keyframes slideUpSm {
  from { transform: translateY(30px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
@keyframes slideUpSmm {
  from { transform: translateY(150px) ; opacity:0; }
  to   { transform: translateY(0) ; opacity:1; }
}
@keyframes slideRightFade {
  from { transform: translateX(-50px); opacity:0; }
  to   { transform: translateX(0); opacity:1; }
}
@keyframes scalePop {
  0%   { transform: scale(.85); opacity:0; }
  60%  { transform: scale(1.03); opacity:1; }
  100% { transform: scale(1); }
}
@keyframes rotateIn {
  from { transform: rotate(-8deg) scale(.9); opacity:0; }
  to   { transform: rotate(0) scale(1); opacity:1; }
}
@keyframes floatPulse {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-10px) scale(1.02); }
}