    * { margin:0; padding:0; box-sizing:border-box; }    
body {
  font-family: 'Inter', sans-serif;
  background: #050816;
  color: white;
}




header{
  position:absolute;
  top:40px;
  left:0;
  width:100%;
  z-index:1000;

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;

  padding:0 8%;
  background:transparent;
}

/* logo зліва */
header h2{
  justify-self:start;
  margin:0;
  font-size:20px;
  font-weight:700;
  color:#fff;
}

/* меню ідеально по центру */
nav{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:55px;
}

nav a{
  color:#fff;
  text-decoration:none;
  font-size:18px;
  font-weight:600;
  white-space:nowrap;
}

/* кнопка справа */
.theme-toggle{
  grid-column:3;
  justify-self:end;
  margin:0;
}

/* прибрати всі фони */
header::before,
header::after{
  display:none !important;
}






/* ===============================
   HEADER
================================= */

.main-header{
    position:absolute;
    top:2px;
    left:0;
    width:100%;
    z-index:1000;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 8%;
}

/* ===============================
   LOGO
================================= */

.logo{
    display:flex;
    align-items:center;
    gap:0px;

    text-decoration:none;
    color:#fff;

    font-size:20px;
    font-weight:100;
    letter-spacing:-0.4px;
}

.logo-img{
    width:80px;
    height:90px;
    object-fit:contain;
margin-right:-10px;
    filter:
        drop-shadow(0 0 8px rgba(124,58,237,.45))
        drop-shadow(0 0 14px rgba(255,255,255,.12));

    transition:.3s ease;
}

.logo span{
    transition:.3s ease;
}

.logo:hover .logo-img{
    transform:scale(1.06);
}

.logo:hover span{
    color:#c4b5fd;
}

/* ===============================
   RIGHT SIDE
================================= */

.header-right{
    display:flex;
    align-items:center;
    gap:42px;
}

/* ===============================
   NAVIGATION
================================= */
.header-right{
    display:contents;
}

.main-nav{
    justify-self:center;
    display:flex;
    gap:37px;
}
.main-nav a{
    color:rgba(255,255,255,.88);
    text-decoration:none;

    font-size:18px;
    font-weight:600;

    transition:.25s ease;
}

.main-nav a:hover{
    color:#fff;
    text-shadow:0 0 12px rgba(167,139,250,.55);
}

/* ===============================
   THEME TOGGLE
================================= */

.theme-toggle{
    position:relative;

    width:100px;
    height:50px;
    border-radius:50px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 14px;
    cursor:pointer;
    overflow:hidden;

    background:linear-gradient(145deg,#0f172a,#020617);

    box-shadow:
        inset 0 2px 6px rgba(255,255,255,.04),
        inset 0 -2px 10px rgba(0,0,0,.7),
        0 10px 30px rgba(0,0,0,.45);
}

.icon{
    width:22px;
    height:22px;
    object-fit:contain;

    transition:.35s ease;
}

.toggle-circle{
    position:absolute;
    top:4px;
    left:4px;

    width:42px;
    height:42px;
    border-radius:50%;

    background:rgba(255,255,255,.25);
    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.2);

    box-shadow:
        0 8px 20px rgba(0,0,0,.45),
        inset 0 2px 6px rgba(255,255,255,.35);

    transition:.45s ease;
}

/* DARK */

body.dark .sun{
    opacity:1;
    transform:scale(1.15);
}

body.dark .moon{
    opacity:.45;
}

body.dark .toggle-circle{
    transform:translateX(50px);
}

/* LIGHT */

body.light .moon{
    opacity:1;
    transform:scale(1.15);
}

body.light .sun{
    opacity:.45;
}

body.light .toggle-circle{
    transform:translateX(0);
}

/* ===============================
   RESPONSIVE
================================= */

@media(max-width:1100px){

    .main-header{
        padding:0 5%;
    }

    .main-nav{
        gap:26px;
    }

    .main-nav a{
        font-size:16px;
    }

    .logo{
        font-size:18px;
    }

    .logo-img{
        width:28px;
        height:28px;
    }
}

@media(max-width:820px){

    .main-header{
        flex-direction:column;
        gap:18px;
    }

    .header-right{
        flex-direction:column;
        gap:18px;
    }

    .main-nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:18px;
    }
}

















.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 10%;
  min-height: 100vh;
}

/* 🌙 DARK */
body.dark .hero {
  background: url("img/D1.png") no-repeat center/cover;
}

/* ☀️ LIGHT */
body.light .hero {
  background: url("img/W1.png") no-repeat center/cover;
}

.hero {
  position: relative;
  overflow: hidden; /* ВАЖЛИВО */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

/* 🌙 темна тема */
body.dark .hero::before {
  background: linear-gradient(
    90deg,
    rgba(5, 8, 22, 0.95) 0%,
    rgba(5, 8, 22, 0.85) 35%,
    rgba(5, 8, 22, 0.6) 55%,
    rgba(5, 8, 22, 0.2) 70%,
    rgba(5, 8, 22, 0.0) 85%
  );
}
/* ☀️ світла тема */
body.light .hero::before {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.85) 35%,
    rgba(255,255,255,0.6) 55%,
    rgba(255,255,255,0.2) 70%,
    rgba(255,255,255,0.0) 85%
  );
}

.hero-text {
  position: relative;
  max-width: 550px;
  z-index: 2;
}

/* бейдж */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  font-size: 14px;
  margin-bottom: 20px;
}

/* заголовок */
.hero h1 {
  font-size: 72px;
  line-height: 1.45;
  font-weight: 750;
  margin-bottom: 24px;
  
  font-family: 'Inter', sans-serif;
  
  letter-spacing: -1px;

}

body.light .hero h1 {
 font-size: 72px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -1px;

  background: linear-gradient(90deg, #111, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light .hero p {
  color: #4b5563;
}

/* текст */
.hero p {
  font-size: 18px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* кнопки */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.btn.primary {
  background: linear-gradient(90deg,#7c3aed,#c084fc);
  color: white;

  box-shadow: 0 10px 30px rgba(124,58,237,0.4);
}

/* glow під кнопкою */
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(90deg,#7c3aed,#d946ef);
  opacity: 0;
  transition: 0.3s;
}

/* hover */
.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(124,58,237,0.6);
}

/* glow включається */
.btn.primary:hover::before {
  opacity: 0.4;
}
.btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );

  transform: skewX(-20deg);
}

/* анімація */
.btn.primary:hover::after {
  animation: shine 0.9s ease;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

body.light .btn.secondary {
  border: 1px solid rgba(124,58,237,0.25);
  color: #7c3aed;
  background: rgba(124,58,237,0.06);
}

body.light .btn.secondary:hover {
  background: rgba(124,58,237,0.12);
}
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn.secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  background: rgba(255,255,255,0.05);
}

