/* ============================================
   Patent Tools — Portal
   ============================================ */

:root {
    --primary: #1e3a5f;
    --accent: #0ea5e9;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-alt: #f8f9fb;
    --border: #e2e5ea;
    --border-light: #edf0f3;
    --text: #1a1d23;
    --text-sec: #5a6170;
    --text-muted: #8b919e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body { font-family:var(--font); background:var(--bg); color:var(--text); }
.hidden { display:none !important; }
.container { max-width:880px; margin:0 auto; padding:0 32px; }

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec);
    letter-spacing: 0;
    text-decoration: none;
    transition: color 150ms ease;
}

.nav-brand:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 150ms ease;
}

.nav-link:hover {
    color: var(--text-sec);
    background: rgba(0,0,0,0.03);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(30,58,95,0.06);
}

.nav-right {
    display: flex;
    align-items: center;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-bar-pic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.user-bar-email {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sec);
}

.user-bar-out {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 150ms ease;
}

.user-bar-out:hover {
    background: var(--bg-alt);
    border-color: #cbd5e1;
}

/* ---- Sections ---- */
.section {
    padding: 40px 0;
}

.section-tools {
    padding-top: 32px;
}

/* ---- Section header ---- */
.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.section-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    opacity: 0.5;
    pointer-events: none;
    transition: all 250ms cubic-bezier(0.4,0,0.2,1);
}

.card.live {
    opacity: 1;
    pointer-events: auto;
}

.card.live:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card.live:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14,165,233,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-sec);
    line-height: 1.6;
}

.auth-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- About ---- */
.section-about {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.about-content {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}

.about-statement {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.about-body {
    font-size: 16px;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.45;
}

/* ---- Contact ---- */
.section-contact {
    padding: 64px 0;
}

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

.contact-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.contact-body {
    font-size: 14px;
    color: var(--text-sec);
    margin-bottom: 16px;
}

.contact-email {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 150ms ease;
}

.contact-email:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

/* ---- Footer ---- */
.foot {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
}

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

.foot-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 16px; }
    .nav-links { display: none; }
    .section { padding: 48px 0; }
    .section-title { font-size: 22px; }
    .cards { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
