/* =====================================================================
   TipTech - Product Page Stylesheet
   Wspólne style dla stron produktów (Sintela / Yokogawa)
   ===================================================================== */

/* HERO */
.product-hero {
    min-height: 80vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: var(--gradient-dark); padding: 130px 0 80px;
    color: var(--white);
}
.product-hero .bg-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.product-hero .glow {
    position: absolute; top: 50%; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, transparent 60%);
    transform: translateY(-50%); filter: blur(60px);
    animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.product-hero .container { position: relative; z-index: 2; }
.product-hero-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.product-hero-content { max-width: 600px; }

.breadcrumb {
    display: flex; gap: 8px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--laser); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.product-vendor {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; color: var(--white);
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.product-vendor.sintela { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); color: var(--laser); }
.product-vendor.yokogawa { background: rgba(255,71,87,0.1); border-color: rgba(255,71,87,0.3); color: #FF6B7E; }

.product-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 900;
    line-height: 1.05; margin-bottom: 16px; letter-spacing: -0.04em; color: var(--white);
}
.product-tagline {
    font-size: 1.15rem; color: rgba(255,255,255,0.75);
    margin-bottom: 32px; line-height: 1.6;
}
.product-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-spec { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-spec:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

/* HERO VISUAL - Real product photo */
.product-photo {
    position: relative; padding: 32px;
    background: linear-gradient(135deg, #0A1628 0%, #1A2744 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}
.product-photo::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.12), transparent 50%);
}
.product-photo.warm::before {
    background: radial-gradient(circle at 30% 30%, rgba(255,165,2,0.15), transparent 50%);
}
.product-photo.accent::before {
    background: radial-gradient(circle at 30% 30%, rgba(0,212,170,0.15), transparent 50%);
}
.product-photo-img {
    position: relative; z-index: 2;
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.product-photo:hover .product-photo-img { transform: scale(1.03); }
.product-photo-caption {
    position: relative; z-index: 2;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}
.product-photo-caption .live {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-weight: 600;
}
.product-photo-caption .live::before {
    content: ''; width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 1s infinite;
}

/* Overview product image - real photo */
.product-image-real {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    padding: 32px; box-shadow: var(--shadow-lg);
    text-align: center;
}
.product-image-real img {
    width: 100%; height: auto; max-height: 320px; object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}
.product-image-real .caption {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex; justify-content: space-around;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: var(--gray-500);
}
.product-image-real .caption strong { color: var(--gray-900); }

/* HERO VISUAL - Device card (legacy SVG mockup) */
.device-card {
    background: linear-gradient(135deg, #0A1628 0%, #1A2744 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl); padding: 36px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; overflow: hidden;
}
.device-card::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.1), transparent 50%);
    pointer-events: none;
}
.device-card-inner { position: relative; z-index: 2; }
.device-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 20px;
}
.device-name {
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    color: rgba(255,255,255,0.6); font-weight: 600;
}
.led {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    color: var(--accent); padding: 4px 10px;
    background: rgba(0,212,170,0.1); border-radius: 12px;
}
.led::before {
    content: ''; width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 1s infinite;
}

.device-rack {
    background: #050B17; border-radius: 8px; padding: 14px;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.08);
}
.rack-grid {
    display: flex; align-items: center; justify-content: space-around;
    height: 80px; gap: 6px; position: relative;
}
.rack-grid::before, .rack-grid::after {
    content: ''; position: absolute; width: 6px; height: 6px;
    background: rgba(255,255,255,0.2); border-radius: 50%; top: 50%; transform: translateY(-50%);
}
.rack-grid::before { left: 4px; }
.rack-grid::after { right: 4px; }
.rack-port {
    width: 12px; height: 22px; background: #1E293B;
    border: 1px solid rgba(0,229,255,0.4); border-radius: 2px;
    position: relative;
}
.rack-port.active {
    background: rgba(0,229,255,0.3);
    box-shadow: 0 0 8px var(--laser);
}
.rack-port.active::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 6px; height: 6px;
    background: var(--laser); border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
.rack-display {
    background: #050B17; border: 1px solid rgba(0,229,255,0.4); border-radius: 4px;
    padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    color: var(--laser); min-width: 120px; text-align: center;
}