/* hover */
.btn.secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* фічі */
.hero-features {
  display: flex;
  gap: 30px;
  color: #aaa;
  font-size: 14px;
}


  .btn {
  position: relative;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  transition: all 0.25s ease;
  overflow: hidden;
}

#about {
  position: relative;
  overflow: hidden;
}

#about .section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;

  padding: 80px;
  border-radius: 30px;
  position: relative;
z-index: 2;
}

#about .section-content:hover {
    transform: none;
  box-shadow: none;
}
#about h2 {
  font-size: 56px; 
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1px;

  color: white;

  margin-bottom: 24px;
}
body.light #about h2 {
  color: #111;
}

#about p {
  font-size: 18px;
  line-height: 1.8;
  color: #cbd5f5;
  max-width: 520px;
}

body.light #about p {
  color: #444;
}

#about .about-text {
  max-width: 600px;
}
.btn.secondary {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  border-radius: 14px;
}

.btn.secondary:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--accent);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  position: relative;
  padding: 25px;
  border-radius: 20px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  transition: 0.3s;

  overflow: hidden; /* ВАЖЛИВО */
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("img/D4.png") no-repeat center/cover;

  opacity: 0.25; /* контролюєш тут */
}
.card * {
  position: relative;
  z-index: 2;
}





.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(124,58,237,0.3);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: radial-gradient(
    circle at 70% 30%,
    rgba(124,58,237,0.15),
    transparent 60%
  );

  pointer-events: none;
  z-index: 0;
}
/* 🌙 DARK */
body.dark #about {
  background: url("img/D2.png") no-repeat center/cover;
}

/* ☀️ LIGHT */
body.light #about {
  background: url("img/W2.png") no-repeat center/cover;
}

#about .section-content {
  max-width: 1200px;
  margin: 0 auto;
}
body.light #about::before {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.2),
    transparent
  );
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 150px;

  background: linear-gradient(
    to bottom,
    rgba(5,8,22,0) 0%,
    rgba(5,8,22,0.8) 100%
  );

  z-index: 2;
}

body.light .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 100%
  );
}

#about {
  position: relative;
}

body.dark #about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;

  background: linear-gradient(
    to bottom,
    rgba(5,8,22,1),
    rgba(5,8,22,0)
  );

  pointer-events: none;
}



#about .btn.secondary {
  
  margin-top: 10px;
  backdrop-filter: blur(2px);
}

#about .btn.secondary:hover {
  background: rgba(124,58,237,0.2);
  border-color: #7c3aed;
  color: #fff;
}

#about p {
  color: rgba(255,255,255,0.92);
    max-width: 500px;
}

body.light #about p {
  color: #374151;
}

body.light #about h2 {
text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

body.light #about p {
  color: #444;
}

body.light .badge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

body.light .btn.secondary {
  border: 1px solid rgba(0,0,0,0.1);
  color: #111;
}

body.light .btn.secondary:hover {
  background: rgba(124,58,237,0.1);
  border-color: #7c3aed;
}



body.light {
background: #f6f3ff !important;
  color: #111 !important;
}

body.light p {
  color: #444;
}

body.light nav a {
  color: #333;
}

body.light .card {
  background: rgba(0,0,0,0.05);
}

    .hero-text {
      max-width:500px;
    }


    .hero p {
      color:#aaa;
      margin-bottom:20px;
    }

    .hero img {
      width:400px;
      border-radius:20px;
    }


    
 .section {
      padding:100px 10%;
    }
 


.dreams-wrapper {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

/* 🌙 DARK */
body.dark .dreams-wrapper {
  background: url("img/D3.png") no-repeat center/cover;
}

/* ☀️ LIGHT */
body.light .dreams-wrapper {
  background: url("img/W3.png") no-repeat center/cover;
}





/* внутрішні блоки */
.inner-block {
  position: relative;
  z-index: 2;
  margin-bottom: 100px;
}

.inner-block:last-child {
  margin-bottom: 0;
}

/* розділення між блоками */
.inner-block + .inner-block {
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

body.light .inner-block + .inner-block {
  border-top: 1px solid rgba(0,0,0,0.06);
}



    footer {
      padding:40px 10%;
      text-align:center;
      color:#777;
    }
  
  .hero-features {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

   


.info-card {
  display: flex;
  align-items: center;
  gap: 25px;
  border-radius: 34px;

  max-width: 90%;
  padding: 28px 40px;
 overflow: hidden;
  margin: 0 auto; 
  background: linear-gradient(
    120deg,
    rgba(124,58,237,0.15),
    rgba(30,27,75,0.4)
  );

  border: 1px solid rgba(124,58,237,0.25);

  backdrop-filter: blur(20px);

  position: relative;
  overflow: hidden;

  transition: 0.4s;
}







body.light .info-card h3 {
  color: #111;
}

body.light .info-card p {
  color: #555;
}



body.light .info-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(124,58,237,0.15);
}

body.light .info-content p {
  color: #444;
}

body.light .cta-card {
  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.15),
    rgba(99,102,241,0.08)
  );
  border: 1px solid rgba(124,58,237,0.2);
}

body.light .cta-text p {
  color: #555;
}

:root {
  --bg-dark: #050816;
  --text-main: #ffffff;
  --text-secondary: #9ca3af;

  --accent: #7c3aed;
  --accent-light: #a78bfa;

  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);

  --radius: 20px;
}


  /* === Ефект на іконки===*/
.feature svg {
  width: 18px;
  height: 18px;

  color: #a78bfa; /* база */

  filter: drop-shadow(0 0 6px rgba(124,58,237,0.6))
          drop-shadow(0 0 12px rgba(124,58,237,0.4));
}
.feature svg path {
  fill: url(#iconGradient);
}
.feature:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(124,58,237,0.9));
}

/* === Блок які бувають сни ===*/
.dreams-wrapper {
  padding-top: 30px; /* було велике — зменшили */
}


/* hover */

body.dark .card-1 {
  background: url("img/D0.1.png") center/cover no-repeat;
}

body.dark .card-2 {
  background: url("img/D0.2.png") center/cover no-repeat;
}

body.dark .card-3 {
  background: url("img/D0.3.png") center/cover no-repeat;
}

body.dark .card-4 {
  background: url("img/D0.4.png") center/cover no-repeat;
}
body.dark .card-5 {
  background: url("img/D0.5.png") center/cover no-repeat;
}



body.light .card-1 {
  background: url("img/W0.1.png") center/cover no-repeat;
}

body.light .card-2 {
  background: url("img/W0.2.png") center/cover no-repeat;
}

