/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 90px;
}

body.website-body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

body.website-body.loading {
    overflow: hidden;
    height: 100%;
}

body.website-body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

body.website-body.loaded .page-wrapper {
    opacity: 1;
    visibility: visible;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

::selection {
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page Wrapper */
.page-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

body.website-body.loading .page-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* Section Base */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: visible;
}

.section--features {
    background: var(--color-gray-50);
}

.section--how-it-works {
    background: var(--color-white);
}

.section--about {
    background: var(--color-gray-50);
}

.section--gallery {
    background: var(--color-white);
}

.section--testimonials {
    background: var(--color-gray-50);
}

.section--cta {
    padding-bottom: var(--section-padding);
}

/* Container override */
.container {
    max-width: var(--container-max);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Disabled state */
.disabled,
[disabled] {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}
