:root {
    --header: #32757d;
    --primary: #4bcffa;
    --bg: #faf9f9;
    --muted: #6a6a6a;
    --card: #ffffff;
    --shadow: rgba(107, 100, 100, 0.12);
    --text: #111010;
}

* {
    box-sizing: border-box;

}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), #f4f6f7)
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 20px
}

/* Header */
.site-header {
    background: var(--header);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px var(--shadow)
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain
}

.brand-text {
    font-weight: 700
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none
}

.btn-primary {
    background: var(--primary);
    font-weight: 600
}

.btn-outline {
    border: 2px solid rgba(5, 50, 58, 0.06);
    background: transparent;
    color: var(--muted)
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px
}

/* Hero */
.hero {
    padding: 40px 0;
    /* Make hero taller but keep content centered and contained */
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* ensure decorative SVGs don't cause scroll */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center
}

.hero-copy h1 {
    font-size: 34px;
    margin: 0 0 12px
}

.lead {
    color: var(--muted);
    margin-bottom: 18px
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 16px
}

.bullets {
    list-style: disc;
    margin: 12px 0 0 20px;
    color: var(--muted)
}

.hero-media {
    text-align: center
}

.hero-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0px 0px 20px 5px var(--shadow);
}

/* Hero SVG decorations */
.hero-svg {
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
    will-change: transform, opacity;
    transform-origin: center center;
    mix-blend-mode: normal;
}

/* Responsive sizing for hero svg decorations */
@media (max-width: 768px) {
    .hero-svg {
        opacity: 0.8;
    }

    .hero-svg.svg-1 {
        width: 64px !important;
    }

    .hero-svg.svg-2 {
        width: 72px !important;
    }

    .hero-svg.svg-3 {
        width: 56px !important;
    }

    .hero-svg.svg-4 {
        width: 60px !important;
    }

    .hero {
        padding: 30px 0;
        min-height: 60vh;
    }
}

@media (max-width: 420px) {
    .hero-svg {
        display: none;
    }
}

.hero-panel {
    text-align: center;
}

/* Testimonials block */
.testimonials {
    padding: 48px 0;
    background: linear-gradient(180deg, rgba(250, 250, 250, 1), #ffffff);
}

.testimonials .container {
    max-width: 1000px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.testimonial-quote {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6eef9;
    display: inline-block
}

.testimonial-name {
    font-weight: 700;
    font-size: 14px;
}

.testimonial-role {
    font-size: 13px;
    color: #64748b
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

.feature {
    background: var(--card);
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 6px 18px var(--shadow);
    text-align: center
}

/* Improved feature card layout and interactions */
.features-grid {
    gap: 20px;
    align-items: stretch;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 22px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

/* Focus visible for keyboard users */
.feature:focus {
    outline: 3px solid rgba(59, 130, 246, 0.18);
    outline-offset: 4px;
}

.feature-content {
    flex: 1 1 auto;
    text-align: center;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1220;
    /* darker title color for contrast */
    letter-spacing: 0.2px;
    line-height: 1.15;
}

/* decorative accent for feature titles */
.feature h3::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 4px;
    margin-right: 10px;
    vertical-align: middle;
    background: linear-gradient(90deg, rgba(59, 130, 246, 1), rgba(16, 185, 129, 1));
    border-radius: 2px;
}

.feature h3 small {
    font-weight: 600;
    color: var(--muted);
}

.feature p {
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.45;
    text-align: center;
}

.feature-media {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow);
    /* image fills card width */
}

/* Enable smooth transforms for feature images (used by JS animations) */
.feature-media img {
    transform-origin: center center;
    will-change: transform, opacity;
}

@media (min-width: 768px) {

    /* Keep stacked layout: cards still span full width, but provide more padding on larger screens */
    .feature {
        padding: 28px;
    }

    .feature h3 {
        font-size: 1.15rem;
    }

    .feature-media {
        margin-bottom: 14px;
    }
}

.feature-ico {
    width: 300px;
    height: 350px;
    object-fit: contain;
}

/* Screens */
.screens-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.screens-grid img {
    width: 32%;
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow)
}

/* Contact */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 700px
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e9
}