body.light .card-3 {
  background: url("img/W0.3.png") center/cover no-repeat;
}

body.light .card-4 {
  background: url("img/W0.4.png") center/cover no-repeat;
}
body.light .card-5 {
  background: url("img/W0.5.png") center/cover no-repeat;
}


/* всі картки */
.dream-card {
  
  position: absolute;

  width: 350px;
  height: 180px;

  border-radius: 24px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;

  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);

  box-shadow: 
    0 10px 30px rgba(124,58,237,0.25),
    inset 0 0 30px rgba(255,255,255,0.03);
  z-index: 2;
  transition: all 0.35s ease;
}
/* hover */
.dream-card:hover {
  transform: translateY(-10px) scale(1.07);
  z-index: 10;
  filter: brightness(1.15);
  box-shadow: 0 20px 80px rgba(124,58,237,0.5);
}

.dream-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(167,139,250,0.25),
    transparent 70%
  );

  opacity: 0.6;
}



/* =========================
   КОНТЕЙНЕР
========================= */
/* ===============================
   ЯКІ БУВАЮТЬ СНИ
================================= */

.dreams-wrapper{
    position: relative;
    padding: 80px 0 220px;
    overflow: hidden;
}

body.dark .dreams-wrapper{
    background:url("img/D4.png") center/cover no-repeat;
}

body.light .dreams-wrapper{
    background:url("img/W3.png") center/cover no-repeat;
}

/* головний контейнер */
.dreams-section{
    position: relative;
    min-height: 1250px;
    padding: 70px 90px 0;
    overflow: hidden;
}

/* текст */
.dreams-header{
    position: relative;
    z-index: 5;
    max-width: 620px;
    margin-left: 140px;
}

.dreams-header h2{
    margin:0 0 24px;
    font-size:56px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:-2px;
    color:#fff;
}

.dreams-header h2 .line1{
    display:block;
    white-space:nowrap;
}

.dreams-header h2 .line2{
    display:block;
}

.dreams-header p{
    font-size: 18px;
  line-height: 1.8;
  color: #cbd5f5;
  max-width: 520px;
}

/* світла тема */
body.light .dreams-header h2{
    background:linear-gradient(90deg,#111 0%, #111 35%, #5d32ff 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

body.light .dreams-header p{
    color:rgba(20,20,20,.72);
}

/* картки В ТОМУ Ж БЛОЦІ */
.dreams-cards{
    position:absolute;
    inset:0;
    z-index:2;
}

/* картки */
.dream-card{
    position:absolute;
    width:340px;
    height:180px;
    border-radius:24px;
    background-size:cover;
    background-position:center;
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(10px);

    box-shadow:
      0 10px 35px rgba(124,58,237,.22);

    transition:.35s;
}

.dream-card:hover{
    transform:translateY(-10px) scale(1.05);
}

/* усвідомлені сни */
.card-1{
    top:470px;
    left:170px;
    transform:rotate(2deg);
}
/* кошмари */
.card-2{
    top:270px;
    left:540px;
    transform:rotate(-2deg);
}
/* повторювальні сни */
.card-3{
    top:545px;
    left:620px;
    transform:rotate(2deg);
}
/* Пророчі сни */
.card-4{
    top:100px;
    right:270px;
    transform:rotate(2deg);
}
/* звичайні */
.card-5{
    top:370px;
    right:100px;
    transform:rotate(-2deg);
}

/* ===============================
  КОНТЕЙНЕР Переваги
================================= */

.features-section{
  padding: 90px 8% 110px;
  position: relative;
  overflow: hidden;
}

.features-container{
  max-width: 1400px;
  margin: 0 auto;
}

/* верхній блок */
.features-head{
  max-width: 760px;
  margin-bottom: 34px; /* менший відступ до карток */
}

.mini-badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:30px;
  font-size:14px;
  margin-bottom:18px;

  background:rgba(124,58,237,.15);
  color:#c4b5fd;
}
.features-head h2{
  font-size:56px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-2px;
  margin-bottom:18px;
}

.features-head p{
  font-size:19px;
  line-height:1.65;
  color:rgba(255,255,255,.68);
  max-width:300px;
}

/* =========================
   GRID
========================= */

.features-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}

/* =========================
   CARD
========================= */


.feature-card{
  padding:34px;
  min-height:250px; /* було вище */

  border-radius:28px;
  position:relative;

  background:rgba(110, 113, 132, 0.071); /* більш прозорий */
  border:1px solid rgba(209, 188, 245, 0.064);

  backdrop-filter:blur(14px);

  box-shadow:
    inset 0 1px 0 rgba(198, 195, 195, 0),
    0 10px 26px rgba(0, 0, 0, 0);

  transition:.6s ease;
}

.feature-card::before{
  content:"";
  position:absolute;
  inset:0;

  background:
  radial-gradient(circle at 18% 15%,
  rgba(139,92,246,.18),
  transparent 32%);
}

.feature-card:hover{
  transform:translateY(-10px);
  border-color:#9f67ff;
  box-shadow:0 25px 80px rgba(124,58,237,.22);
}

/* =========================
   ICON FIX
========================= */

.feature-icon{
  margin-bottom:34px;
  width:auto;
  height:auto;
  background:none;
  border:none;
  box-shadow:none;
  padding:0;
}

/* просто іконка */
.feature-icon svg{
  width:42px;
  height:42px;

  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;

  filter:
    drop-shadow(0 0 10px rgba(167,139,250,.55))
    drop-shadow(0 0 22px rgba(124,58,237,.25));
}

