/* --- 1. DESIGN VÁLTOZÓK ÉS TÉMAVÁLTÓ --- */
:root {
    --primary-blue: #1565C0;
    --secondary-blue: #0D47A1;
    --accent-orange: #FF9800;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #f5f7fa;
    --bg-main: #ffffff;
    --bg-secondary: #f4f6f8;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    --shadow-color: rgba(0,0,0,0.1);
    --footer-bg: #263238;
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.2);
    --phone-border-color: #222;
    --phone-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --card-border: rgba(0, 0, 0, 0.08);
    --hero-bg-start: #0D47A1;
    --hero-bg-end: #1565C0;
    --btn-shadow: 0 4px 6px var(--shadow-color);
    --btn-shadow-hover: 0 10px 20px var(--shadow-color);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-blue: #42A5F5;
        --secondary-blue: #1565C0;
        --accent-orange: #FFB74D;
        --text-main: #f5f7fa;
        --text-secondary: #b0bec5;
        --text-light: #f5f7fa;
        --bg-main: #121212;
        --bg-secondary: #1e1e1e;
        --card-bg: #2c2c2c;
        --input-bg: #333333;
        --input-border: #555555;
        --shadow-color: rgba(0,0,0,0.5);
        --footer-bg: #000000;
        --glass-bg: rgba(44, 44, 44, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
        --phone-border-color: #444;
        --phone-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
        --card-border: rgba(255, 255, 255, 0.08);
        --hero-bg-start: #020d1e;
        --hero-bg-end: #082142;
        --btn-shadow: 0 4px 6px var(--shadow-color), 0 0 12px rgba(255, 152, 0, 0.3);
        --btn-shadow-hover: 0 10px 20px var(--shadow-color), 0 0 20px rgba(255, 152, 0, 0.6);
    }
}

html[data-theme="dark"] {
    --primary-blue: #42A5F5;
    --secondary-blue: #1565C0;
    --accent-orange: #FFB74D;
    --text-main: #f5f7fa;
    --text-secondary: #b0bec5;
    --text-light: #f5f7fa;
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #2c2c2c;
    --input-bg: #333333;
    --input-border: #555555;
    --shadow-color: rgba(0,0,0,0.5);
    --footer-bg: #000000;
    --glass-bg: rgba(44, 44, 44, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --phone-border-color: #444;
    --phone-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.08);
    --hero-bg-start: #020d1e;
    --hero-bg-end: #082142;
    --btn-shadow: 0 4px 6px var(--shadow-color), 0 0 12px rgba(255, 152, 0, 0.3);
    --btn-shadow-hover: 0 10px 20px var(--shadow-color), 0 0 20px rgba(255, 152, 0, 0.6);
}

html[data-theme="light"] {
    --primary-blue: #1565C0;
    --secondary-blue: #0D47A1;
    --accent-orange: #FF9800;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #f5f7fa;
    --bg-main: #ffffff;
    --bg-secondary: #f4f6f8;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    --shadow-color: rgba(0,0,0,0.1);
    --footer-bg: #263238;
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.2);
    --phone-border-color: #222;
    --phone-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --card-border: rgba(0, 0, 0, 0.08);
    --hero-bg-start: #0D47A1;
    --hero-bg-end: #1565C0;
    --btn-shadow: 0 4px 6px var(--shadow-color);
    --btn-shadow-hover: 0 10px 20px var(--shadow-color);
}

/* --- 2. GLOBÁLIS STÍLUSOK --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3 { margin-top: 0; }
a { text-decoration: none; color: inherit; }

/* --- 3. INDEX.HTML STÍLUSOK --- */
.hero {
    background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
    color: var(--text-light);
    padding: 4rem 2rem 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    background-color: var(--bg-main);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--btn-shadow);
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--btn-shadow-hover);
}

