:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8FAFC;
    --tertiary-bg: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent-primary: #0D9488;
    --accent-hover: #0F766E;
    --accent-secondary: #334155;
    --border-color: #E2E8F0;
    --success: #059669;
    --info: #2563EB;
    --warning: #D97706;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: #94A3B8 !important;
}

.technical-font {
    font-family: 'IBM Plex Mono', monospace;
}

.btn-primary {
    background-color: #0F172A;
    color: #FFFFFF;
    padding: 1rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-primary);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: #0F172A;
    padding: 1rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
}

.archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .archive-container {
        padding: 0 2rem;
    }
}

/* ===== header ===== */
.pe-header .pe-nav-link {
    font-family: 'IBM Plex Mono', monospace;
}

.pe-header .js-dropdown-menu {
    min-width: 200px;
    animation: peFadeIn 0.2s ease-out;
}

@keyframes peFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-header .js-mobile-menu-panel.active {
    transform: translateX(0);
}

.pe-header .js-dropdown-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.pe-header .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

/* ===== hero ===== */
.pe-hero-section {
    font-family: 'Inter', sans-serif;
    position: relative;
}

.pe-hero-section .pe-hero-container {
    min-height: inherit;
}

.pe-hero-section .font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

.pe-hero-section .pe-hero-title {
    hyphens: auto;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pe-hero-section .pe-data-card {
    position: relative;
    transition: all 0.3s ease;
}

.pe-hero-section .pe-data-card:hover {
    border-color: #0D9488;
    background: rgba(13, 148, 136, 0.05);
    transform: rotate(0) scale(1.05);
}

.pe-hero-section .pe-btn-primary {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.3);
}

.pe-hero-section .pe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(13, 148, 136, 0.5);
}

.pe-hero-section .pe-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pe-hero-section .pe-diagonal-line {
    transform-origin: left top;
}

.pe-hero-section .pe-hero-perspective-box {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .pe-hero-section .pe-hero-title {
        font-size: 18px;
    }

    .pe-hero-section .pe-hero-subtitle {
        font-size: 14px;
    }

    .pe-hero-section .pe-hero-actions {
        flex-direction: column;
    }
}

/* ===== featured-case ===== */
.featured-case-section table th,
.featured-case-section table td {
    border-color: #E2E8F0;
}

.featured-case-section .aspect-video {
    background-color: #F8FAFC;
}

.featured-case-section .timeline-dot {
    box-shadow: 0 0 0 4px #FFFFFF;
}

@media (max-width: 767px) {
    .featured-case-section table {
        min-width: 600px;
    }
}

/* ===== case-collections ===== */
.case-collections .collection-card {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.case-collections .collection-card:hover {
    border-color: #0D9488;
    background-color: #F8FAFC;
}

.case-collections .card-image {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-collections h2 {
    letter-spacing: -0.02em;
}

.case-collections h3 {
    letter-spacing: 0.05em;
}

.case-collections p {
    hyphens: auto;
}

@media (max-width: 767px) {
    .case-collections .collection-card {
        margin-bottom: 1rem;
    }
}

/* ===== common-mistakes ===== */
#common-mistakes-block .font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

#common-mistakes-block .mistake-card {
    position: relative;
}

#common-mistakes-block .mistake-card:hover {
    z-index: 10;
    outline: 1px solid #0D9488;
}

#common-mistakes-block h2,
#common-mistakes-block h3 {
    line-height: 1.2;
}

#common-mistakes-block p {
    line-height: 1.6;
}

@media (max-width: 767px) {
    #common-mistakes-block .mistake-card {
        border-right: 1px solid #E2E8F0 !important;
    }
}

/* ===== client-logos ===== */
.client-logos-block .client-logos-img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logos-block .client-logos-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== glossary ===== */
.glossary-archive .js-glossary-search::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.glossary-archive .glossary-card {
    display: flex;
    flex-direction: column;
    border-radius: 0px;
}

.glossary-archive .term-name {
    font-family: 'IBM Plex Mono', monospace;
}

.glossary-archive .js-glossary-item {
    transition: opacity 0.3s ease;
}

@media (max-width: 767px) {
    .glossary-archive .js-glossary-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== how-we-work ===== */
.how-work-block {
    font-family: 'Inter', sans-serif;
}

.how-work-block .how-work-step {
    min-height: 280px;
}

.how-work-block .how-work-step p {
    hyphens: auto;
}

.how-work-block h2,
.how-work-block h3 {
    color: #0F172A;
}

@media (max-width: 767px) {
    .how-work-block .how-work-step {
        min-height: auto;
        margin-bottom: 2rem;
    }

    .how-work-block .how-work-step:last-child {
        margin-bottom: 0;
    }
}

/* ===== contact-block ===== */
.contact-section {
    font-family: 'Inter', sans-serif;
}

.contact-section h2,
.contact-section h3 {
    font-family: 'Inter', sans-serif;
}

.contact-section .font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

.contact-section .contact-item {
    transition: transform 0.2s ease;
}

.contact-section .contact-item:hover {
    transform: translateX(4px);
}

.contact-section select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

@media (max-width: 767px) {
    .contact-section .contact-form-panel {
        padding: 24px;
    }

    .contact-section h2 {
        hyphens: auto;
    }
}

/* ===== footer ===== */
.pe-footer {
    font-family: 'Inter', sans-serif;
}

.pe-footer-disclaimer-text {
    hyphens: auto;
}

.pe-footer-link {
    text-decoration: none;
    position: relative;
}

.pe-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0D9488;
    transition: width 0.3s ease;
}

