/* ============================================
   TECHNETIA | Corporate Website Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0a0e17;
    --color-surface: #111827;
    --color-surface-alt: #1a2235;
    --color-border: #2a3450;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-width: 1200px;
    --header-height: 72px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.narrow {
    max-width: 800px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: #f1f5f9;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.center { text-align: center; }
.center-cta { text-align: center; margin-top: 3rem; }
.feature-list { list-style: disc; padding-left: 1.5rem; margin-bottom: 2rem; }
.feature-list li { margin-bottom: 0.5rem; color: var(--color-text); font-size: 1rem; }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ---------- Sections ---------- */
section {
    padding: 0 0 5rem;
}

.section-alt { background: var(--color-surface); }
.section-light { background: var(--color-bg); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f1f5f9;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f1f5f9;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

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

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, #0f172a 50%, #1e1b4b 100%);
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f1f5f9, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--color-surface) 0%, #1e1b4b 100%);
    padding: 3rem 0;
}

.page-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

/* ---------- Agents Showcase (Home) ---------- */
.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-accent);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.showcase-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.25rem 0 3rem;
}

.agent-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.agent-icon {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.agent-card:hover .agent-icon {
    background: rgba(59, 130, 246, 0.2);
}

.agent-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.agent-card h3 {
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.agent-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ---------- Services Preview (Home) ---------- */
.three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.service-item h3 {
    color: var(--color-primary);
}

.service-item p {
    color: var(--color-text-muted);
}

/* ---------- Why Section ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 1.5rem;
}

.why-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.3;
    display: block;
    margin-bottom: 0.75rem;
}

.why-item h4 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    text-align: center;
    padding: 6rem 0;
}

.cta-inner h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-inner p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* ---------- Content Sections ---------- */
.content-section h2 {
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-section p,
.content-section li {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.service-detail {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

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

.service-detail ul {
    list-style: none;
    margin-top: 1rem;
}

.service-detail li::before {
    content: "▸ ";
    color: var(--color-primary);
}

/* ---------- Team Section ---------- */
.team-section {
    padding: 0 0 5rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.team-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ---------- Agents Full Page ---------- */
.agents-full {
    padding: 4rem 0;
}

.agent-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.agent-detail-icon {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-detail-content h2 {
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.agent-detail-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-detail {
    margin-bottom: 2rem;
}

.contact-detail h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-form-wrap h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-info {
    padding-left: 2rem;
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--color-primary);
}

.contact-form label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    margin-top: 1rem;
}

.contact-form label[for="captcha"] {
    margin-top: 0;
}

.contact-form input#captcha {
    margin-bottom: 1.5rem;
    display: block;
}

.contact-form button[type="submit"] {
    margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ---------- Portal Styles ---------- */
.portal-body .site-header {
    background: rgba(17, 24, 39, 0.95);
}

.portal-badge {
    font-size: 0.65rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-left: 0.5rem;
    opacity: 0.7;
}

/* Login */
.login-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 80px);
    padding: 3rem 0;
}

.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.login-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-form label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    margin-top: 1.25rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.login-form button {
    margin-top: 2rem;
}

.error-msg {
    color: var(--color-danger);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.login-hint {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Dashboard */
.dashboard-section {
    padding: 3rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--color-text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
}

.dash-card h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.dash-card ul {
    list-style: none;
}

.dash-card li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(42, 52, 80, 0.5);
}

.dash-card li:last-child {
    border-bottom: none;
}

.status {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status.active, .status.online { background: rgba(16, 185, 129, 0.2); color: var(--color-success); }
.status.review { background: rgba(245, 158, 11, 0.2); color: var(--color-warning); }
.status.planning { background: rgba(59, 130, 246, 0.2); color: var(--color-primary); }
.status.beta { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

.dash-card a {
    display: block;
    margin-bottom: 0.5rem;
}

.dash-card .btn + .btn {
    margin-top: 0.5rem;
}

/* ---------- File Storage UI ---------- */

.storage-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-sep {
    color: var(--color-text-muted);
    margin: 0 0.25rem;
}

.storage-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(42, 52, 80, 0.5);
}

.inline-form {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.delete-form {
    display: inline;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.file-table th, .file-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(42, 52, 80, 0.3);
}

.file-table th {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.file-link {
    color: var(--color-text);
    text-decoration: none;
}

.file-link:hover {
    color: var(--color-primary);
}

.dir-link {
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.lang-switch {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    text-decoration: none;
    margin-left: 0.5rem;
}

.lang-switch:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ---------- Signup / Client Forms ---------- */

.signup-form {
    max-width: 450px;
    margin: 0 auto;
}

.signup-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    margin-top: 1rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(42, 52, 80, 0.8);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.signup-form .captcha-box {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.signup-form .captcha-box p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.signup-form .captcha-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(42, 52, 80, 0.8);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
}

.signup-form button[type="submit"] {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.center {
    text-align: center;
}

/* ---------- Client Portal ---------- */

.upload-box {
    background: rgba(26, 32, 48, 0.5);
    border: 1px solid rgba(42, 52, 80, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.upload-box h2 {
    margin-top: 0;
}

.ext-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

/* ---------- Employee Client Management ---------- */

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
}

.search-form input[type="text"] {
    flex: 1;
    max-width: 400px;
    padding: 0.6rem 1rem;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(42, 52, 80, 0.8);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.client-view {
    margin-top: 2rem;
}

code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .page-hero h1 { font-size: 2rem; }
    .header-inner { flex-direction: column; gap: 0.75rem; height: auto; padding: 1rem 0; }
    .site-header { height: auto; position: relative; }
    .main-nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .agent-detail { flex-direction: column; text-align: center; }
    section { padding: 3rem 0; }
}