/* кольори */
.feature-card:nth-child(1) .feature-icon svg{stroke:#f0abfc;}
.feature-card:nth-child(2) .feature-icon svg{stroke:#7dd3fc;}
.feature-card:nth-child(3) .feature-icon svg{stroke:#f9a8d4;}
.feature-card:nth-child(4) .feature-icon svg{stroke:#c4b5fd;}

/* =========================
   TEXT
========================= */

.feature-card h3{
  font-size:26px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
  margin-bottom:18px;
}

.feature-card p{
  font-size:17px;
  line-height:1.65;
  color:rgba(255,255,255,.68);
  max-width:280px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1300px){
  .features-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){

  .features-head h2{
    font-size:52px;
  }

  .features-head p{
    font-size:18px;
  }

  .features-grid{
    grid-template-columns:1fr;
  }

  .feature-card{
    min-height:unset;
  }
}







/* =========================
   останій блок головної сторінки
========================= */

.inner-block{
   width:100%;
  height:100%;      /* займе всю висоту .inner-block */
  min-height:0px; /* така ж як верхній */

  padding:42px 54px;     /* однакова висота */

  margin:0px auto 60px auto; /* як перший блок */
 

  border-radius:30px;

  position:relative;
  left:auto;
  right:auto;
}

.info-card{
  min-height:200px;
  padding:32px 54px;

  border-radius:34px;
  position:relative;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:70px;

  background-size:cover;
  background-position:center;

  border:1px solid rgba(124, 58, 237, 0.093);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 60px rgba(0, 0, 0, 0);

  backdrop-filter:blur(2px);
  transition:.35s ease;
}
.info-card .btn.primary{
  margin-left:auto;
  margin-right:30px; 
}
/* DARK */
body.dark .info-card{
  background-image:
    linear-gradient(rgba(10, 14, 55, 0.341), rgba(10,14,55,.58)),
    url("img/D7.png");
}

/* LIGHT */
body.light .info-card{
  background-image:
    linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.62)),
    url("img/W7.png");
}

.info-card:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 70px rgba(124,58,237,.25);
}

/* TEXT */

.cta-text{
  max-width:900px;
  margin-left:200px;
}

.cta-text h3{
  font-size:30px;
  line-height:1.15;
  margin:0 0 8px;
  font-weight:800;
  color:#fff;
}

.cta-text p{
  margin:0;
  font-size:19px;
  line-height:1.45;
  color:rgba(255,255,255,.86);
}

/* BUTTON */

.info-card .btn.primary{
  padding:18px 34px;
  border-radius:20px;

  font-size:22px;
  font-weight:700;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;

  background:linear-gradient(90deg,#7c3aed,#c084fc);

  box-shadow:0 0 28px rgba(124,58,237,.35);
  transition:.3s ease;
}

.info-card .btn.primary:hover{
  transform:translateY(-2px);
}





    /* === вставні блок віщі сни===*/

.dream-banner {
  width: 100%;
  height: 300px; 
  border-radius: 30px;
  margin: 60px auto;

  background-size: cover;
  background-position: center;

  transition: 0.3s;
  cursor: pointer;
}

/* 🌙 DARK */
body.dark .dream-banner {
  background-image: url("img/D6.png");
}

/* ☀️ LIGHT */
body.light .dream-banner {
  background-image: url("img/W6.png");
}

.dream-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.25);
}
.dream-banner{
  width:100%;
  max-width:1400px;
  height:300px;
  border-radius:30px;

  margin: 580px auto 60px auto; /* головне */

  background-size:cover;
  background-position:center;
}

  
  
    /* === ПЕРЕМИКАЧ ТЕМИ===*/
.theme-toggle {
    cursor: pointer;
  pointer-events: auto;
  position: relative;
  width: 100px;
  height: 50px;
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;

  background: linear-gradient(145deg, #0f172a, #020617);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.05),
    inset 0 -2px 10px rgba(0,0,0,0.8),
    0 10px 30px rgba(0,0,0,0.6);

  backdrop-filter: blur(12px);
  cursor: pointer;
overflow: visible;}

/* іконки */
.icon {
  width: 22px;
  height: 22px;
  opacity: 0.4;
  transition: 0.4s ease;
  z-index: 3;
}

/* DARK: тиснемо сонце */
body.dark .sun {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #facc15);
}

body.dark .moon {
  opacity: 0.4;
}

/* LIGHT: тиснемо місяць */
body.light .moon {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #a78bfa);
}

body.light .sun {
  opacity: 0.4;
}

.toggle-circle {
      pointer-events: none;
  position: absolute;
  width: 42px;
  height: 42px;
  top: 4px;
  left: 4px;
  border-radius: 50%;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.2);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.5),
    inset 0 2px 6px rgba(255,255,255,0.4),
    inset 0 -2px 6px rgba(0,0,0,0.2);

  transition: all 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 2;
}

body.dark .toggle-circle {
  transform: translateX(0);
}

body.light .toggle-circle {
  transform: translateX(50px);
}

body.light .theme-toggle {
  background: linear-gradient(145deg, #e5e7eb, #cbd5f5);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.6),
    inset 0 -2px 10px rgba(0,0,0,0.2),
    0 10px 25px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.6),
    0 0 30px rgba(217,70,239,0.4);
}

.theme-toggle img {
  pointer-events: none;
}



.theme-toggle {
  position: relative;
  z-index: 2000;
}

body.light {
  background: white !important;
  color: black !important;
}
 /* === ПЕРЕМИКАЧ ТЕМИ КІНЕЦЬ*/


/* === НИЗ САЙТУ / FOOTER === */

.mystic-footer{
  position: relative;
  overflow: hidden;
  margin-top: -50px;
  padding: 90px 20px 70px;
  text-align: center;

  /* майже невидимий фон */
  background: linear-gradient(
    to bottom,
    rgba(8,6,25,0.08) 0%,
    rgba(8,6,25,0.18) 35%,
    rgba(8,6,25,0.28) 100%
  );
}

/* плавний перехід зверху */
.mystic-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:180px;
  z-index:1;
  pointer-events:none;

  background:linear-gradient(
    to bottom,
    rgba(8,6,25,0) 0%,
    rgba(8,6,25,0.06) 40%,
    rgba(8,6,25,0.16) 100%
  );
}

/* контент поверх */
.mystic-footer > *{
  position: relative;
  z-index: 2;
}

/* центральна лінія */
.mystic-footer::after{
  content:"";
  position:absolute;
  top:164px;
  left:50%;
  transform:translateX(-50%);
  width:88%;
  height:1px;
  z-index:1;

  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(139,92,246,.22) 18%,
    rgba(139,92,246,.35) 30%,
    transparent 46%,
    transparent 54%,
    rgba(139,92,246,.35) 70%,
    rgba(139,92,246,.22) 82%,
    transparent 100%
  );
}

/* ===== LIGHT ===== */
body.light .mystic-footer{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.12) 45%,
    rgba(255,255,255,0.18) 100%
  );
}

body.light .mystic-footer::before{
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(255,255,255,0.10) 100%
  );
}

body.light .footer-text h3{
  color:#7a4dff;
}

body.light .footer-text p{
  color:#5d5d77;
}
/* арка */
.footer-top-shape{
  position:absolute;
  top:72px;
  left:50%;
  transform:translateX(-50%);
  width:170px;
  height:118px;

  border:1px solid rgba(139,92,246,.35);
  border-bottom:none;
  border-radius:90px 90px 0 0;

  background:radial-gradient(circle at 50% 30%,
  rgba(139,92,246,.08),
  transparent 70%);
}

/* місяць */
.footer-moon{
  position:absolute;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  font-size:34px;
  color:#b87cff;
  text-shadow:
    0 0 8px rgba(184,124,255,.8),
    0 0 18px rgba(184,124,255,.45);
}

