 
@font-face {
    font-family: 'AkolkhetiH';
    src: url('../fonts/akolkhetih.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom fonts for the manuscript section */
@font-face {
    font-family: 'EkaHandwritten';
    src: url('../fonts/eka.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zaza';
    src: url('../fonts/zaza.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
  --max-content-width: 42rem;
  --max-section-width: 65rem;
  --fluid-padding: clamp(1.25rem, 5vw, 2.5rem);
  --fluid-gap: clamp(2rem, 8vw, 4rem);
  --graphic-max-width: 16.25rem; /* Scalable 260px Equivalent */
}

/* Base Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #111111;
    color: #ffffff;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Layout Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('../assets/v4_night_sky.webp');
    background-size: cover;
    background-position: center;
    padding: 1.5rem;
}

/* Header Elements */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    max-width: 10rem;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast; 
}

.nav-icons {
    display: flex;
    gap: 0.75rem;
}

/* Interactive Elements */
.icon-btn {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icon-btn svg {
    position: relative;
    z-index: 1;
}

.icon-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: transform 0.3s linear, opacity 0.25s ease;
}

.icon-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Content Area Boundary Containment */
.content {
    margin-top: auto;
    width: 100%;
    max-width: 27.5rem;
    margin-bottom: 0.5rem;
}

.headline {
    font-family: 'AkolkhetiH', 'Inter', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem); 
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem; 
    letter-spacing: -0.5px;
}

/* Pricing Section */
.pricing-container {
    margin-bottom: 2rem;
}
 
.price {
    display: flex;
    align-items: center;
}

.currency-amount {
    font-size: clamp(1.75rem, 5vw, 3.0rem); 
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.period {
    font-size: clamp(0.95rem, 2.2vw, 1.35rem);  
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.period::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    margin-right: 0.5rem;
    transform: translateY(1px); 
}

/* Call to Action Buttons */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background-color: #f5f5f5;
    color: #000000;
    font-weight: 400;
    font-size: 1.25rem;
}

/* Shimmer Effect */
.shimmer-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.shimmer-card:hover {
  transform: translateY(-3px);
}

.shimmer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 125%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 10;
  pointer-events: none;
}

.shimmer-card:hover::before {
  animation: shimmer-effect 1.15s forwards;
}

@keyframes shimmer-effect {
  0% { left: 125%; }
  100% { left: -125%; }
}

/* Process Section Layout Container */
.process-container {
  width: 100%;
  max-width: var(--max-section-width);
  margin-inline: auto;
  padding-inline: var(--fluid-padding);
  padding-block: clamp(2rem, 4vw, 3rem); 
  display: flex;
  flex-direction: column;
  gap: 0.0rem; 
  box-sizing: border-box;
}

.process-intro {
  text-align: center;
  max-width: var(--max-content-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-main-title {
  font-family: 'AkolkhetiH', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Stacked Layout Structure (Text then Graphic below) */
.process-step {
  width: 100%;
  max-width: var(--max-content-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  --step-margin-bottom: 0rem; 
  margin-bottom: var(--step-margin-bottom);
}

/* Canvas Sizing Wrapper (Standardized scalable constraints) */
.step-graphic {
  width: 100%;
  max-width: var(--graphic-max-width);
  aspect-ratio: var(--graphic-aspect-ratio, 1 / 1);
  margin-top: var(--graphic-margin-top, 0rem);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; 
}

.step-graphic canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  --color-graphic-stroke: rgba(255, 255, 255, 0.75); 
  --color-graphic-dim: rgba(255, 255, 255, 0.15);
  --color-satellite: #ff4d4d; 
}

.step-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.step-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #e2e2e2;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: #ededed;
  margin: 0;
  text-align: center; 
  word-break: break-word;
}

@media (min-width: 768px) {
  .description {
    text-align: center;
  }
}

.step-graphic canvas.radialspinner { 
  /* Theme parameters */
  --color-graphic-stroke: #38bdf8; 
  --color-graphic-dim: #334155;    
}

/* =========================================
   TORN PAPER THEME CONTAINER (Last Section)
   ========================================= */
.paper-theme-wrapper {
  background-image: url("../assets/paper/paper.png");
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
  position: relative;
  width: 100%;
  z-index: 20;
  padding-block-start: clamp(0.75rem, 2vw, 1.5rem);
  padding-block-end: 0; 
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  box-sizing: border-box;
  margin-block-start: clamp(1rem, 4vw, 2.5rem); 
}

/* Responsive Torn Edges */
.paper-edge-top {
  position: absolute;
  top: -35px; 
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 100vw;
  height: 80px; 
  background-image: url("../assets/paper/paper.png");
  background-size: cover;
  background-position: center top;

  -webkit-mask-image: url("../assets/paper/tornpaper.svg");
  mask-image: url("../assets/paper/tornpaper.svg");
  -webkit-mask-size: 1000px 100%;
  mask-size: 1000px 100%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;

  filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.25));
  z-index: 100;
  pointer-events: none;
}

.paper-edge-bottom {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: -35px; 
  transform: translateX(-50%);
  width: 100vw;
  height: 80px; 
  background-image: url("../assets/paper/paper.png");
  background-size: cover;
  background-position: center bottom;

  -webkit-mask-image: url("../assets/paper/tornpaper.svg");
  mask-image: url("../assets/paper/tornpaper.svg");
  -webkit-mask-size: 1000px 100%;
  mask-size: 1000px 100%;
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: center top;
  mask-position: center top;

  filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.3));
  z-index: 101;
  pointer-events: none;
}

