:root {
    --primary-font: 'Roboto', sans-serif;

    /* Text colors */
    --clr-black: #000000;
    --clr-white: #ffffff;
    --color-primary-dark-text: #1f2937;
    --color-light-accent: #e5e4e2;

    /* Bg colors */
    --bg-color-fon: #F0EFEB;
    --bg-color-focus-btn: #32aae3;
    --bg-color-footer: #020202;

    /* Colors indigo */
    --color-primary-indigo: #d2cfcb;
    --color-gray-hint: #6b7280;

    /* Colors Input subsection*/
    --color-ai-output-bg: #f8fafc;

    /* Other */
    --transition: background-color 0.5s;

}

/* Colors for Dark Theme */
[data-theme="dark"] {
    /* Dark Theme Override */
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.8);
}

/* Base styles */
html {
    box-sizing: border-box;
}



body {
    font-family: var(--primary-font);
    font-size: 20px;
    line-height: 1.67;
    letter-spacing: 0.02em;
    color: var(--clr-black);


    /* Colors for Dark Theme */
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reset Star */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.link {
    color: currentColor;
    text-decoration: none
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
    color: currentColor;
    cursor: pointer;
    font-size: 17px;
}

li:last-child_ {
    margin-bottom: 0;
}

.page-box {
    overflow: hidden;
}

/* Reset End */
.container {
    /* Phone styles & > */
    min-width: 320px;
    max-width: 448px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;

    /* outline: 2px solid red;
    outline-offset: -2px; */
}

/* Tablet 690 styles & > */
@media only screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop styles & > */
@media only screen and (min-width: 1140px) {
    .container {
        max-width: 1140px;
    }
}

.section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.change:hover,
.change:focus {
    color: var(--bg-color-focus-btn);
    transition: color 0.5s;

}


/**
  |============================
  | Header section
  |============================
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;

    /* Colors for Dark Theme */
    background-color: var(--header-bg) !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-img {
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-link:hover {
    color: var(--bg-color-focus-btn);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bg-color-focus-btn);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: #f3f4f6;

}

.header-btn {
    padding: 10px 20px;
    background-color: var(--color-primary-indigo);
    color: white !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.header-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/**
  |============================
  | Hero section
  |============================
*/
.hero {
    background-color: var(--bg-color-fon);
    padding-top: 100px;

    /* Colors for Dark Theme */
    color: #000000 !important;
}

.hero-container {
    display: flex;
    gap: 25px;
    padding-top: 90px;
    padding-bottom: 90px;
}


.hero-box {
    width: 590px;
}

.hero-title {
    width: 580px;
}

.hero-desc {
    padding-top: 20px;
}

.hero-subtitle {
    padding-top: 158px;
    font-size: 14px;
}

.hero-btn {
    margin-top: 16px;
    padding: 8px;
    border-radius: 50% 20% / 10% 40%;
    background-color: var(--clr-black);
    color: var(--clr-white);
    border: 1px solid var(--bg-color-fon);
}

.hero-btn:hover,
.hero-btn:focus {
    border-radius: 50% 20% / 10% 40%;
    border: 1px solid var(--bg-color-fon);
    background-color: var(--bg-color-focus-btn);
    color: var(--clr-black);
    transition: var(--transition);
}

.hero-box-img {
    width: 500px;
}

.hero-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/**
  |============================
  | Social Proof
  |============================
*/
.social-proof-container {
    padding-top: 60px;
}

.social-proof-container-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 700px;
}

.social-proof-title {
    font-size: 36px;

}

.social-proof-subtitle {
    padding-top: 26px;
    font-size: 16px;
}

.social-proof-subject {
    font-size: 36px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.social-proof-box {
    padding-top: 88px;
}

.social-proof-list {
    display: flex;
    gap: 60px;
    justify-content: center;
    padding-top: 52px;
    padding-bottom: 98px;
    font-size: 17px;
    margin-top: auto;
    margin-left: auto;
    text-align: center;
}

.social-proof-item {
    width: 316px;
}

.social-proof-img {
    border-radius: 6%;
}

.social-proof-txt {
    padding-top: 26px;
}

.social-proof-feedback {
    padding-top: 20px;
    font-size: 12px;
    padding-bottom: 52px;
}

/**
  |============================
  | Step Indicator
  |============================
*/

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 24px 0;
    margin-bottom: 32px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e7ff;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-basis: 25%;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #a5b4fc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border: 3px solid white;
    transition: background-color 0.3s;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-gray-hint);
    font-weight: 500;
}

.step.active .step-circle {
    color: white;
    background-color: #10b981;
}

.step.active .step-label {
    /* color: var(--color-primary-dark-text); */
    font-weight: 600;
    font-size: 13px;
    color: #10b981;
}


/**
  |============================
  | Input section
  |============================
*/
.input-box-form {
    padding: 16px;
    background-color: var(--color-light-accent);

    border-left: 4px solid var(--bg-color-fon);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    margin: 32px 0 32px;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 26px;
}

.input-form label {
    font-size: 18px;
    font-weight: 600;
}

#user-idea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--color-gray-hint);
    border-radius: 8px;
    font-size: 16px;
}

#user-idea:focus {
    border-color: var(--color-primary-indigo);
    box-shadow: 0 0 0 3px rgba(99, 98, 107, 0.5);
    outline: none;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

#user-idea.error-border {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
    animation: shake 0.2s ease-in-out 0s 2;
    /* Трясеться 0.2 сек, двічі */
}

#user-idea.error-border:focus {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.3);
}

#error-message {
    color: #ff4d4d;
    font-size: 14px;
    display: none;
    margin-top: 5px;
}