/* зірка */
.footer-star{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  font-size:16px;
  color:#d5b3ff;
  text-shadow:0 0 12px rgba(213,179,255,.8);
}

/* текст */
.footer-text{
  position:relative;
  z-index:2;
  margin-top:125px;
}

.footer-text h3{
  margin:0;
  font-size:46px;
  font-weight:800;
  letter-spacing:2px;
  color:#8e5eff;
  text-shadow:
    0 0 10px rgba(142,94,255,.28);
}

.footer-text p{
  margin:10px 0 0;
  font-size:28px;
  color:rgba(255,255,255,.62);
}

/* нижня світлова точка */
.footer-text::after{
  content:"✦";
  display:block;
  margin-top:22px;
  font-size:18px;
  color:#cda7ff;
  text-shadow:0 0 14px rgba(205,167,255,.8);
}

/* адаптив */
@media(max-width:768px){

  .footer-text h3{
    font-size:20px;
  }

  .footer-text p{
    font-size:16px;
  }

  .footer-top-shape{
    width:130px;
    height:92px;
  }

  .mystic-footer::after{
    top:145px;
    width:94%;
  }
}



 /* === Сторінка АІ додаток ====*/
body{
    margin:0;
    font-family:'Inter',sans-serif;
    color:white;
    transition:0.3s ease;

    background:
    linear-gradient(rgba(69, 7, 105, 0.001), rgba(2,4,20,.82)),
    url("img/D1H.png") center center / cover no-repeat fixed;

    min-height:110vh;
}
body.light{
    background:
    linear-gradient(rgba(205, 202, 207, 0.527), rgba(209, 203, 209, 0.88)),
 url("img/W1H.png") center/cover no-repeat fixed !important;


    color:#1b1330;
}

body.light .ai-box{
    background: rgba(255,255,255,.72);
    border:1px solid rgba(180,140,255,.35);
    box-shadow:0 20px 60px rgba(140,100,255,.18);
}
body.light textarea{
    background: rgba(245,240,255,.9);
    color:#2a2140;
    border:1px solid rgba(180,140,255,.25);
}

.hero-ai{
    max-width: 880px;
    margin: 130px auto 30px;
    text-align: center;
    padding: 0 20px;
    
}

.hero-ai h1{
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;

    background: linear-gradient(90deg,#ffffff,#d8b4fe,#ffffff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-ai p{
   
    color: rgba(255,255,255,.8);
     font-size: 19px;
    margin-bottom: 18px;;
}


/* Кнопки*/
.btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Відступи між кнопками */
  margin-top: 30px;
}

.dream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7b4dff, #a86dff);
  box-shadow: 0 10px 30px rgba(123, 77, 255, 0.35), 0 0 20px rgba(168, 109, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: nowrap;
}
.dream-btn.primary {
  transform: scale(1.05); /* Для акцентної кнопки */
}


.dream-btn:active {
  transform: scale(0.97); /* Анімація при кліку */
}

.dream-btn.secondary {
  background: rgba(123, 77, 255, 0.12);
  border: 1px solid rgba(168, 109, 255, 0.4);
  color: #d6c9ff;
  box-shadow: 0 0 10px rgba(123, 77, 255, 0.15);
}

.dream-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.dream-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);

  color: rgba(255,255,255,0.7);
  box-shadow: none;
}

.dream-btn.ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}



