/* RESET + BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Sunflower', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9faf4;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;   /* fixed typo */
  }
  
  h1, h2, h3 {
    font-weight: 700;
  }
  
  p {
    font-weight: 300;
  }
  
  
/* NAVBAR */
/* 1) Blend in at the very top (scrollY = 0) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 8px 20px;
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease,
      padding 0.3s ease;
    z-index: 1000;
  }
  
  /* 2) Detach immediately on any scroll (scrollY > 0) */
  .navbar.scrolled {
    background: rgba(195, 177, 225, 0.3);  /* translucent lavender */
    box-shadow: none;
    padding: 8px 20px;                     /* remain tight until expanded */
  }
  
  /* 3) Expand once past the hero (scrollY > window.innerHeight) */
  .navbar.expanded {
    background: rgba(195, 177, 225, 0.9);  /* more opaque lavender */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 6px 16px;                    /* a bit smaller than before */
  }
  
  /* Container */
  .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Logo & site name */
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.4s ease, filter 0.3s ease, color 0.3s ease;
  }
  
  /* Logo mark sizing */
  .nav-symbol {
    height: 24px;                          /* small when blended/detached */
    width: auto;
    transition: height 0.3s ease;
  }
  .navbar.expanded .nav-symbol {
    height: 30px;                          /* grow when expanded */
  }
  
  /* Hover on logo mark */
  .nav-logo:hover .nav-symbol {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
  
  /* Hide the name until fully expanded */
  .nav-logo span {
    font-size: 1.6rem;
    color: #222;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Reveal name & nudge logo only when expanded */
  .navbar.expanded .nav-logo span {
    opacity: 1;
    transform: translateX(0);
  }
  .navbar.expanded .nav-logo {
    transform: translateX(-4px);
  }
  
  /* Nav links */
  .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
  }
  .nav-links a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  .nav-links a:hover {
    color: #61c2a2;
  }
  
  
  /* HERO */
  .hero-fullscreen {
    position: relative;
    background-image:
      radial-gradient(circle at center, #f5e3fa 0%, #c3b1e1 50%, #8f79ac 100%),
      url('assets/texture-grid.svg');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 0;
    text-align: center;
    color: white;
  }
  
  /* Floating icons layer */
  .hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
  }
  .hero-icon {
    position: absolute;
    width: 60px;
    filter: grayscale(100%);
    opacity: 0.3;
    animation: float 2s ease-in-out infinite;
  }
  @keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
  }
  
  /* Icon positions & timings */
  .icon-1 { top:10%; left:15%; animation-duration:5s;   animation-delay:0s; }
  .icon-2 { top:20%; left:80%; animation-duration:7s;   animation-delay:1s; }
  .icon-3 { top:50%; left:25%; animation-duration:6s;   animation-delay:2s; }
  .icon-4 { top:60%; left:70%; animation-duration:8s;   animation-delay:3s; }
  .icon-5 { top:30%; left:40%; animation-duration:5.5s; animation-delay:1.5s; }
  .icon-6 { top:75%; left:30%; animation-duration:6.5s; animation-delay:2.5s; }
  .icon-7 { top:85%; left:60%; animation-duration:7.5s; animation-delay:0.5s; }
  .icon-8 { top:40%; left:10%; animation-duration:6s;   animation-delay:3.5s; }
  .icon-9 { top:15%; left:55%; animation-duration:5.5s; animation-delay:4s; }
  
  /* Logo + text container */
  .logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(-20px);
    animation: logoFadeIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
  }
  @keyframes logoFadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Transparent mark */
  .hero-mark {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease,
                filter 0.3s ease,
                box-shadow 0.3s ease;
  }
  .hero-mark:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1);
    box-shadow: 0 8px 16px rgba(255,228,151,0.6);
  }
  
  /* Text beside mark */
  .hero-logotype {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    transition: color 0.3s ease;
  }
  .hero-mark:hover + .hero-logotype,
  .hero-logotype:hover {
    color: #61c2a2;
  }
  
  /* Headline & typing */
  .hero-headline {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    line-height: 1.4;
    margin-top: 5px;                
    transform: translateY(-40px);     
  }

  .typing-text {
    display: inline-block;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #ffe497;
    width: 0;
    animation: typing 2s steps(50,end) forwards,
               blink 0.8s step-end infinite;
    color: #000;
  }
  @keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
  }
  @keyframes blink {
    0%,100% { border-color: transparent; }
    50%     { border-color: #ffe497; }
  }
  
  /* Scroll-down arrow */
  .scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #ffe497;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
  }
  @keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(6px); }
  }
  
  /* FADE-IN UTIL */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* SECTIONS */
  .intro-section,
  .features-section,
  .preview-section,
  .cta-section,
  .site-footer {
    max-width: 1000px;
    margin: auto;
    padding: 80px 20px;
    text-align: center;
  }
  
  .intro-section { background: #f9faf4; }
  .intro-section h2 { margin-bottom: 20px; }
  
  .features-section { background: white; }
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
    margin-top: 40px;
  }
  .feature-card {
    background: #f1c2a2;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    text-align: center;
  }
  .feature-card:hover { transform: translateY(-8px); }
  
  .preview-section { background: #fff8eb; }
  .preview-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  .preview-response {
    background: #f1c2a2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
  }
  
  .cta-section { background: #61c2a2; color: white; }
  .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: #ffe497;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  .cta-button:hover { background: #fff; color: #000; }
  
  .site-footer {
    background: #a28fcd;
    color: white;
    padding: 40px 20px;
    text-align: center;
  }
  