.input-text {
    font-size: 14px;
    color: var(--color-gray-hint);
    margin-top: -8px;
    margin-bottom: 8px;
}

.input-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--color-primary-indigo);
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.input-btn:hover {
    background-color: var(--bg-color-focus-btn);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .input-btn {
        width: auto;
    }
}

/* < !-- Input subsection --> */
.input-sub {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--clr-white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.is-hidden {
    display: none !important;
}


.card-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-img {
    width: 300px;
    min-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 25px;
}

.input-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark-text);
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2ff;
    margin-bottom: 16px;
}

.loading-state {
    text-align: center;
    padding: 18px 0;
}

.loading-text {
    font-size: 18px;
    font-style: italic;
    color: var(--color-primary-indigo);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}


.ai-output-area {
    background-color: var(--color-ai-output-bg);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--clr-white);
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--color-primary-dark-text);
}

.input-txt {
    font-size: 16px;
    color: var(--color-gray-hint);
    margin-bottom: 24px;
}

.selection-box {
    margin-bottom: 24px;
}

.selection-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-indigo);
    margin-bottom: 8px;
}

.selection-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.selection-dropdown:focus {
    border-color: var(--color-primary-indigo);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    outline: none;
}

.select-error {
    color: #ff4d4d;
    font-size: 14px;
    display: none;
    margin-top: 5px;
}

.error-border {
    border: 2px solid #ff4d4d !important;
    animation: shake 0.2s ease-in-out 0s 2;
}

.final-actions {
    display: flex;
    gap: 10px;
}

.input-sub-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--color-primary-indigo);
    color: white;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-sub-btn:hover,
.input-sub-btn:focus {
    background-color: var(--bg-color-focus-btn);
    transition: var(--transition);
}

.input-sub-btn.start {
    background-color: var(--color-gray-hint);
}

.input-sub-btn.start:hover,
.input-sub-btn.start:focus {
    background-color: var(--bg-color-focus-btn);
    color: black;
    transition: var(--transition);
}


.ai-error-container {
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    border: 2px dashed #ff4d4d;
    border-radius: 12px;
    background-color: rgba(255, 77, 77, 0.05);
    animation: fadeInError 0.4s ease-out;
}

.ai-error-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ai-error-title {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ai-error-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.retry-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(255, 77, 77, 0.2);
}

.retry-btn:hover {
    background-color: #e64040;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 77, 77, 0.3);
}

.retry-btn:active {
    transform: translateY(0);
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/**
  |============================
  | Footer section
  |============================
*/
.footer {
    background-color: var(--color-primary-dark-text);
    padding: 60px 0 30px;
    color: #ffffff;
}

.footer-container {
    color: var(--clr-white);
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-box-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.footer-link {
    display: flex;
    justify-content: center;
    height: 100px;
}

.footer-img {
    width: 150px;
}


.footer-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-pub-item {
    font-size: 14px;
    padding: 6px;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
}

.footer-pub-txt {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-bottom: 16px;
    font-size: 10px;
}


.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--color-primary-indigo);
    transform: translateY(-3px);
    fill: var(--bg-color-focus-btn);
    transition: fill 0.3s;
}

.footer-pub-txt {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

/**
  |============================
  | Sign In
  |============================
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Euclid Circular B", sans-serif;
}

.modal-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 660px;
    height: 440px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;

    mix-blend-mode: difference;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}


.auth-close-btn.dark-mode {
    color: #1f347a !important;
    background: rgba(31, 52, 122, 0.1);
}

.auth-close-btn.dark-mode:hover {
    background: rgba(31, 52, 122, 0.2);
}

.auth-card-bg {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(135deg, #1f347a, #708be6);
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.auth-card-bg.signin {
    transform: translateX(100%);
}

.auth-hero {
    position: absolute;
    width: 50%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    color: #f9f9f9;
    text-align: center;
    transition: all 0.5s ease-in-out;
}

.auth-hero-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.auth-hero-text {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.auth-hero-btn {
    padding: 12px 40px;
    border-radius: 30px;
    border: 1.5px solid #f9f9f9;
    background: transparent;
    color: #f9f9f9;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.auth-hero-btn:hover {
    background: #f9f9f9;
    color: #1f347a;
}

.auth-form-container {
    position: absolute;
    width: 50%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    transition: all 0.5s ease-in-out;
}

.auth-form-title {
    font-size: 22px;
    color: #1f347a;
    margin-bottom: 15px;
}

.auth-sso {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.auth-sso-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee0f4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6986de;
    text-decoration: none;
    transition: 0.3s;
}

.auth-sso-link:hover {
    background: #f4f6fb;
    transform: translateY(-2px);
}

.auth-form-subtitle {
    font-size: 12px;
    color: #a0a2b6;
    margin-bottom: 15px;
}

.auth-form-element {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #eef0f7;
    color: #1f347a;
    outline: none;
    transition: 0.3s;
}

.auth-input:focus {
    background: #ffffff;
    border-color: #708be6;
    box-shadow: 0 0 0 4px rgba(112, 139, 230, 0.1);
}

.auth-forgot-link {
    font-size: 13px;
    color: #a0a2b6;
    text-decoration: none;
    align-self: flex-start;
    margin-bottom: 5px;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #1f347a, #708be6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(31, 52, 122, 0.3);
    transition: 0.3s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(31, 52, 122, 0.4);
}

.auth-hero:not(.active),
.auth-form-container:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.auth-hero-signup {
    left: 0;
}

.auth-form-signup {
    left: 50%;
}

.auth-hero-signin {
    left: 50%;
}

.auth-form-signin {
    left: 0;
}