.qr-code-img {
    display: block;
    border-radius: 22px;
    background-color: #ffffff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.qr-code-img:hover {
    transform: scale(1.05);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.btn-ribbon {
    position: absolute;
    top: 10px;
    left: -35px;
    width: 120px;
    background-color: #e53935;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 4px 0;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    pointer-events: none;
}

.btn.disabled {
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #888888;
    box-shadow: none;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-container .shape-fill {
    fill: var(--bg-secondary);
}

.features {
    background-color: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.features-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.features-wrapper.active .feature-grid {
    width: 300px;
    grid-template-columns: 1fr;
    flex-shrink: 0;
}

.feature-detail-box {
    flex-grow: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(50px);
    max-height: 0;
    padding: 0;
    text-align: left;
    position: relative;
}

.features-wrapper.active .feature-detail-box {
    opacity: 1;
    width: 100%;
    height: auto;
    max-height: 2000px;
    padding: 0;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.detail-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 20;
}

.detail-close-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
}

@keyframes float {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(-10px); }
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden; /* Accordion-hoz kell */
}

.feature-card:hover {
    transform: translateY(-10px);
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.features-wrapper.active .feature-card {
    padding: 1rem;
    transform: none;
    flex: 0 0 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.features-wrapper.active .feature-card p {
    display: none;
}

.features-wrapper.active .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

.features-wrapper.active .feature-card .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    padding: 10px;
}

.features-wrapper.active .feature-card .feature-icon svg {
    width: 30px;
    height: 30px;
}

.features-wrapper.active .feature-card:hover,
.features-wrapper.active .feature-card.selected {
    border: 2px solid var(--primary-blue);
    transform: scale(1.02);
}

.features-wrapper.active {
    flex-direction: column;
    transition: all 0.5s ease;
}

.features-wrapper.active .feature-grid {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    overflow-x: auto;
    gap: 1rem;
    padding: 1.5rem 1rem;
    grid-template-columns: unset;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: all 0.5s ease;
}

.features-wrapper.active .feature-grid::-webkit-scrollbar {
    display: none;
}

.detail-layout {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.detail-content {
    flex: 1;
    padding: 3rem 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow-wrap: break-word;
}

.device-anim-icon {
    position: relative;
}
.device-anim-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}
.icon-phone {
    animation: iconFade 6s infinite;
}
.icon-tablet {
    animation: iconFade 6s infinite reverse;
}
@keyframes iconFade {
    0%, 45% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50%, 95% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.dict-demo-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px dashed var(--primary-blue);
    text-align: center;
}
.dict-term {
    font-weight: bold;
    color: var(--primary-blue);
    border-bottom: 2px dotted var(--primary-blue);
    cursor: help;
    position: relative;
    font-size: 1.2rem;
}
.dict-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-align: center;
    border-radius: 10px;
    padding: 1rem;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--input-border);
    font-size: 0.9rem;
    font-weight: normal;
}
.dict-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--card-bg) transparent transparent transparent;
}
.dict-term:hover .dict-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.stat-demo-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px dashed var(--accent-orange);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: var(--input-border);
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1.5s ease-out forwards;
    stroke: var(--accent-orange);
}
@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}
.percentage {
    fill: var(--text-main);
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

.smart-anim-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smart-anim-icon svg {
    z-index: 2;
    position: relative;
}
.electron-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(21, 101, 192, 0.2);
    pointer-events: none;
}
.ring-1 {
    width: 44px;
    height: 44px;
    animation: spin 3s linear infinite;
}
.ring-1::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--accent-orange);
}
.ring-2 {
    width: 58px;
    height: 58px;
    animation: spin 5s linear infinite reverse;
    border-color: rgba(255, 152, 0, 0.2);
}
.ring-2::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--primary-blue);
}
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.offline-anim-icon svg {
    overflow: visible;
}
.slash-line {
    stroke: var(--accent-orange);
    stroke-width: 3;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: slashAnim 4s ease-in-out infinite;
}
@keyframes slashAnim {
    0%, 20% { stroke-dashoffset: 30; opacity: 0; }
    30% { opacity: 1; }
    50%, 90% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.quiz-demo-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px dashed var(--primary-blue);
}
.quiz-question {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.quiz-btn {
    padding: 0.8rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.quiz-btn:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}
.quiz-btn.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.quiz-btn.wrong {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.quiz-feedback {
    margin-top: 1rem;
    font-weight: bold;
    min-height: 1.5em;
    color: var(--primary-blue);
}

.doc-anim-icon {
    position: relative;
}
.doc-check {
    transform-origin: center;
    animation: checkScale 4s infinite;
}
@keyframes checkScale {
    0%, 80% { transform: scale(0); opacity: 0; }
    85% { transform: scale(1.2); opacity: 1; }
    90% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.feature-detail-box.alt .detail-content {
    padding: 2rem 2rem 2rem 10%;
}

.detail-visual, .detail-content {
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    opacity: 0;
}

.detail-visual { transform: translateX(-50px); }
.detail-content { transform: translateX(50px); }

.feature-detail-box.alt .detail-visual { transform: translateX(50px); }
.feature-detail-box.alt .detail-content { transform: translateX(-50px); }

.features-wrapper.active .detail-visual,
.features-wrapper.active .detail-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-main);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    line-height: 1;
    padding-bottom: 5px;
}

.nav-arrow:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.highlight-name {
    color: var(--accent-orange);
    font-weight: 800;
}

.nav-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.nav-arrow.prev { left: 15px; }
.nav-arrow.next { right: 15px; }

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-blue);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Mobil accordion jelző nyilacska */
@media (max-width: 768px) {
    .feature-card h3 {
        position: relative;
        padding-right: 30px; /* Hely a nyílnak */
    }
    .feature-card h3::after {
        content: '›';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-55%) rotate(90deg);
        font-size: 2.5rem;
        line-height: 1;
        color: var(--primary-blue);
        transition: transform 0.3s ease-in-out;
    }
    .feature-card.mobile-expanded h3::after {
        transform: translateY(-55%) rotate(-90deg);
    }
}