.dream-btn.primary {
  background: linear-gradient(135deg, #7b4dff, #a86dff);

  box-shadow:
    0 10px 30px rgba(123, 77, 255, 0.35),
    0 0 20px rgba(168, 109, 255, 0.4);

  animation: glowPulse 2.5s infinite ease-in-out;

  transform: scale(1.05); /* трохи більша */
}
/* 🌓 secondary (менш активна кнопка) */
.dream-btn.secondary {
  background: rgba(123, 77, 255, 0.12);
  border: 1px solid rgba(168, 109, 255, 0.4);

  color: #d6c9ff;
  box-shadow: 0 0 10px rgba(123, 77, 255, 0.15);
}

.dream-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-form .analyze-btn {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    
    padding: 22px 70px;
    border-radius: 999px;
    border: 2px solid transparent;

    background: linear-gradient(90deg, #7b2cff, #d88cff);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 0 25px rgba(170, 90, 255, 0.45);
    transition: all 0.3s ease;
}

/* Hover */
.hero-form .analyze-btn:hover {
    background: rgba(120, 60, 255, 0.08);
    border: 2px solid #b86cff;
    box-shadow: 0 0 28px rgba(181, 90, 255, 0.407);
    transform: translateX(-50%) translateY(-2px);
}
/* головний блок прозоріший */
.ai-box{
    position: relative;
    padding: 38px 62px 80px;   /* було більше — зменшили */
    
    background: rgba(10, 8, 35, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 28px;

    /* красива підсвітка */
    box-shadow:
        0 0 45px rgba(112, 40, 255, 0.132),
        0 0 90px rgba(129, 70, 255, 0.042),
        inset 0 0 30px rgba(255,255,255,0.02);

    transition: all .28s ease;
}
/* фіолетова обводка при наведенні */
.ai-box:hover{
    border-color: rgba(168, 92, 255, .9);
    box-shadow:
        0 0 0 1px rgba(168,92,255,.35),
        0 0 55px rgba(138, 70, 255, 0.16),
        0 0 100px rgba(138,70,255,.18);
}

/* кнопку всередину бокса */
.ai-box .dream-btn{
    position: absolute;
    left: 50%;
    bottom: 18px;   /* було 34px */
    transform: translateX(-50%);
}


/* світла тема */
body.light-theme .ai-box{
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(160,120,255,.18);
}

body.light-theme .ai-box:hover{
    border-color: rgba(145,90,255,.85);
    box-shadow:
        0 0 0 1px rgba(145,90,255,.20),
        0 0 24px rgba(145,90,255,.16);
}

.top-label{
    text-align: left;
    margin-bottom: 10px;
}

.top-label span{
    display:block;
    text-align:center;
    font-size:28px;
    font-weight:800;
    margin-bottom:8px;

    background: linear-gradient(90deg,#ffffff,#d9b8ff,#b57cff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}


.ai-box textarea{
    width: 90%;
    height: 260px;
    resize: none;

    border-radius: 24px;
    border: 1px solid rgba(167,139,250,.4);

    background: rgba(10,10,40,.7);
    color: white;

    padding: 25px;
    font-size: 18px;
    outline:none;
    box-sizing:border-box;
}
/* кнопка як на головному блоці */

/* ===== КОНТЕЙНЕР ДЛЯ КНОПОК ===== */
/* контейнер */
.action-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}


/* база */
.action-btn {
  min-width: 180px;
  height: 50px;
  padding: 0 24px;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-size: 16px;
  font-weight: 600;

  transition: all 0.25s ease;
}


/* 🔥 головна */
.action-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #7a36ff, #b084ff);

  box-shadow:
    0 0 25px rgba(140, 100, 255, 0.6),
    0 10px 25px rgba(80, 20, 180, 0.25);
}


/* 🌫 другорядна */
.action-btn.secondary {
  color: #d6cfff;
  background: rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(10px);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}


/* hover */
.action-btn:hover {
  transform: translateY(-2px) scale(1.03);
}


/* active */
.action-btn:active {
  transform: scale(0.96);
}






/* popup схований за замовчуванням */
.error-popup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: none;                 /* головне */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* показ popup */
.error-popup.show{
    display: flex;
}

/* вікно */
.error-box{
    width: 290px;
    max-width: 90%;
    padding: 38px 30px 30px;
    border-radius: 28px;
    background: linear-gradient(145deg,#070b1f,#0b1030);
    box-shadow: 0 0 35px rgba(138,76,255,.35);
    text-align: center;
    animation: popupShow .25s ease;
}

.error-box p{
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 31px;
}

/* кнопка ок */
.error-box button{
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg,#7b33ff,#c06cff);
    box-shadow: 0 0 25px rgba(167,92,255,.45);
}

@keyframes popupShow{
    from{
        opacity:0;
        transform: scale(.9);
    }
    to{
        opacity:1;
        transform: scale(1);
    }
}

/* ===== RESULT SECTION COMPACT ===== */
#resultBlock{
    display: none;
    max-width: 880px;
    margin: 120px auto 100px;   /* менший відступ зверху */
    padding: 0 20px;
}

.result{
    border-radius: 26px;
    padding: 26px 34px;        /* було більше */
    transition: 0.3s ease;
}

/* заголовки */
.result .title{
    font-size: 19px;
    font-weight: 700;
    margin-top: 14px;         /* менший відступ між блоками */
    margin-bottom: 8px;
    line-height: 1.2;
}

.result .title:first-child{
    margin-top: 0;
}

/* текстові поля */
.result .text{
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
    padding: 12px 16px;       /* нижчі блоки */
    border-radius: 15px;
    min-height: auto;
    transition: 0.3s ease;
}

/* кнопка */
.result .dream-btn{
    margin: 24px auto 0;
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
}

/* ===== DARK ===== */
body:not(.light) .result{
    background: rgba(10,8,35,.62);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(170,90,255,.22);
    box-shadow:
        0 0 35px rgba(120,70,255,.16),
        0 0 80px rgba(120,70,255,.08);
}

body:not(.light) .result .title{
    color:#c792ff;
}

body:not(.light) .result .text{
    color:#fff;
    background: rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.04);
}

/* ===== LIGHT ===== */
body.light .result{
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border:1px solid rgba(180,140,255,.22);
    box-shadow: 0 14px 34px rgba(140,100,255,.10);
}

body.light .result .title{
    color:#7b38ff;
}

body.light .result .text{
    color:#2b2140;
    background: rgba(245,240,255,.92);
    border:1px solid rgba(180,140,255,.14);
}



/* ===== СОНИНИК СТОРІНКА ===== */
/* =========================
   SONNIK PAGE
========================= */

.sonnik-page{
    min-height:100vh;
    padding:140px 20px 90px;
    max-width:1300px;
    margin:0 auto;
}

/* TITLE */

.sonnik-head{
    text-align:center;
    margin-bottom:45px;
}

.sonnik-head h1{
    font-size:64px;
    font-weight:800;
    margin:0;
    letter-spacing:-1px;
}

.sonnik-head p{
    margin-top:12px;
    font-size:22px;
    opacity:.9;
}

/* DARK */
body.dark .sonnik-head h1{
    color:#d9b8ff;
    text-shadow:0 0 20px rgba(170,90,255,.35);
}

body.dark .sonnik-head p{
    color:#f0eaff;
}

/* LIGHT */
body.light .sonnik-head h1{
    color:#7b3cff;
}

body.light .sonnik-head p{
    color:#4b3f68;
}

/* =========================
   LETTERS GRID
========================= */

.letters-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:18px;
    margin-bottom:55px;
}

.letter-btn{
    height:82px;
    border-radius:24px;
    border:none;
    cursor:pointer;
    font-size:44px;
    font-weight:800;
    transition:.25s;
    font-family:inherit;
}

/* DARK */
body.dark .letter-btn{
    background:rgba(8,8,40,.72);
    color:#ffffff;
    border:1px solid rgba(170,90,255,.18);
    box-shadow:0 0 20px rgba(120,70,255,.08);
}

body.dark .letter-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 28px rgba(170,90,255,.22);
}

body.dark .letter-btn.active{
    background:linear-gradient(90deg,#7a34ff,#d28cff);
    color:#fff;
    box-shadow:0 0 30px rgba(180,100,255,.35);
}

/* LIGHT */
body.light .letter-btn{
    background:rgba(255,255,255,.78);
    color:#45209d;
    border:1px solid rgba(130,90,255,.14);
    box-shadow:0 8px 20px rgba(100,80,180,.08);
}

body.light .letter-btn:hover{
    transform:translateY(-3px);
}

body.light .letter-btn.active{
    background:linear-gradient(90deg,#8e4dff,#c98cff);
    color:#fff;
}

/* =========================
   RESULT WINDOW
========================= */

.result-window{
    max-width:900px;
    margin:0 auto;
    border-radius:30px;
    padding:38px;
    min-height:330px;
    transition:.3s;
}

/* DARK */
body.dark .result-window{
    background:rgba(8,8,35,.72);
    border:1px solid rgba(170,90,255,.18);
    backdrop-filter:blur(18px);
    box-shadow:
      0 0 35px rgba(120,70,255,.12),
      0 0 80px rgba(120,70,255,.06);
}

/* LIGHT */
body.light .result-window{
    background:rgba(255,255,255,.78);
    border:1px solid rgba(140,110,255,.15);
    backdrop-filter:blur(18px);
    box-shadow:0 14px 35px rgba(80,60,180,.08);
}

/* =========================
   RESULT TITLE
========================= */

.result-title{
    font-size:34px;
    font-weight:800;
    margin:0 0 26px;
    text-align:center;
}

body.dark .result-title{
    color:#d6b1ff;
}

body.light .result-title{
    color:#7b3cff;
}

/* =========================
   WORD LIST
========================= */

.words-list{
    display:grid;
    gap:14px;
}

.word-card{
    padding:18px 22px;
    border-radius:20px;
    transition:.25s;
}

.word-card strong{
    display:block;
    font-size:20px;
    margin-bottom:6px;
}

.word-card span{
    display:block;
    font-size:17px;
    line-height:1.5;
}

/* DARK */
body.dark .word-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.04);
}

