﻿/* ============================================
   TECHPLACE PHASE ONE — STYLES
   Single-screen, no vertical scroll carousel
   ============================================ */

:root {
  --primary: #1976FF;
  --primary-dark: #1565C0;
  --text-dark: #111111;
  --text-light: #8A8A8A;
  --bg-light: #EDEDED;
  --border: #2B2B2B;
  --white: #FFFFFF;
  
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --spacing: 2rem;
  --spacing-sm: 1rem;
  --spacing-lg: 3rem;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

body {
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--bg-light);
  padding: var(--spacing-sm) var(--spacing);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity var(--transition);
  height: 50px;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 150px;
}

.logo-tech {
  color: var(--border);
}

.logo-place {
  color: var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  height: 50px;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 150px;
}

.header-nav {
  display: flex;
  gap: var(--spacing);
  margin: 0 auto;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

/* ============================================
   MAIN & CAROUSEL
   ============================================ */

main {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--transition);
}

.panel {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Scrollbar styling */
.panel::-webkit-scrollbar {
  width: 6px;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: 3px;
}

.panel::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ============================================
   PANEL: HERO
   ============================================ */

.hero-panel {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  gap: var(--spacing-lg);
}

.hero-panel .panel-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.hero-icon {
  width: 100%;
  height: auto;
  max-width: 300px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  position: relative;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.badge {
  background: rgba(25, 118, 255, 0.2);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* ============================================
   PANEL: PERKS
   ============================================ */

.perks-panel {
  flex-direction: column;
  background: var(--white);
}

.panel-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  width: 100%;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing);
  width: 100%;
  max-width: 1000px;
}

.perk-card {
  background: var(--white);
  border: 1px solid var(--bg-light);
  border-radius: 8px;
  padding: var(--spacing);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.perk-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.perk-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.perk-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.perk-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   PANEL: COMPARISON
   ============================================ */

.why-panel {
  flex-direction: column;
  background: linear-gradient(to bottom, #f5f7fa, #ffffff);
}

.comparison-table {
  width: 100%;
  max-width: 900px;
  overflow-x: auto;
  margin-top: var(--spacing);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

thead {
  background: var(--primary);
  color: var(--white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

th.techplace {
  background: var(--primary);
}

th.competitor {
  background: var(--bg-light);
  color: var(--text-dark);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg-light);
}

tbody tr:hover {
  background: rgba(25, 118, 255, 0.05);
}

.aspect-label {
  font-weight: 600;
  color: var(--text-dark);
  width: 25%;
}

tbody tr td:nth-child(2) {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   PANEL: PICKUP CREDIT
   ============================================ */

.credit-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  flex-direction: column;
}

.credit-panel .panel-content {
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.credit-panel .panel-title {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.credit-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.credit-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing);
  margin: var(--spacing-lg) 0;
  width: 100%;
}

.step-item {
  position: relative;
}

.step-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: var(--spacing-lg) var(--spacing);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.credit-info-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing);
  margin: var(--spacing-lg) 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: var(--spacing);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: left;
  padding: var(--spacing-sm) 0;
}

.info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.info-item p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.credit-panel .btn-primary {
  background: var(--white);
  color: var(--primary);
  margin-top: var(--spacing);
}

.credit-panel .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PANEL: CONTACT
   ============================================ */

.contact-panel {
  flex-direction: column;
  background: var(--white);
  gap: var(--spacing-lg);
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--spacing);
}

.sso-section {
  background: var(--bg-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  max-width: 500px;
}

.sso-section h3,
.contact-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing);
  color: var(--text-dark);
}

.sso-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing);
}

.sso-btn {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: var(--spacing-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.sso-btn svg {
  width: 24px;
  height: 24px;
}

.sso-btn.google { fill: #4285F4; }
.sso-btn.apple { fill: #000; }
.sso-btn.facebook { fill: #1877F2; }

.sso-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--text-light);
}

.sso-divider {
  text-align: center;
  color: var(--text-light);
  margin: var(--spacing) 0;
  font-size: 0.9rem;
}

.sso-section .btn-outline {
  width: 100%;
  justify-content: center;
}

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

.contact-info {
  background: var(--bg-light);
  border-radius: 8px;
  padding: var(--spacing);
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 0.95rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing);
}

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* ============================================
   CAROUSEL CONTROLS
   ============================================ */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--bg-light);
  flex-shrink: 0;
  gap: var(--spacing);
}

.carousel-chevron {
  background: transparent;
  border: 1px solid var(--bg-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-dark);
}

.carousel-chevron svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.carousel-chevron:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.carousel-chevron:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.dot:hover {
  background: var(--text-light);
}

.dot[aria-current="true"] {
  background: var(--primary);
  width: 24px;
  border-radius: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing: 1.5rem;
    --spacing-lg: 2rem;
  }

  .header {
    padding: var(--spacing-sm) var(--spacing);
  }

  .header-nav {
    display: none;
  }

  .panel {
    padding: var(--spacing);
    flex-direction: column;
  }

  .hero-panel {
    flex-direction: column;
  }

  .hero-panel .panel-content {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 250px;
  }

  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .sso-buttons {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    gap: var(--spacing-sm);
    padding: 1rem;
  }

  .carousel-chevron {
    width: 40px;
    height: 40px;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  td, th {
    padding: 0.75rem 0.5rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .credit-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing) 0;
  }

  .step-card {
    padding: var(--spacing) 0.75rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .step-card h3 {
    font-size: 0.95rem;
  }

  .step-card p {
    font-size: 0.8rem;
  }

  .credit-info-box {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing) 0;
  }

  .info-item {
    padding: var(--spacing-sm);
  }

  .info-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .panel-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .perks-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .contact-panel {
    gap: var(--spacing);
  }

  .footer-links {
    gap: var(--spacing-sm);
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .carousel-dots {
    gap: 0.25rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot[aria-current="true"] {
    width: 20px;
  }

  .credit-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: -8px;
    right: -8px;
  }

  .step-icon {
    width: 50px;
    height: 50px;
  }

  .step-card h3 {
    font-size: 0.9rem;
  }

  .step-card p {
    font-size: 0.75rem;
  }

  .credit-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--spacing);
  }

  .credit-info-box {
    padding: 0.75rem;
  }

  .info-icon {
    font-size: 1.75rem;
  }

  .info-item strong {
    font-size: 0.9rem;
  }

  .info-item p {
    font-size: 0.75rem;
  }
}


/* ============================================
   MOBILE MENU
   ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
  z-index: 1001;
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm);
  }

  .header-content {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--spacing);
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .carousel {
    height: auto;
    min-height: 100vh;
  }

  .panel {
    min-height: 100vh;
    padding: var(--spacing) var(--spacing-sm);
  }

  .hero-panel {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .carousel-controls {
    bottom: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .logo, .hero-title, .panel-title {
    font-weight: 800;
  }

  .btn {
    border-width: 2px;
  }

  .perk-card, .sso-section {
    border-width: 2px;
  }
}