/* --- GYIK STÍLUSOK --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.faq-question {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: bold;
}

.faq-answer {
    margin: 0;
    color: var(--text-main);
}

.faq-answer p {
    margin: 0;
}

.screenshots {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-main);
    position: relative;
}

.mockup-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.mockup-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 80%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.mockup-container {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem;
    gap: 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.mockup-container::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.phone-mockup {
    width: 280px;
    height: 580px;
    flex: 0 0 280px;
    scroll-snap-align: center;
    background-color: #000000;
    border-radius: 45px;
    border: 3px solid var(--phone-border-color);
    position: relative;
    box-shadow: var(--phone-box-shadow);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #eee;
    border-radius: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
}

.social-links a[aria-label="Facebook"]:hover {
    color: #1877F2;
    transform: translateY(-3px);
}
.social-links a[aria-label="Instagram"]:hover {
    color: #E4405F;
    transform: translateY(-3px);
}

.contact-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    align-self: center;
    margin-top: 1rem;
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-secondary);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--text-light);
    margin: 0 10px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-orange);
}

.footer-links {
    margin-bottom: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero p, .hero-actions {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.5s; }

.phone-mockup {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.phone-mockup:nth-child(1) { animation-delay: 0.7s; }
.phone-mockup:nth-child(2) { animation-delay: 0.8s; }
.phone-mockup:nth-child(3) { animation-delay: 0.9s; }
.phone-mockup:nth-child(4) { animation-delay: 1.0s; }
.phone-mockup:nth-child(5) { animation-delay: 1.1s; }
.phone-mockup:nth-child(6) { animation-delay: 1.2s; }
.phone-mockup:nth-child(7) { animation-delay: 1.3s; }
.phone-mockup:nth-child(8) { animation-delay: 1.4s; }
.phone-mockup:nth-child(9) { animation-delay: 1.5s; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--primary-blue);
    color: #ffffff;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -5px 20px var(--shadow-color);
    padding: 1.5rem;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid var(--input-border);
    box-sizing: border-box;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.cookie-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: var(--secondary-blue);
}

.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--input-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* --- MOBIL ACCORDION A FUNKCIÓKHOZ --- */
.feature-card-detail-mobile {
    padding: 0 1rem; /* Kezdetben a padding 0, hogy ne foglaljon helyet */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, margin-top 0.4s ease-out;
    text-align: left;
}