body.dark .word-card strong{
    color:#ffffff;
}

body.dark .word-card span{
    color:#ddd4ff;
}

/* LIGHT */
body.light .word-card{
    background:rgba(245,242,255,.95);
    border:1px solid rgba(120,90,255,.08);
}

body.light .word-card strong{
    color:#41208f;
}

body.light .word-card span{
    color:#5b5178;
}

/* =========================
   EMPTY TEXT
========================= */

.empty-text{
    text-align:center;
    font-size:22px;
    padding:60px 20px;
}

body.dark .empty-text{
    color:#ddd4ff;
}

body.light .empty-text{
    color:#5e5478;
}

/* =========================
   MOBILE
========================= */

@media (max-width:1100px){

    .letters-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .sonnik-head h1{
        font-size:50px;
    }
}

@media (max-width:700px){

    .letters-grid{
        grid-template-columns:repeat(3,1fr);
        gap:14px;
    }

    .letter-btn{
        height:70px;
        font-size:34px;
    }

    .sonnik-head h1{
        font-size:38px;
    }

    .sonnik-head p{
        font-size:18px;
    }

    .result-window{
        padding:24px;
    }

    .result-title{
        font-size:28px;
    }

    .word-card strong{
        font-size:18px;
    }

    .word-card span{
        font-size:15px;
    }
}


/* SECTION */
.sonnik-page{
    padding-top:110px;
    max-width:1200px;
    margin:auto;
    padding-left:20px;
    padding-right:20px;
}

/* TITLE */
.sonnik-title{
    text-align:center;
    margin-bottom:18px;
}

.sonnik-title h1{
     font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;

    background: linear-gradient(90deg,#ffffff,#d8b4fe,#ffffff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.sonnik-title p{
        color: rgba(255,255,255,.8);
     font-size: 19px;
    margin-bottom: 18px;;
}

/* GRID */
.letters-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:18px;
    margin-top:50px;
}

/* BUTTON LETTER */
.letter-btn{
    height:60px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(20,15,60,.55);
    backdrop-filter: blur(12px);
    font-size:26px;
    font-weight:800;
    color:white;
    cursor:pointer;
    transition:.25s;
}

.letter-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 0 25px rgba(180,120,255,.45);
}

.letter-btn.active{
    background:linear-gradient(90deg,#7a3cff,#d89bff);
}



.word-item{
    margin-bottom:16px;
    color:white;
    font-size:19px;
    line-height:1.6;
}

.word-item span{
    color:#d9b3ff;
    font-weight:700;
}

.dream-result{
    display:none;
    margin-top:60px;
    padding:35px;
    border-radius:28px;
    background: rgba(20,10,60,.55);
    backdrop-filter: blur(12px);
}


/* TITLE */
#letterTitle{
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: .5px;
}

body.dark #letterTitle{
    color:#d9b7ff;
    text-shadow:0 0 18px rgba(186,120,255,.28);
}

body.light #letterTitle{
    color:#6e34c9;
}

/* TEXT LIST */
.word-list{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}

.word-list p{
    margin:0;
    padding:18px 20px;
    border-radius:18px;
    font-size:20px;
    line-height:1.55;
    font-weight:600;
    transition:.25s ease;
}

/* DARK */
body.dark .word-list p{
    background: rgba(255,255,255,.03);
    border:1px solid rgba(185,120,255,.12);
    color:#ffffff;
}

body.dark .word-list p:hover{
    transform:translateY(-3px);
    box-shadow:0 0 22px rgba(165,110,255,.18);
}

/* LIGHT */
body.light .word-list p{
    background: rgba(255,255,255,.75);
    border:1px solid rgba(170,130,255,.18);
    color:#2f2350;
}

body.light .word-list p:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 18px rgba(120,90,180,.12);
}






















/* ===== RESULT BLOCK ===== */



.letter-result{
    display:none;
    width:100%;
    max-width:1180px;
    margin:35px auto 12px;
    padding:32px;
    border-radius:28px;
    background:rgba(18,12,55,.72);
    border:1px solid rgba(170,120,255,.18);
    box-shadow:0 0 35px rgba(130,80,255,.14);
}

/* ===== CTA ===== */
.sonnik-cta{
    width:100%;
 
    text-align:center;
    margin: 1px auto 90px;
    padding-top: -100px;
}

