/* ============================================================
   Umbra Browser — Shared Stylesheet
   Colours: bg #0a0a0a | card #1a1a1a | accent #7fdb7f
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* ── Nav ──────────────────────────────────────────────────── */
header {
    padding: 16px 0;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-section img {
    width: 40px;
    height: 40px;
}

.logo-section span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

nav a:hover,
nav a.active {
    color: #7fdb7f;
    background: rgba(127, 219, 127, 0.08);
}

.github-link {
    background: #1a3a1a;
    color: #7fdb7f !important;
    padding: 8px 18px !important;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s !important;
    white-space: nowrap;
}

.github-link:hover {
    background: #254d25 !important;
    border-color: #7fdb7f !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 110px 0 100px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(127, 219, 127, 0.07) 0%, transparent 70%);
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 24px;
    color: #7fdb7f;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero .subtitle {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 50px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: #1a3a1a;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.download-btn:hover {
    background: #254d25;
    border-color: #7fdb7f;
    transform: translateY(-1px);
}

.download-btn.secondary {
    background: transparent;
    border: 2px solid #2a2a2a;
    color: #7fdb7f;
}

.download-btn.secondary:hover {
    border-color: #7fdb7f;
    background: rgba(26, 58, 26, 0.3);
    transform: translateY(-1px);
}

/* ── Section titles ───────────────────────────────────────── */
.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.5px;
}

.section-sub {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
    font-size: 17px;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
    padding: 100px 0;
    background: #0e0e0e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #7fdb7f;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.feature-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #7fdb7f;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.75;
    font-size: 15px;
}

/* ── Comparison ───────────────────────────────────────────── */
.comparison {
    padding: 100px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    background: #1a1a1a;
    padding: 28px;
    border-radius: 10px;
    border-left: 4px solid #2a2a2a;
}

.comparison-card.highlight {
    border-left-color: #7fdb7f;
    background: #1a3a1a;
}

.comparison-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #fff;
}

.comparison-card p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.7;
}

/* ── FAQ teaser ───────────────────────────────────────────── */
.faq-teaser {
    padding: 80px 0;
    background: #0e0e0e;
}

.faq-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.faq-teaser-item {
    background: #1a1a1a;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.faq-teaser-item p {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 15px;
}

.faq-teaser-item span {
    color: #888;
    font-size: 14px;
}

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

.link-accent {
    color: #7fdb7f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.link-accent:hover {
    border-bottom-color: #7fdb7f;
}

/* ── Download section ─────────────────────────────────────── */
.download-section {
    padding: 100px 0;
    text-align: center;
}

.download-section p {
    font-size: 17px;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.platform-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-link {
    background: #1a1a1a;
    color: #7fdb7f;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #2a2a2a;
    font-size: 15px;
    transition: all 0.2s;
}

.platform-link:hover {
    border-color: #7fdb7f;
    background: #1a3a1a;
    transform: translateY(-1px);
}

/* ── Inner pages ──────────────────────────────────────────── */
.page-hero {
    padding: 70px 0 50px;
    text-align: center;
    border-bottom: 1px solid #1e1e1e;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(127, 219, 127, 0.06) 0%, transparent 70%);
}

.page-hero h1 {
    font-size: 46px;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.page-hero p {
    color: #888;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 70px 0;
    max-width: 820px;
    margin: 0 auto;
}

/* FAQ accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #3a3a3a;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    padding: 22px 26px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #7fdb7f;
}

.faq-question .faq-icon {
    color: #7fdb7f;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-answer {
    display: none;
    padding: 0 26px 22px;
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 15px;
}

.faq-answer.open {
    display: block;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

/* Changelog */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.changelog-entry {
    border-left: 3px solid #2a2a2a;
    padding-left: 28px;
    position: relative;
}

.changelog-entry::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #7fdb7f;
    border-radius: 50%;
    position: absolute;
    left: -6.5px;
    top: 8px;
}

.changelog-entry .version-tag {
    display: inline-block;
    background: #1a3a1a;
    color: #7fdb7f;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    border: 1px solid #2d5a2d;
    letter-spacing: 0.5px;
}

.changelog-entry h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 6px;
}

.changelog-entry .date {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
}

.changelog-entry ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-entry li {
    color: #b0b0b0;
    font-size: 15px;
    display: flex;
    gap: 10px;
}

.changelog-entry li::before {
    content: '→';
    color: #7fdb7f;
    flex-shrink: 0;
}

.changelog-entry .note {
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.changelog-entry .note a {
    color: #7fdb7f;
    text-decoration: none;
}

.changelog-entry .note a:hover {
    text-decoration: underline;
}

/* About */
.about-section {
    padding: 60px 0;
}

.about-block {
    margin-bottom: 56px;
}

.about-block h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e1e1e;
}

.about-block p {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 14px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.principle-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 22px;
}

.principle-card .p-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.principle-card h3 {
    font-size: 16px;
    color: #7fdb7f;
    margin-bottom: 8px;
}

.principle-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: #7fdb7f;
    color: #7fdb7f;
    background: #1a3a1a;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    padding: 40px 0;
    border-top: 1px solid #1e1e1e;
    background: #0a0a0a;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #7fdb7f;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-social a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #7fdb7f;
}

.footer-copy {
    color: #444;
    font-size: 13px;
}

.footer-copy a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: #7fdb7f;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 19px; }
    .section-title { font-size: 30px; }
    .page-hero h1 { font-size: 32px; }
    .download-buttons { flex-direction: column; }
    .download-btn { width: 100%; text-align: center; }
    nav { gap: 4px; }
    nav a { font-size: 14px; padding: 5px 8px; }
    .header-content { flex-wrap: wrap; }
}
