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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.nav-left, .nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-left a, .nav-right a {
    text-decoration: none;
    color: #262626;
    font-size: 13px;
    font-weight: 400;
}

.nav-left a:hover, .nav-right a:hover {
    text-decoration: underline;
}

.logo {
    margin-right: 10px;
}

/* Promo Banner */
.promo-banner {
    background: #882a8b;
    text-align: right;
    padding: 5px 5%;
    font-size: 12px;
    color: #262626;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #d4b896 0%, #c9ab8a 100%);
    padding: 60px 5%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.hero-text {
    flex: 1;
    color: #1a1a1a;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-primary {
    background: #0067b8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    display: inline-block;
}

.btn-primary:hover {
    background: #005a9e;
}

.link-arrow {
    color: #0067b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-top: 10px;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    padding: 20px;
    background: white;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 8px;
    background-color: #c4c4c4;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #0067b8;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #262626;
}

.product-card p {
    font-size: 15px;
    color: #505050;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-secondary {
    background: transparent;
    color: #0067b8;
    border: 2px solid #0067b8;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}

.btn-secondary:hover {
    background: #0067b8;
    color: white;
}

/* OneNote Section */
.onenote-section {
    background: white;
    padding: 0 5% 60px;
}

.onenote-content {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
    background: #f5f5f5;
}

.onenote-image {
    flex: 1;
}

.onenote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onenote-text {
    flex: 1;
    padding: 60px 80px;
    background: white;
}

.onenote-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #262626;
}

.onenote-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #505050;
}

/* Business Section */
.business-section {
    background: white;
    padding: 60px 5%;
}

.business-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #262626;
}

/* Social Links */
.social-links {
    padding: 30px 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
}

.social-links span {
    font-weight: 600;
    margin-right: 10px;
}

.social-links a {
    color: #262626;
    text-decoration: none;
    font-size: 18px;
}

.social-links a:hover {
    color: #0067b8;
}

/* Footer */
.footer {
    background: #f2f2f2;
    padding: 40px 5%;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #262626;
}

.footer-column a {
    display: block;
    color: #616161;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #d1d1d1;
    padding-top: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom-left, .footer-bottom-right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom a, .footer-bottom span {
    color: #616161;
    text-decoration: none;
    font-size: 12px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f2f2f2;
    color: #262626;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #d1d1d1;
}

.back-to-top:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .onenote-content {
        flex-direction: column;
    }

    .nav-left, .nav-right {
        flex-wrap: wrap;
        gap: 10px;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* Update Dialog Styles */
.update-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.update-dialog {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

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

.dialog-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #edebe9;
    gap: 16px;
    background: #faf9f8;
}

.browser-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.browser-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dialog-title h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #201f1e;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dialog-title p {
    font-size: 13px;
    color: #605e5c;
    margin: 0;
    font-weight: 400;
}

.dialog-content {
    padding: 24px;
    background: white;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.update-step {
    text-align: left;
}

.update-step.hidden {
    display: none;
}

.step-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

.update-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #201f1e;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.update-step p {
    font-size: 14px;
    color: #323130;
    margin-bottom: 16px;
    line-height: 20px;
}

.update-info {
    background: #f3f2f1;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0 20px 0;
    border: 1px solid #edebe9;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edebe9;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row span:first-child {
    color: #605e5c;
    font-size: 13px;
}

.info-row span:last-child {
    color: #201f1e;
    font-weight: 600;
    font-size: 13px;
}

.dialog-btn-primary {
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.1s ease;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-width: 80px;
}

.dialog-btn-primary:hover:not(:disabled) {
    background: #106ebe;
}

.dialog-btn-primary:active:not(:disabled) {
    background: #005a9e;
}

.dialog-btn-primary:disabled {
    background: #f3f2f1;
    color: #a19f9d;
    cursor: not-allowed;
    border: 1px solid #edebe9;
}

.timer-text {
    font-size: 12px;
    color: #605e5c;
    margin-top: 12px;
    text-align: center;
}

.timer-text span {
    font-weight: 600;
    color: #0078d4;
}

/* Progress Bar */
.progress-container {
    margin: 24px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #edebe9;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #0078d4;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0;
}

.progress-text {
    font-size: 24px;
    font-weight: 600;
    color: #201f1e;
    margin-bottom: 8px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.progress-detail {
    font-size: 13px;
    color: #605e5c;
}

/* Installing Animation */
.installing-animation {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #edebe9;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.install-steps {
    margin-top: 24px;
    text-align: left;
}

.install-item {
    padding: 10px 0;
    font-size: 13px;
    color: #323130;
    border-bottom: 1px solid #edebe9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-item:last-child {
    border-bottom: none;
}

/* Instruction Box */
.important-notice {
    font-size: 14px;
    color: #201f1e;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.instruction-box {
    background: #faf9f8;
    border-radius: 4px;
    border: 1px solid #edebe9;
    padding: 20px;
    margin: 16px 0;
    text-align: left;
}

.instruction-step {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #0078d4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 13px;
}

.step-content {
    flex: 1;
    padding-top: 2px;
}

.step-content strong {
    display: block;
    font-size: 14px;
    color: #201f1e;
    margin-bottom: 4px;
    font-weight: 600;
}

.step-content p {
    font-size: 12px;
    color: #605e5c;
    margin: 4px 0 8px 0;
    line-height: 16px;
}

.command-box {
    background: #f3f2f1;
    border: 1px solid #8a8886;
    border-radius: 2px;
    padding: 12px;
    margin-top: 8px;
    display: flex;
    align-items: start;
    gap: 8px;
    position: relative;
}

.command-box code {
    flex: 1;
    color: #323130;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 18px;
    word-break: break-all;
}

.copy-btn {
    background: #f3f2f1;
    color: #323130;
    border: 1px solid #8a8886;
    border-radius: 2px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.1s ease;
}

.copy-btn:hover {
    background: #e1dfdd;
    border-color: #323130;
}

.copy-btn:active {
    background: #d2d0ce;
}

.warning-box {
    background: #fff4ce;
    border: 1px solid #d29d1d;
    border-left: 4px solid #d29d1d;
    border-radius: 2px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
}

.warning-box strong {
    color: #323130;
    font-size: 13px;
    font-weight: 600;
}

/* Browser-specific icons */
.browser-icon.edge {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.browser-icon.chrome {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc04 50%, #34a853 100%);
}

.browser-icon.firefox {
    background: linear-gradient(135deg, #ff6611 0%, #ff9500 100%);
}

/* Responsive for dialog */
@media (max-width: 768px) {
    .update-dialog {
        width: 95%;
    }

    .dialog-header {
        padding: 20px;
    }

    .dialog-content {
        padding: 20px;
    }

    .browser-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .dialog-title h2 {
        font-size: 20px;
    }

    .command-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-btn {
        width: 100%;
    }
}