.device-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.device-metric {
    background: rgba(255,255,255,0.04); padding: 12px; border-radius: 8px;
    text-align: center; border: 1px solid rgba(255,255,255,0.06);
}
.device-metric-val {
    font-family: 'JetBrains Mono', monospace; font-size: 1.3rem;
    font-weight: 700; color: var(--laser); line-height: 1;
}
.device-metric-lbl {
    font-size: 0.7rem; color: rgba(255,255,255,0.55);
    margin-top: 4px; font-family: 'JetBrains Mono', monospace;
}

/* QUICK SPECS BAR */
.specs-bar {
    background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
    padding: 28px 0;
}
.specs-bar-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center;
}
.specs-bar-item .val {
    font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 800;
    color: var(--primary); line-height: 1; margin-bottom: 4px;
}
.specs-bar-item .lbl {
    font-size: 0.78rem; color: var(--gray-500); font-weight: 500;
}

/* OVERVIEW SECTION */
.product-section { padding: 80px 0; }
.product-section.dark { background: var(--dark); color: var(--white); }
.product-section.gray { background: var(--gray-50); }
.product-section.dark .section-title { color: var(--white); }
.product-section.dark .section-subtitle { color: rgba(255,255,255,0.7); }
.product-section.dark .section-label { color: var(--laser); }
.product-section.dark .section-label::before { background: var(--laser); }

.product-overview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.product-overview-text h2 { margin-bottom: 20px; }
.product-overview-text p { font-size: 1rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.75; }
.product-overview-text strong { color: var(--gray-900); }
.product-overview-text ul {
    list-style: none; margin-top: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.product-overview-text ul li {
    padding: 12px 16px; background: var(--gray-50);
    border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
    font-size: 0.92rem; color: var(--gray-700);
}
.product-overview-text ul li strong { color: var(--primary); }

.product-image-card {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    padding: 40px; box-shadow: var(--shadow-lg);
}

/* SPEC TABLE */
.spec-table {
    width: 100%; border-collapse: collapse;
    background: var(--white); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); margin-top: 32px;
}
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table tr:nth-child(even) { background: var(--gray-50); }
.spec-table td {
    padding: 14px 20px; font-size: 0.92rem;
}
.spec-table td:first-child { color: var(--gray-600); font-weight: 500; width: 50%; }
.spec-table td:last-child { color: var(--gray-900); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.spec-table tr.group-header td {
    background: var(--gray-900); color: var(--white); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}
.spec-table tr.group-header td:last-child { background: var(--gray-900); }

/* FEATURES GRID */
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.feat-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 28px;
    transition: var(--transition);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--primary-bg); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-card.laser .feat-icon { background: rgba(0,229,255,0.1); color: var(--laser); }
.feat-card.warm .feat-icon { background: rgba(255,165,2,0.1); color: var(--warm); }
.feat-card.accent .feat-icon { background: rgba(0,212,170,0.1); color: var(--accent-dark); }
.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feat-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

/* CTA */
.product-cta {
    background: var(--gradient-primary); padding: 80px 0;
    position: relative; overflow: hidden; color: var(--white); text-align: center;
}
.product-cta::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.product-cta .container { position: relative; z-index: 2; }
.product-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; color: var(--white); }
.product-cta p { font-size: 1.05rem; max-width: 600px; margin: 0 auto 30px; color: rgba(255,255,255,0.85); }

/* ===== ANIMATED EXTRAS ===== */

/* Laser scanline sweeping across hero */
.scanline {
    position: absolute; top: 0; bottom: 0; width: 2px; z-index: 1;
    background: linear-gradient(180deg, transparent, var(--laser) 35%, var(--laser) 65%, transparent);
    opacity: 0.4; pointer-events: none;
    animation: scan-x 9s linear infinite;
}
.scanline::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -8px; width: 18px;
    background: linear-gradient(90deg, transparent, var(--laser-glow), transparent);
    filter: blur(8px); opacity: 0.35;
}
@keyframes scan-x { 0% { left: 0%; } 100% { left: 100%; } }
.scanline.warm { background: linear-gradient(180deg, transparent, var(--warm) 35%, var(--warm) 65%, transparent); }
.scanline.warm::after { background: linear-gradient(90deg, transparent, rgba(255,165,2,0.6), transparent); }
.scanline.accent { background: linear-gradient(180deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent); }
.scanline.accent::after { background: linear-gradient(90deg, transparent, rgba(0,212,170,0.6), transparent); }