/* Proportional scaling photo attachment wrapper */
.photo-attachment {
  position: relative;
  margin-block-start: clamp(1.6rem, 1.5vw, 2rem);
  margin-block-end: clamp(0.75rem, 2vw, 1.25rem);
  width: 85%;
  max-width: 30rem; /* Scalable 480px Equivalent */
  z-index: 110; 
  transform: rotate(-2deg);
  margin-inline: auto;
}

.photo-frame {
  background: #ffffff;
  padding: clamp(0.5rem, 2vw, 0.75rem); 
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    2px 10px 25px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 2; 
  object-fit: cover; 
  object-position: center; 
  display: block;
}

.paper-clip {
  position: absolute;
  width: 10%;      
  top: -12%;       
  right: 4%;       
  z-index: 11;
  mix-blend-mode: multiply;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* Manuscript Section Typographics */
.manuscript-section {
  width: 100%;
  box-sizing: border-box;
  position: relative;  
  z-index: 105;    
}

.manuscript-body {
  font-family: "EkaHandwritten", cursive, sans-serif;
  font-size: clamp(1.1rem, 4.5vw, 1.8rem);
  color: #1a2533;
  line-height: 1.3; 
  max-width: var(--max-content-width);
  margin-inline: auto;
  text-align: left;
  padding-inline: var(--fluid-padding);
  box-sizing: border-box;
}

.manuscript-body p {
  margin-block-end: clamp(0.75rem, 2.5vw, 1.25rem);
  text-indent: clamp(1.2rem, 3vw, 1.8rem);
}

.motivation-text {
    font-family: 'EkaHandwritten', sans-serif;
}

.manuscript-body .headline {
  text-align: center;
  text-indent: 0;
  font-family: "EkaHandwritten", cursive, sans-serif;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  margin-block-end: clamp(0.5rem, 1.5vw, 0.85rem);
  font-weight: 700;
}

.manuscript-body .meore {
  display: inline;
}

.full-text-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

/* Expansion state via Javascript */
.manuscript-body.is-expanded .full-text-content {
  max-height: 1500px;
  opacity: 1;
  margin-block-end: clamp(0.75rem, 2.5vw, 1.25rem);
}

.manuscript-body.is-expanded .readmore,
.manuscript-body.is-expanded .meore {
  display: none;
}

/* Specificity override and valid alignment */
.manuscript-body .readmore {
  font-family: "Zaza", sans-serif;
  font-size: clamp(1.3rem, 4.5vw, 2.2rem);
  text-align: right;
  text-indent: 0 !important; 
  color: #af0000;
  margin-block-start: clamp(-0.75rem, -2vw, -0.25rem);
  margin-block-end: clamp(1.0rem, 3vw, 0.5rem); 
}





/* =========================================================================
   SPEED TEST TERMINAL INTEGRATION
   ========================================================================= */

:root {
  --speed-bg-color: #09090b;
  --speed-card-bg: #18181b;
  --speed-border-color: #27272a;
  --speed-text-main: #f4f4f5;
  --speed-text-muted: #71717a;
  
  /* Card Active Border Accents */
  --download-color: #0099cc; 
  --upload-color: #a855f7;   
  --ping-color: #10b981;     
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Metric Card Dimensions */
  --metric-card-width: 110px;
  --metric-card-height: 85px;
}

/* Speed Test Section Layout */
.speedtest-section {
  width: 100%;
  max-width: var(--max-section-width);
  margin-inline: auto;
  padding-inline: var(--fluid-padding);
  padding-block: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.speedtest-title-container {
  text-align: center;
  max-width: var(--max-content-width);
  margin-bottom: 2rem;
}

#speedtest-container-wrapper {
  position: relative;
  width: min(83vmin, 900px); 
  height: min(83vmin, 900px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}

#ringsCanvas {
  width: 100%;
  height: 100%;
  display: block;
  --color-graphic-stroke: #e2e8f0; 
}

/* Centered GO Button Styling */
.go-button {
  position: absolute;
  width: 130px; 
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--download-color); 
  background: rgba(17, 17, 17, 0.85); 
  color: var(--download-color); 
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  outline: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.go-button:hover:not(:disabled) {
  background: rgba(0, 153, 204, 0.1);
  box-shadow: 0 0 40px rgba(0, 153, 204, 0.25);
  transform: translate(-50%, -50%) scale(1.04);
}

.go-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96);
}