.pe-footer-link:hover::after {
    width: 100%;
}

.pe-footer-logo {
    transition: opacity 0.2s ease;
}

.pe-footer-logo:hover {
    opacity: 0.8;
}

/* ===== PAGE: bambu-studio ===== */
.bambu-case-details .js-tab-trigger.is-active { border-bottom-color: #0D9488; color: #0F172A; }
.bambu-case-details .js-tab-content.hidden { display: none; }
.bambu-case-details .ph-light { font-size: 1.25rem; }
@media (max-width: 767px) {
  .bambu-case-details h1 { font-size: 24px; }
  .bambu-case-details h2 { font-size: 20px; }
  .bambu-case-details h3 { font-size: 16px; }
  .bambu-case-details .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ===== PAGE: cases ===== */
.cases-archive-block .js-case-card img { transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.cases-archive-block .js-case-card:hover img { transform: scale(1.05); }
.cases-archive-block .js-filter-btn.active {
    border-color: #0F172A !important;
    background-color: #0F172A !important;
    color: #FFFFFF !important;
}
.cases-archive-block input:focus::placeholder, .cases-archive-block textarea:focus::placeholder {
    opacity: 0.5;
}
.cases-archive-block .js-cases-grid {
    min-height: 400px;
}
.cases-archive-block .font-mono {
    font-family: 'IBM Plex Mono', monospace;
}
@media (max-width: 768px) {
    .cases-archive-block .js-case-card {
        padding: 1.5rem;
    }
}

/* ===== PAGE: reviews ===== */
.reviews-archive-section .js-review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.reviews-archive-section .js-review-card img {
  object-fit: cover;
}

.reviews-archive-section select::-ms-expand {
  display: none;
}

.reviews-archive-section select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.reviews-archive-section input::placeholder,
.reviews-archive-section textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

@media (max-width: 767px) {
  .reviews-archive-section .js-review-card {
    margin-bottom: 0;
  }
}

/* ===== PAGE: about ===== */
.about-regulations-block { font-family: 'Inter', sans-serif; }
.about-regulations-block .font-mono { font-family: 'IBM Plex Mono', monospace; }
.about-regulations-block .js-reg-card { height: 100%; transition: transform 0.2s ease; }
.about-regulations-block .js-reg-filter::placeholder { color: #94A3B8; opacity: 1; }
@media (max-width: 767px) {
  .about-regulations-block h1 { hyphens: auto; }
  .about-regulations-block h2 { hyphens: auto; }
}

/* ===== PAGE: privacy ===== */
.privacy-content { font-family: 'Inter', sans-serif; }
.privacy-content .font-mono { font-family: 'IBM Plex Mono', monospace; }
.privacy-content article { scroll-margin-top: 100px; }
.privacy-content .js-scroll-link { text-decoration: none; position: relative; }
.privacy-content .js-scroll-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: #0D9488; transition: width 0.3s ease; }
.privacy-content .js-scroll-link:hover::after { width: 100%; }

/* ===== PAGE: terms ===== */
.pe-terms-content { font-family: 'Inter', sans-serif; }
.pe-terms-content h1, .pe-terms-content h2, .pe-terms-content h3 { font-family: 'Inter', sans-serif; }
.pe-terms-content .font-mono { font-family: 'IBM Plex Mono', monospace; }
.pe-terms-content .js-terms-nav-link.active { color: #0D9488; font-weight: 600; border-left: 2px solid #0D9488; margin-left: -26px; padding-left: 24px; }
.pe-terms-content p { hyphens: auto; }
@media (max-width: 767px) {
  .pe-terms-content .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-content { font-family: 'Inter', sans-serif; }.disclaimer-content .font-mono { font-family: 'IBM Plex Mono', monospace; }.disclaimer-content__item { padding: 2rem; background-color: #F8FAFC; border: 1px solid #E2E8F0; transition: border-color 0.2s ease; }.disclaimer-content__item:hover { border-color: #0D9488; }.disclaimer-content__header p { max-width: 600px; }

.comment-container {
    font-family: 'Inter', sans-serif;
}

.user-avatar {
    border-radius: 9999px;
    border: 2px solid #E2E8F0;
    box-shadow: 0 0 0 4px #FFFFFF;
}

.comment-body p {
    letter-spacing: -0.01em;
}

.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

.comment-container:hover {
    background-color: #F8FAFC;
}

.reply-container {
    font-family: 'Inter', sans-serif;
}

.user-avatar-small {
    border-radius: 9999px;
    border: 1px solid #E2E8F0;
}

.reply-container .font-mono {
    font-family: 'IBM Plex Mono', monospace;
}

.reply-container p {
    max-width: 600px;
}


/* ===== PAGE TEMPLATE: cases-list ===== */
.pe-header .pe-nav-link {
    font-family: 'IBM Plex Mono', monospace;
}

.pe-header .js-dropdown-menu {
    min-width: 200px;
    animation: peFadeIn 0.2s ease-out;
}

@keyframes peFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-header .js-mobile-menu-panel.active {
    transform: translateX(0);
}

.pe-header .js-dropdown-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.pe-header .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

.pe-footer {
    font-family: 'Inter', sans-serif;
}

.pe-footer-disclaimer-text {
    hyphens: auto;
}

.pe-footer-link {
    text-decoration: none;
    position: relative;
}

.pe-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0D9488;
    transition: width 0.3s ease;
}

.pe-footer-link:hover::after {
    width: 100%;
}

.pe-footer-logo {
    transition: opacity 0.2s ease;
}

.pe-footer-logo:hover {
    opacity: 0.8;
}

.pe-rich-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pe-rich-text h2,
.pe-rich-text h3 {
    margin-top: 2rem;
    color: #0F172A;
}

.pe-case-content {
    font-family: 'Inter', sans-serif;
}

/* ===== PAGE TEMPLATE: reviews-list ===== */
.pe-header .pe-nav-link {
    font-family: 'IBM Plex Mono', monospace;
}

.pe-header .js-dropdown-menu {
    min-width: 200px;
    animation: peFadeIn 0.2s ease-out;
}

@keyframes peFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-header .js-mobile-menu-panel.active {
    transform: translateX(0);
}

.pe-header .js-dropdown-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.pe-header .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

.pe-review-detail .pe-article-text h1,
.pe-review-detail .pe-article-text h2,
.pe-review-detail .pe-article-text h3 {
    color: #0F172A;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.pe-review-detail .pe-article-text h1 {
    font-size: 28px;
    line-height: 1.2;
}

.pe-review-detail .pe-article-text h2 {
    font-size: 24px;
    line-height: 1.3;
}

.pe-review-detail .pe-article-text h3 {
    font-size: 18px;
    line-height: 1.4;
}

.pe-review-detail .pe-article-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
}

.pe-review-detail .pe-article-text ul,
.pe-review-detail .pe-article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.pe-review-detail .pe-article-text li {
    margin-bottom: 0.75rem;
    color: #475569;
    position: relative;
}

.pe-review-detail .pe-article-text ul li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: #0D9488;
}

.pe-footer {
    font-family: 'Inter', sans-serif;
}

.pe-footer-disclaimer-text {
    hyphens: auto;
}

.pe-footer-link {
    text-decoration: none;
    position: relative;
}

.pe-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0D9488;
    transition: width 0.3s ease;
}

.pe-footer-link:hover::after {
    width: 100%;
}

.pe-footer-logo {
    transition: opacity 0.2s ease;
}

.pe-footer-logo:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .pe-review-detail .pe-article-text h1 {
        font-size: 18px;
    }

    .pe-review-detail .pe-article-text h2 {
        font-size: 16px;
    }

    .pe-review-detail .pe-article-text h3 {
        font-size: 14px;
    }

    .pe-review-detail .pe-article-text p {
        font-size: 14px;
    }
}

/* ===== PAGE TEMPLATE: regulations-list ===== */
.pe-header .pe-nav-link {
    font-family: 'IBM Plex Mono', monospace;
}

.pe-header .js-dropdown-menu {
    min-width: 200px;
    animation: peFadeIn 0.2s ease-out;
}

@keyframes peFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-header .js-mobile-menu-panel.active {
    transform: translateX(0);
}

.pe-header .js-dropdown-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.pe-header .js-dropdown-toggle i {
    transition: transform 0.2s ease;
}

.pe-footer {
    font-family: 'Inter', sans-serif;
}

.pe-footer-disclaimer-text {
    hyphens: auto;
}

.pe-footer-link {
    text-decoration: none;
    position: relative;
}

.pe-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0D9488;
    transition: width 0.3s ease;
}

.pe-footer-link:hover::after {
    width: 100%;
}

.pe-footer-logo {
    transition: opacity 0.2s ease;
}

.pe-footer-logo:hover {
    opacity: 0.8;
}

.pe-rich-text h1,
.pe-rich-text h2,
.pe-rich-text h3 {
    color: #0F172A;
    font-family: 'Inter', sans-serif;
}

.pe-rich-text p {
    line-height: 1.7;
    color: #475569;
}

.pe-main-content {
    font-family: 'Inter', sans-serif;
}

.pe-regulation-accordion .js-accordion-item.active .js-accordion-icon {
    transform: rotate(45deg);
    color: #EF4444;
}

.pe-regulation-accordion .js-accordion-content {
    transition: max-height 0.3s ease-in-out;
}