.feature-card.mobile-expanded {
    transform: scale(1.02);
    transition: transform 0.3s ease-out;
}

.feature-card.mobile-expanded .feature-card-detail-mobile {
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--input-border);
    max-height: 500px; /* Elegendően nagy érték, hogy a tartalom kiférjen */
}

/* --- 4. RESZPONZIVITÁS --- */
@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .hero-actions .qr-code-link { display: none; }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .btn { width: 100%; justify-content: center; }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    footer a {
        margin: 0;
    }
    
    .detail-layout {
        display: block;
    }
    .detail-content {
        width: auto;
        margin: 0;
        padding: 2rem 1.5rem 6.5rem 1.5rem;
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .nav-arrow:hover {
        transform: scale(1.1);
    }
    .nav-arrow.prev { left: 20px; }
    .nav-arrow.next { right: 20px; }
}

/* --- 5. LEGAL OLDALAK (privacy.html, terms.html) --- */
.legal-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.legal-page h1 {
    color: var(--secondary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}
.legal-page h2 {
    color: var(--primary-blue);
    margin-top: 30px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 5px;
}
.legal-page h3 {
    color: var(--text-main);
    margin-top: 20px;
}
.legal-page p {
    margin-bottom: 15px;
    text-align: justify;
}
.legal-page ul {
    margin-bottom: 15px;
    padding-left: 20px;
}
.legal-page li {
    margin-bottom: 8px;
}
.legal-page .contact-box {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid var(--primary-blue);
    margin: 20px 0;
    border: 1px solid var(--input-border);
}
.legal-page .date {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9em;
}
.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: var(--card-bg);
}
.legal-page th, .legal-page td {
    border: 1px solid var(--input-border);
    padding: 12px;
    text-align: left;
}
.legal-page th {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}
.legal-page a {
    color: var(--primary-blue);
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}
.legal-page .back-link {
    display: inline-block;
    margin-bottom: 20px;
}
.legal-page .cookie-btn-terms {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
}
.legal-page .cookie-btn-terms:hover {
    background-color: var(--secondary-blue);
}

/* --- 6. CONTACT OLDAL (contact.html) --- */
.contact-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.contact-page .hero {
    color: var(--text-light);
    padding: 4rem 2rem 8rem;
}
.contact-page .hero h1 {
    font-size: 3rem;
}
.contact-page .hero p {
    font-size: 1.2rem;
}
.contact-page .contact-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
    flex-grow: 1;
}
.contact-page .company-info {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    background-image: radial-gradient(var(--bg-secondary) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.contact-page .company-info h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.contact-page .company-info h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.contact-page .btn:hover {
    background-color: var(--secondary-blue);
}
.contact-page .home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}
.contact-page .home-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}
.contact-page .hosting-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--input-border);
    font-size: 0.9rem;
}

/* --- 7. APP OLDAL (app.html) --- */
.app-page {
    background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px 20px 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.app-page .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.app-page .logo img {
    width: 100%;
    height: 100%;
    display: block;
}
.app-page h1 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.app-page p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 40px 0;
    max-width: 400px;
    line-height: 1.5;
}
.app-page .loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-app 1s ease-in-out infinite;
    margin-bottom: 20px;
}
@keyframes spin-app {
    to { transform: rotate(360deg); }
}
.app-page .buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}
.app-page .btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: visible !important;
}
.app-page .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.app-page .btn.primary {
    background-color: #ffffff;
    color: var(--secondary-blue);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.app-page .btn.primary:hover {
    background-color: #f5f5f5;
}
.app-page .footer {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.6;
}
.app-page .footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
}
.app-page .wave-container .shape-fill {
    fill: var(--hero-bg-start);
}hape-fill {
    fill: var(--hero-bg-start);
}