/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, sans-serif;
    background: #121212;
    color: #e0e0e0;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
}

a {
    color: #4fc3f7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Site Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1e1e1e;
    border-bottom: 1px solid #2f2f2f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.site-header__brand:hover {
    text-decoration: none;
}

.site-header__logo {
    width: 32px;
    height: 32px;
    color: #4fc3f7;
    flex-shrink: 0;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9e9e9e;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.site-header__back svg {
    flex-shrink: 0;
}

.site-header__back:hover {
    background: rgba(255,255,255,.07);
    color: #e0e0e0;
    text-decoration: none;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, opacity .15s;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    opacity: .88;
}

.btn--primary {
    background: #4fc3f7;
    color: #121212;
}

.btn--outline {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #2f2f2f;
}

.btn--outline:hover {
    background: rgba(255,255,255,.06);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 12px;
}

/* === Site Footer === */
.site-footer {
    background: #1a1a1a;
    border-top: 1px solid #2f2f2f;
    padding: 40px 24px 28px;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__brand:hover {
    text-decoration: none;
}

.site-footer__brand svg {
    width: 24px;
    height: 24px;
    color: #4fc3f7;
}

.site-footer__tagline {
    margin-top: 6px;
    font-size: 13px;
    color: #757575;
    max-width: 260px;
}

.site-footer__links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #757575;
    margin-bottom: 2px;
}

.site-footer__link {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: none;
    transition: color .15s;
}

.site-footer__link:hover {
    color: #e0e0e0;
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__copy {
    font-size: 12px;
    color: #5a5a5a;
}

.site-footer__legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__legal a {
    font-size: 12px;
    color: #5a5a5a;
    text-decoration: none;
    transition: color .15s;
}

.site-footer__legal a:hover {
    color: #9e9e9e;
}

/* === Page Wrapper === */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Landing: Hero === */
.hero {
    padding: 80px 24px 72px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(79, 195, 247, .12);
    border: 1px solid rgba(79, 195, 247, .25);
    color: #4fc3f7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.hero__title span {
    color: #4fc3f7;
}

.hero__description {
    font-size: 17px;
    color: #9e9e9e;
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Landing: Feature Cards === */
.features {
    padding: 0 24px 72px;
}

.features__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: #757575;
    margin-bottom: 36px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s;
}

.feature-card:hover {
    border-color: #3a3a3a;
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(79, 195, 247, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
    flex-shrink: 0;
}

.feature-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.feature-card__text {
    font-size: 13px;
    color: #757575;
    line-height: 1.65;
}

/* === Landing: Storage Modes === */
.modes {
    padding: 0 24px 72px;
    background: #161616;
}

.modes__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 64px;
}

.modes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.mode-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 28px;
}

.mode-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mode-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 195, 247, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
    flex-shrink: 0;
}

.mode-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.mode-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-card__list li {
    font-size: 13px;
    color: #9e9e9e;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.mode-card__list li::before {
    content: '–';
    color: #4fc3f7;
    flex-shrink: 0;
    margin-top: 1px;
}

/* === Landing: Privacy section === */
.privacy-stripe {
    padding: 64px 24px;
}

.privacy-stripe__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(79, 195, 247, .05);
    border: 1px solid rgba(79, 195, 247, .15);
    border-radius: 18px;
    padding: 40px 48px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.privacy-stripe__icon {
    color: #4fc3f7;
    flex-shrink: 0;
    margin-top: 4px;
}

.privacy-stripe__body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.privacy-stripe__body p {
    font-size: 14px;
    color: #9e9e9e;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* === Document pages (privacy, terms, etc.) === */
.doc-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.doc-page__title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.doc-page__updated {
    font-size: 13px;
    color: #5a5a5a;
    margin-bottom: 40px;
}

.doc-section {
    margin-bottom: 36px;
}

.doc-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #c8c8c8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
    letter-spacing: .01em;
}

.doc-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #9e9e9e;
    margin: 16px 0 8px;
}

.doc-section p {
    font-size: 14px;
    color: #9e9e9e;
    margin-bottom: 10px;
    line-height: 1.75;
}

.doc-section ul,
.doc-section ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.doc-section li {
    font-size: 14px;
    color: #9e9e9e;
    line-height: 1.65;
}

.doc-section a {
    color: #4fc3f7;
}

.doc-page hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 32px 0;
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero {
        padding: 56px 20px 48px;
    }

    .privacy-stripe__inner {
        padding: 28px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .site-footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
