/* ============================================
   Tenlink — tenlinktech.com
   Science & Security Corporate Site
   ============================================ */

:root {
    --ink:         #0d1117;
    --ink-2:       #1c2333;
    --ink-muted:   #5a6377;
    --surface:     #ffffff;
    --surface-2:   #f6f8fa;
    --surface-3:   #edf0f5;
    --border:      #d8dee6;
    --accent:      #0A6EFF;
    --accent-hover:#085ed8;
    --accent-soft: #e8f1ff;
    --accent-glow: rgba(10,110,255,0.12);
    --green:       #1a9e5c;
    --red:         #e5484d;
    --orange:      #d97706;
    --purple:      #7c3aed;
    --teal:        #0891b2;

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-in { opacity: 0; animation: fadeInUp 0.7s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }

/* ---- Navigation ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 24px rgba(0,0,0,0.04); }
.nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
}
.logo-icon { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-link {
    font-size: 0.88rem; font-weight: 500; color: var(--ink-muted);
    transition: color 0.2s; position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.8rem; font-family: var(--font-body); font-size: 0.88rem;
    font-weight: 600; border-radius: 8px; border: none; cursor: pointer;
    transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-primary {
    background: var(--accent); color: white; box-shadow: 0 2px 16px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 24px rgba(10,110,255,0.25); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface-2); }

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: calc(68px + 5.5rem) 0 4rem;
    position: relative; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient {
    position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%); opacity: 0.7;
}
.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px; opacity: 0.2;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4rem);
    line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s var(--ease-out) both;
}
.hero-accent { color: var(--accent); font-style: italic; }
.hero-subtitle {
    font-size: 1.1rem; color: var(--ink-muted); line-height: 1.75;
    max-width: 560px; margin: 0 auto 2rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}
.hero-actions {
    display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

/* ============================================
   Brand Bar (like Kape product logos)
   ============================================ */
.brand-bar {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.brand-grid {
    display: flex; justify-content: center; align-items: center;
    gap: 3.5rem; flex-wrap: wrap;
}
.brand-item {
    display: flex; align-items: center; gap: 0.7rem;
    transition: transform 0.3s var(--ease);
}
.brand-item:hover { transform: translateY(-2px); }
.brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 22px; height: 22px; }
.vpn-bg     { background: linear-gradient(135deg, #0A6EFF, #0052cc); }
.guard-bg   { background: linear-gradient(135deg, #e5484d, #c62828); }
.cloud-bg   { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.monitor-bg { background: linear-gradient(135deg, #0891b2, #065f7a); }
.brand-name { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); }

/* ============================================
   Section Shared
   ============================================ */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block; font-size: 0.73rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15; letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--ink-muted); }
.section-desc {
    font-size: 1.05rem; color: var(--ink-muted); max-width: 520px;
    margin: 1rem auto 0; line-height: 1.7;
}

/* ============================================
   Product Cards (alternating layout)
   ============================================ */
.products { padding: 6rem 0 2rem; }

.product-card {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; margin-bottom: 5rem;
}
.product-card.reverse { direction: rtl; }
.product-card.reverse > * { direction: ltr; }

/* Visual side */
.product-card-visual {
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.product-icon-lg {
    width: 88px; height: 88px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.product-icon-lg svg { width: 44px; height: 44px; }

.product-illustration {
    width: 100%; max-width: 400px; height: auto; border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.product-pills {
    display: flex; flex-direction: column; gap: 0.55rem;
    width: 100%; max-width: 300px;
}
.pill {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.6rem 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 0.8rem; font-weight: 500; color: var(--ink-2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.pill:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.green  { background: var(--green); }
.dot.blue   { background: var(--accent); }
.dot.red    { background: var(--red); }
.dot.purple { background: var(--purple); }
.dot.orange { background: var(--orange); }

/* Info side */
.product-status {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 0.8rem;
}
.product-status.live    { color: var(--green); background: rgba(26,158,92,0.08); }
.product-status.soon    { color: var(--accent); background: var(--accent-soft); }
.product-status.dev     { color: var(--purple); background: rgba(124,58,237,0.08); }
.product-status.planned { color: var(--ink-muted); background: var(--surface-3); }

.product-card-name {
    font-family: var(--font-display); font-size: 2.1rem;
    letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.product-card-tagline {
    font-size: 1.05rem; font-weight: 500; color: var(--ink-2);
    margin-bottom: 0.8rem; line-height: 1.5;
}
.product-card-desc {
    font-size: 0.95rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1.5rem;
}
.product-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
.feat {
    display: flex; align-items: flex-start; gap: 0.45rem;
    font-size: 0.85rem; color: var(--ink-2); line-height: 1.45;
}
.feat span { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

/* ============================================
   Technology
   ============================================ */
.technology {
    padding: 6rem 0;
    background: var(--surface-2);
}
.tech-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.tech-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 2.2rem;
    transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.tech-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border-color: transparent;
}
.tech-card:hover::before { transform: scaleX(1); }
.tech-number {
    font-family: var(--font-display); font-size: 2rem;
    color: var(--surface-3); font-style: italic; margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.tech-card:hover .tech-number { color: var(--accent-soft); }
.tech-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.tech-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.65; }

/* ============================================
   Metrics
   ============================================ */
.metrics {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.metrics-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    text-align: center;
}
.metric-value {
    display: block; font-family: var(--font-display);
    font-size: 1.8rem; color: var(--ink); letter-spacing: -0.02em;
}
.metric-label {
    display: block; font-size: 0.82rem; color: var(--ink-muted);
    margin-top: 0.2rem; font-weight: 500;
}

/* ============================================
   CTA
   ============================================ */
.cta { padding: 6rem 0; background: var(--ink); color: white; }
.cta-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.cta-title {
    font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.2rem;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-desc { color: rgba(255,255,255,0.55); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Contact Form */
.contact-form {
    max-width: 540px; margin: 0 auto; text-align: left;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group {
    display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem;
}
.form-group label {
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.65);
}
.form-group .req { color: #e5484d; }
.form-group input,
.form-group textarea {
    padding: 0.7rem 1rem; border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: white; font-family: var(--font-body); font-size: 0.9rem;
    outline: none; transition: all 0.25s var(--ease);
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.25);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(10,110,255,0.15);
}
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e5484d;
}
.btn-send {
    width: 100%; margin-top: 0.5rem;
    padding: 0.85rem 2rem; font-size: 0.92rem;
    transition: all 0.3s var(--ease);
}
.btn-send:disabled {
    opacity: 0.35; cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.btn-send:not(:disabled) {
    opacity: 1; cursor: pointer;
}
.form-note {
    margin-top: 0.8rem; font-size: 0.76rem;
    color: rgba(255,255,255,0.3); text-align: center;
}
.form-success {
    display: none; margin-top: 1.2rem; padding: 1rem;
    background: rgba(26,158,92,0.12); border: 1px solid rgba(26,158,92,0.25);
    border-radius: 8px; text-align: center;
    font-size: 0.9rem; font-weight: 600; color: #4ade80;
}
.form-success.visible { display: block; }

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.cta .btn-ghost { color: white; border-color: rgba(255,255,255,0.2); }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 4rem 0 2rem; background: var(--ink);
    color: rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.06);
}
.footer .nav-logo { color: white; }
.footer-tagline { font-size: 0.88rem; margin-top: 0.6rem; color: rgba(255,255,255,0.35); }
.footer-legal { font-size: 0.76rem; color: rgba(255,255,255,0.2); margin-top: 0.3rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-heading {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: rgba(255,255,255,0.3); margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.76rem; color: rgba(255,255,255,0.2);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.45); }

/* ============================================
   About Page
   ============================================ */
.page-hero {
    padding: calc(68px + 4rem) 0 3rem; text-align: center;
}
.page-hero p {
    font-size: 1.1rem; color: var(--ink-muted); max-width: 580px;
    margin: 1rem auto 0; line-height: 1.75;
}
.mission-section { padding: 5rem 0; background: var(--surface-2); }
.mission-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.mission-visual {
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-3));
    border-radius: 20px; height: 340px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.mission-visual::after { content: '🛡️'; font-size: 6rem; opacity: 0.12; }
.mission-text h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1rem; }
.mission-text p { color: var(--ink-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }

.values-section { padding: 5rem 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 2.2rem 1.8rem; text-align: center;
    transition: all 0.3s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.65; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .product-card, .product-card.reverse {
        grid-template-columns: 1fr; gap: 2.5rem; direction: ltr;
    }
    .product-card-visual { order: -1; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-visual { height: 240px; }
}
@media (max-width: 768px) {
    .tech-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .product-features { grid-template-columns: 1fr; }
    .brand-grid { gap: 2rem; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 68px; left: 0; right: 0; background: var(--surface);
        padding: 1.5rem 2rem 2rem; border-bottom: 1px solid var(--border);
        gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .nav-toggle { display: flex; }
    .hero { padding: calc(68px + 3rem) 0 2.5rem; }
    .hero-title { font-size: 2.2rem; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
    .brand-grid { gap: 1.5rem; }
}