.go-button:disabled {
  border-color: #27272a;
  color: #71717a;
  cursor: not-allowed;
}

/* Dashboard Container */
.dashboard-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; 
  align-items: center;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform-origin: center center; 
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none; 
  width: 100%;
  max-width: 640px;
}

/* Gauge Elements */
.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.gauge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--download-color);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  opacity: 0.9;
  transition: color 0.35s ease;
}

.classic-gauge {
  position: relative;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #ffffff 70%, #f0f0f0 100%);
  border-radius: 50%;
  border: 4px solid var(--download-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: border-color 0.35s ease;
}

.needle-cap {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: #999999;
  border: 2px solid #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.needle {
  position: absolute;
  width: 4px;
  height: 80px; 
  background-color: var(--download-color);
  bottom: 50%;
  left: calc(50% - 2px);
  transform-origin: bottom center;
  transform: rotate(-120deg); 
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.35s ease;
  z-index: 3;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%); 
}

.value-display {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-value-num {
  font-size: 36px; 
  font-weight: bold;
  line-height: 1;
}

.gauge-value-unit {
  font-size: 11px;
  color: #94a3b8; 
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.gauge-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
}

.major-tick {
  width: 3px;
  height: 14px;
  background-color: var(--download-color);
  position: absolute;
  left: -1.5px;
  top: -111px; 
  transition: background-color 0.35s ease;
}

.minor-tick {
  width: 1px;
  height: 6px;
  background-color: #333333;
  position: absolute;
  left: -0.5px;
  top: -111px; 
  transition: background-color 0.1s ease;
}

.minor-tick.active {
  background-color: var(--download-color);
}

.gauge-label {
  position: absolute;
  width: 35px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #222222;
  left: -17.5px;
  top: -91px; 
  transition: color 0.1s ease;
}

.gauge-label.active {
  color: var(--download-color);
}

/* Upload State Variations */
.gauge-card.upload-mode .gauge-title {
  color: var(--upload-color);
}
.gauge-card.upload-mode .classic-gauge {
  border-color: var(--upload-color);
}
.gauge-card.upload-mode .needle {
  background-color: var(--upload-color);
}
.gauge-card.upload-mode .major-tick {
  background-color: var(--upload-color);
}
.gauge-card.upload-mode .minor-tick.active {
  background-color: var(--upload-color);
}
.gauge-card.upload-mode .gauge-label.active {
  color: var(--upload-color);
}

/* Metadata Capsule */
.meta-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(24, 24, 27, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #27272a;
}

.meta-value {
  color: #e4e4e7;
  font-weight: 700;
}

.meta-divider {
  color: #3f3f46;
  font-weight: 400;
}

/* Metrics Information Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.metric-card {
  width: var(--metric-card-width);
  height: var(--metric-card-height);
  background: radial-gradient(circle at top left, #ffffff 60%, #edf2f7 100%);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.metric-card.active-download {
  border-color: var(--download-color);
  box-shadow: 0 0 20px rgba(0, 153, 204, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.metric-card.active-upload {
  border-color: var(--upload-color);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.metric-card.active-ping {
  border-color: var(--ping-color);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.metric-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.30rem; 
}

.metric-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#downloadCard .metric-indicator { background-color: var(--download-color); }
#uploadCard .metric-indicator { background-color: var(--upload-color); }
#pingCard .metric-indicator { background-color: var(--ping-color); }

.metric-value-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600; 
  letter-spacing: -0.03em;
  color: #000000;
}

.metric-unit {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8; 
}

/* Error Console Logging Wrapper */
#error-log {
  position: absolute;
  bottom: -40px;
  width: 100%;
  max-width: 400px;
  padding: 8px;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-family: monospace;
  font-size: 11px;
  display: none;
  white-space: pre-wrap;
  text-align: center;
  z-index: 20;
}

/* Adaptive Breakpoint Adjustments */
@media (max-width: 500px) {
  #speedtest-container-wrapper {
    width: 95vmin;
    height: 95vmin;
  }
  
  .classic-gauge {
    width: 200px;
    height: 200px;
  }
  
  .needle {
    height: 65px;
  }

  .major-tick, .minor-tick {
    top: -91px;
  }

  .gauge-label {
    top: -74px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
  }
  
  .metric-card {
    width: 80%;
    max-width: 220px;
    height: 70px;
    flex-direction: row;
    align-items: center;
    padding-inline: 1rem;
  }
  
  .meta-container {
    flex-direction: column;
    gap: 0.3rem;
    border-radius: 10px;
    text-align: center;
  }
  
  .meta-divider {
    display: none;
  }
}