/* Shine sweep over product photo */
.product-photo::after {
    content: ''; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 35%; z-index: 3;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.09), transparent);
    transform: skewX(-15deg); pointer-events: none;
    animation: photo-shine 7s ease-in-out infinite;
}
@keyframes photo-shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }

/* Dark live visual panel (matches application pages) */
.live-panel {
    position: relative; background: var(--dark);
    border-radius: var(--radius-xl); padding: 32px;
    box-shadow: 0 30px 60px rgba(5, 11, 23, 0.4); overflow: hidden;
}
.live-panel::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(0,229,255,0.12) 0%, transparent 60%);
}
.live-panel.warm::before { background: radial-gradient(ellipse at top, rgba(255,165,2,0.14) 0%, transparent 60%); }
.live-panel.accent::before { background: radial-gradient(ellipse at top, rgba(0,212,170,0.14) 0%, transparent 60%); }
.live-panel-title {
    position: relative; color: var(--white);
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.live-panel-title::before {
    content: ''; width: 8px; height: 8px; background: var(--laser); border-radius: 50%;
    box-shadow: 0 0 10px var(--laser); animation: pulse-dot 1.2s infinite;
}
.live-panel.warm .live-panel-title::before { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.live-panel.accent .live-panel-title::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.live-panel svg { width: 100%; height: auto; position: relative; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

/* How-it-works grid + steps */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.how-steps { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.how-steps li {
    padding: 14px 18px; background: var(--gray-50);
    border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
    font-size: 0.92rem; color: var(--gray-700);
}
.how-steps li strong { color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.how-steps.laser li { border-left-color: var(--laser); }
.how-steps.laser li strong { color: #0891B2; }
.how-steps.warm li { border-left-color: var(--warm); }
.how-steps.warm li strong { color: #D97706; }
.how-steps.accent li { border-left-color: var(--accent); }
.how-steps.accent li strong { color: var(--accent-dark); }

/* Family / comparison table */
.family-scroll { overflow-x: auto; margin-top: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.family-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
.family-table th, .family-table td {
    padding: 14px 18px; font-size: 0.9rem; text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.family-table th:first-child, .family-table td:first-child {
    text-align: left; color: var(--gray-600); font-weight: 500; font-family: 'Inter', sans-serif;
}
.family-table thead th {
    background: var(--gray-900); color: var(--white);
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    letter-spacing: 0.05em; text-transform: uppercase; border-bottom: none;
}
.family-table thead th a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.45); transition: var(--transition); }
.family-table thead th a:hover { color: var(--laser); border-color: var(--laser); }
.family-table td { font-family: 'JetBrains Mono', monospace; color: var(--gray-900); font-weight: 600; }
.family-table tbody tr:nth-child(even) { background: var(--gray-50); }
.family-table tbody tr { transition: background 0.2s ease; }
.family-table tbody tr:hover { background: var(--primary-bg); }
.family-table .col-current { background: rgba(0, 85, 255, 0.06); box-shadow: inset 2px 0 0 var(--primary), inset -2px 0 0 var(--primary); }
.family-table thead .col-current { background: var(--primary); box-shadow: none; }
.family-table .col-current.accent-col { box-shadow: inset 2px 0 0 var(--accent-dark), inset -2px 0 0 var(--accent-dark); background: rgba(0, 212, 170, 0.07); }
.family-table thead .col-current.accent-col { background: var(--accent-dark); }
.family-table .col-current.laser-col { box-shadow: inset 2px 0 0 #0891B2, inset -2px 0 0 #0891B2; background: rgba(0, 229, 255, 0.07); }
.family-table thead .col-current.laser-col { background: #0891B2; }
.family-badge {
    display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px;
    font-size: 0.62rem; background: rgba(255,255,255,0.2); letter-spacing: 0.08em;
}

/* Spec table row hover */
.spec-table tr:not(.group-header):hover { background: var(--primary-bg); transition: background 0.2s ease; }

@media (max-width: 1024px) {
    .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-overview-grid { grid-template-columns: 1fr; gap: 40px; }
    .specs-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .how-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
    .specs-bar-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
}