.sonnik-cta h2{

     font-size:40px;
    font-weight:900;
    margin-bottom:50px;
    line-height:1.15;

    background: linear-gradient(90deg,#ffffff,#d8b4fe,#ffffff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* CTA BUTTON як на скріні */
.sonnik-cta .dream-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    min-width:230px;
    height:60px;
    padding:0 34px;

    border:none;
    border-radius:22px;

    font-size:20px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;

    color:#ffffff;

    background:linear-gradient(135deg,#7c3cff 0%, #b977ff 100%);

    box-shadow:
        0 18px 35px rgba(124,60,255,.35),
        0 0 35px rgba(160,90,255,.28),
        inset 0 1px 0 rgba(255,255,255,.18);

    transition:.25s ease;
}

/* hover */
.sonnik-cta .dream-btn:hover{
    transform:translateY(-3px) scale(1.02);

    box-shadow:
        0 24px 45px rgba(124,60,255,.42),
        0 0 45px rgba(180,110,255,.38);
}

/* active */
.sonnik-cta .dream-btn:active{
    transform:translateY(0) scale(.98);
}












/* =========================
   ANALYTICS PAGE
========================= */

.analytics-page{
    max-width:1200px;
    margin:0 auto;
    padding:130px 20px 90px;
}

/* HERO */

.analytics-hero{
    text-align:center;
    margin-bottom:45px;
}

.analytics-hero h1{
    font-size:56px;
    font-weight:900;
    margin:0 0 14px;
    line-height:1.05;
}

.analytics-hero p{
    font-size:20px;
    margin:0;
    opacity:.9;
}

/* DARK */
body.dark .analytics-hero h1{
    background:linear-gradient(90deg,#ffffff,#d8b4fe,#ffffff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

body.dark .analytics-hero p{
    color:#ece6ff;
}

/* LIGHT */
body.light .analytics-hero h1{
    background:linear-gradient(90deg,#7a35ff,#b26cff,#7a35ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

body.light .analytics-hero p{
    color:#4b4266;
}

/* TOP STATS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:30px;
}

.stat-card{
    border-radius:28px;
    padding:26px;
    transition:.25s ease;
}

.stat-card:hover{
    transform:translateY(-4px);
}

.stat-label{
    display:block;
    font-size:15px;
    margin-bottom:12px;
    opacity:.8;
}

.stat-card h3{
    margin:0;
    font-size:34px;
    font-weight:800;
}

/* DARK */
body.dark .stat-card{
    background:rgba(10,8,35,.62);
    border:1px solid rgba(170,90,255,.18);
    box-shadow:
      0 0 30px rgba(120,70,255,.12),
      inset 0 0 20px rgba(255,255,255,.02);
}

body.dark .stat-card h3{
    color:#d9b7ff;
}

body.dark .stat-label{
    color:#fff;
}

/* LIGHT */
body.light .stat-card{
    background:rgba(255,255,255,.78);
    border:1px solid rgba(160,120,255,.18);
    box-shadow:0 14px 30px rgba(120,90,180,.08);
}

body.light .stat-card h3{
    color:#7b3cff;
}

body.light .stat-label{
    color:#4a3d69;
}

/* MAIN BOXES */

.analytics-box{
    border-radius:30px;
    padding:32px;
    margin-bottom:24px;
}

.analytics-box h2{
    margin:0 0 2px;
    font-size:28px;
    font-weight:800;
}

/* DARK */
body.dark .analytics-box{
    background:rgba(10,8,35,.62);
    border:1px solid rgba(170,90,255,.18);
    box-shadow:
      0 0 35px rgba(120,70,255,.12),
      inset 0 0 20px rgba(255,255,255,.02);
}

body.dark .analytics-box h2{
    color:#d9b7ff;
}

/* LIGHT */
body.light .analytics-box{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(160,120,255,.18);
    box-shadow:0 14px 34px rgba(120,90,180,.08);
}

body.light .analytics-box h2{
    color:#7b3cff;
}

/* GRAPH */
/* ЗАМІНИ повністю старий блок .bars */
.bars{
    height:250px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;

    padding:28px 8px 6px;
    margin-top:10px;
}

/* ЗАМІНИ повністю старий блок .bar-item */
.bar-item{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
}

.bar{
    width:56px !important;
    display:block !important;

    border-radius:22px !important;

    background:linear-gradient(
        to top,
        #7a35ff,
        #b06cff,
        #e0baff
    ) !important;

    box-shadow:
        0 0 18px rgba(170,90,255,.28),
        0 0 30px rgba(170,90,255,.12);

    transition:.25s ease;
}
/* ЗАМІНИ старий hover */
.bar:hover{
    transform:translateY(-5px);
}

/* ЗАМІНИ повністю старий блок .bar-item span */
.bar-item span{
    display:block;
    margin-top:14px;
    font-size:18px;
    font-weight:700;
    letter-spacing:.2px;
}

/* ЗАМІНИ DARK стиль .bar */
body.dark .bar{
    background:linear-gradient(
        to top,
        #7a35ff 0%,
        #a96cff 58%,
        #deb9ff 100%
    );

    box-shadow:
        0 0 18px rgba(170,90,255,.28),
        0 0 35px rgba(170,90,255,.10);
}

/* ЗАМІНИ DARK стиль тексту */
body.dark .bar-item span{
    color:#ffffff;
}

/* ЗАМІНИ LIGHT стиль .bar */
body.light .bar{
    background:linear-gradient(
        to top,
        #8450ff 0%,
        #b179ff 60%,
        #e2c7ff 100%
    );

    box-shadow:0 8px 18px rgba(140,90,255,.14);
}

/* ЗАМІНИ LIGHT стиль тексту */
body.light .bar-item span{
    color:#4b4266;
}

/* ДОДАЙ якщо нема */
@keyframes barRise{
    from{
        transform:scaleY(0);
        transform-origin:bottom;
        opacity:0;
    }
    to{
        transform:scaleY(1);
        transform-origin:bottom;
        opacity:1;
    }
}

/* ЗАМІНИ mobile частину в media max-width:700px */
@media(max-width:700px){

    .bars{
        height:190px;
        gap:10px;
        padding:18px 0 0;
    }

    .bar{
        width:34px;
        border-radius:16px;
    }

    .bar-item span{
        font-size:14px;
        margin-top:10px;
    }
}
.analytics-box .bars .bar{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;

    width:56px !important;
    min-width:56px !important;

    background:#9b5cff !important;
    background:linear-gradient(to top,#7a35ff,#c48cff) !important;

    border-radius:22px 22px 10px 10px !important;

    box-shadow:0 0 18px rgba(170,90,255,.35) !important;
}



/* AI TEXT */

.ai-text{
    font-size:18px;
  line-height: 1.4; /* стандарт ~1.6 → стане щільніше */
    margin:0;
      margin-top: 8px;
}


body.dark .ai-text{
    color:#f0eaff;
}

body.light .ai-text{
    color:#3f3459;
}

/* HISTORY */

.history-list{
    display:grid;
    gap:14px;
}

.history-card{
    padding:18px 22px;
    border-radius:20px;
    font-size:17px;
    line-height:1.5;
}

/* DARK */
body.dark .history-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.04);
    color:#fff;
}

/* LIGHT */
body.light .history-card{
    background:rgba(245,242,255,.95);
    border:1px solid rgba(140,110,255,.12);
    color:#32264d;
}

/* MOBILE */

@media(max-width:1000px){

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){

    .analytics-page{
        padding:115px 16px 70px;
    }

    .analytics-hero h1{
        font-size:38px;
    }

    .analytics-hero p{
        font-size:17px;
    }

    .stats-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .stat-card{
        padding:22px;
    }

    .stat-card h3{
        font-size:28px;
    }

    .analytics-box{
        padding:24px;
    }

    .analytics-box h2{
        font-size:24px;
    }

    .bars{
        height:190px;
        gap:10px;
    }

    .history-card{
        font-size:15px;
    }
}


/* Стиль для кнопки Очистити сновидіння (залишаючи попередній стиль) */
.dream-btn.reset {
  background: rgba(123, 77, 255, 0.12); /* Підсвітка відповідно до стилю */
  border: 1px solid rgba(168, 109, 255, 0.4);
  color: #d6c9ff; /* Легкий фіолетовий відтінок */
  box-shadow: 0 0 12px rgba(123, 77, 255, 0.15);
  backdrop-filter: blur(6px); /* Легка ефект прозорості */
   justify-content: center;
  align-items: center;
}

/* Залишаємо ефекти на hover та клік */
.dream-btn.reset:hover {
  background: rgba(123, 77, 255, 0.18);
  border-color: rgba(168, 109, 255, 0.7);
  transform: translateY(-2px);
}

.dream-btn.reset:active {
  transform: scale(0.97);
}

.center-btn {
  display: flex;
  justify-content: center;
margin: 45px auto 50px; /* 80px — відступ знизу */
  
}