.contact-form button {
    grid-column: span 2
}

.small {
    color: var(--muted)
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 18px 0;
    border-top: 1px solid #efefef
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.f-logo {
    width: 40px;
    height: 40px
}

@media(max-width:880px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .nav {
        display: none
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .contact-form {
        grid-template-columns: 1fr
    }

    .screens-grid img {
        width: 48%
    }
}

/* --- Styles moved from presentation/index.html --- */

/* Modal transitions (used by demo/redirect modals) */
.modal-overlay {
    transition: opacity 250ms ease;
    opacity: 0;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-panel {
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease;
}

@media(max-width:768px) {
    .modal-panel {
        margin: 0px 10px;
    }
}

.modal-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Hero background decorative teeth and panel */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.hero-bg svg path {
    fill: rgba(59, 130, 246, 0.18) !important;
    stroke: rgba(30, 64, 175, 0.20) !important;
    stroke-width: 1.2px !important;
    transition: fill .25s ease;
}

.hero-bg .tooth {
    position: absolute;
    will-change: transform, opacity;
    transform-origin: center;
    opacity: 0.98;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(14, 165, 233, 0.18), 0 1px 0 rgba(255, 255, 255, 0.6);
    -webkit-font-smoothing: antialiased;
    filter: drop-shadow(0 6px 10px rgba(14, 165, 233, 0.08));
    pointer-events: none;
    display: block;
    line-height: 1;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.06);
    padding: 1.6rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

#hero h1 {
    font-size: 2.0rem;
    line-height: 1.05;
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 3.25rem;
    }

    #hero p {
        font-size: 1.15rem;
    }
}

/* Cursor defaults: text default, interactive controls pointer */
body {
    cursor: default;
}

a,
button,
input,
textarea,
select,
.hero-cta,
.open-modal-demo,
.btn,
.btn-primary {
    cursor: pointer;
}

/* --- End moved styles --- */

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* === NEW SECTIONS STYLES === */

/* About Section */
#about {
    position: relative;
    overflow: hidden;
}

#about .about-content {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about .about-image {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about .about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

#about .about-content p strong {
    color: var(--primary);
    font-weight: 600;
}

#about .about-image svg {
    filter: drop-shadow(0 10px 30px rgba(75, 207, 250, 0.15));
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    #about .grid {
        grid-template-columns: 1fr;
    }

    #about .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Benefits Section */
#benefits {
    position: relative;
}

.benefit-card {
    opacity: 0;
    background: white;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(75, 207, 250, 0.25);
}

.benefit-icon {
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.benefit-icon svg {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .benefit-card {
        padding: 1.5rem 1rem;
    }

    #benefits .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Contact Section Enhanced */
#contact form {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#contact input,
#contact textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(75, 207, 250, 0.1);
}

/* Button Animations */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 207, 250, 0.4);
}

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

.footer-brand {
    gap: 1rem;
}

.footer-brand small {
    color: var(--muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .benefit-card {
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 10px;
    }

    .features-grid,
    #benefits .grid {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

img.loaded,
img[loading="lazy"] {
    opacity: 1;
}

/* SVG Icon Animations */
.benefit-icon svg path,
.benefit-icon svg circle,
.benefit-icon svg rect {
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.benefit-card:hover .benefit-icon svg path,
.benefit-card:hover .benefit-icon svg circle,
.benefit-card:hover .benefit-icon svg rect {
    stroke: #3b82f6;
}

/* Navbar Enhancement */
.site-header {
    transition: box-shadow 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 640px) {
    #about h2 {
        font-size: 1.875rem;
    }

    #benefits h2 {
        font-size: 1.875rem;
    }

    #about .about-content p {
        font-size: 1rem;
    }
}