/* ==========================================================================
   CTPL — Cochin Terminals Private Limited
   Under-construction site — brand layer over Bootstrap 5.3.8

   Brand reference: "Cochin Terminals Private Limited Brand Guidelines"
     Primary colours : Bright Teal #23B788 · Dark Charcoal #15191B
     Typeface        : Chillax (Light 300 / Regular 400 / Medium 500 /
                       Semibold 600 / Bold 700)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typeface — Chillax, self-hosted
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chillax';
  src: url('../fonts/Chillax-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Brand tokens
   -------------------------------------------------------------------------- */
:root {
  /* primaries, straight from the guidelines */
  --ctpl-teal:            #23B788;
  --ctpl-charcoal:        #15191B;

  /* teal, worked for interface states */
  --ctpl-teal-bright:     #35D6A2;
  --ctpl-teal-deep:       #1B9068;
  --ctpl-teal-soft:       rgba(35, 183, 136, 0.14);
  --ctpl-teal-line:       rgba(35, 183, 136, 0.32);

  /* charcoal, worked for surfaces */
  --ctpl-ink-900:         #0E1113;
  --ctpl-ink-800:         #15191B;
  --ctpl-ink-700:         #1B2123;
  --ctpl-ink-600:         #232A2D;

  --ctpl-text:            #E9EEEC;
  --ctpl-text-muted:      #97A3A0;
  --ctpl-hairline:        rgba(255, 255, 255, 0.10);

  --ctpl-radius:          14px;
  --ctpl-radius-lg:       22px;

  /* Bootstrap overrides */
  --bs-body-bg:           var(--ctpl-ink-800);
  --bs-body-color:        var(--ctpl-text);
  --bs-body-font-family:  'Chillax', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bs-body-font-weight:  400;
  --bs-emphasis-color:    #FFFFFF;
  --bs-primary:           var(--ctpl-teal);
  --bs-primary-rgb:       35, 183, 136;
  --bs-link-color:        var(--ctpl-teal);
  --bs-link-hover-color:  var(--ctpl-teal-bright);
  --bs-border-color:      var(--ctpl-hairline);
  --bs-focus-ring-color:  rgba(35, 183, 136, 0.45);
  --bs-focus-ring-width:  3px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--ctpl-ink-800);
  color: var(--ctpl-text);
  font-family: var(--bs-body-font-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page { position: relative; z-index: 1; }

::selection { background: var(--ctpl-teal); color: var(--ctpl-charcoal); }

:focus-visible {
  outline: 3px solid var(--ctpl-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1.1rem;
  background: var(--ctpl-teal);
  color: var(--ctpl-charcoal);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

.hairline {
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--ctpl-teal-line) 0%,
    var(--ctpl-hairline) 45%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* --------------------------------------------------------------------------
   4. Decorative background — the mark, echoed
   -------------------------------------------------------------------------- */
.bg-flow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-flow__glow {
  position: absolute;
  top: -30vh;
  right: -20vw;
  width: 85vw;
  height: 85vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(35, 183, 136, 0.18) 0%,
    rgba(35, 183, 136, 0.06) 40%,
    rgba(35, 183, 136, 0) 70%
  );
}

.bg-flow__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 0%, transparent 72%);
}

.bg-flow__mark {
  position: absolute;
  opacity: 0.035;
  animation: ctpl-spin 120s linear infinite;
}

.bg-flow__mark--a {
  width: 46vw;
  top: -8vw;
  right: -10vw;
}

.bg-flow__mark--b {
  width: 30vw;
  bottom: -8vw;
  left: -8vw;
  animation-direction: reverse;
  animation-duration: 160s;
}

@keyframes ctpl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 44px;
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--ctpl-teal-line);
  border-radius: 999px;
  background: var(--ctpl-teal-soft);
  color: var(--ctpl-teal-bright);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ctpl-teal);
  box-shadow: 0 0 0 0 rgba(35, 183, 136, 0.7);
  animation: ctpl-pulse 2.4s ease-out infinite;
}

@keyframes ctpl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 183, 136, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(35, 183, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 183, 136, 0); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--ctpl-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display-heading {
  margin-bottom: 1.75rem;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.display-heading .dot { color: var(--ctpl-teal); }

.lead-copy {
  max-width: 46ch;
  margin-bottom: 1.1rem;
  color: var(--ctpl-text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.65;
}

.lead-copy--sub { color: rgba(151, 163, 160, 0.78); }

/* build status ---------------------------------------------------------- */
.build-status {
  max-width: 34rem;
  margin: 2.5rem 0 2.75rem;
}

.build-status__label {
  color: var(--ctpl-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.build-status__meta {
  color: var(--ctpl-text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.progress--brand {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

/* Indeterminate: a travelling segment, so the bar never implies a
   percentage of completion we cannot honestly claim. */
.progress--brand .progress-bar {
  width: 34%;
  border-radius: 999px;
  background-color: var(--ctpl-teal);
  --bs-progress-bar-bg: var(--ctpl-teal);
  animation: ctpl-indeterminate 2.6s cubic-bezier(.65, .02, .35, .98) infinite,
             progress-bar-stripes 1s linear infinite;
}

@keyframes ctpl-indeterminate {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
  .progress--brand .progress-bar {
    width: 45%;
    transform: none;
  }
}

/* notify ---------------------------------------------------------------- */
.notify { max-width: 34rem; }

.notify__title {
  margin-bottom: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ctpl-text);
}

.notify .form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ctpl-hairline);
  border-radius: var(--ctpl-radius);
  color: var(--ctpl-text);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
}

.notify .form-control::placeholder { color: rgba(151, 163, 160, 0.6); }

.notify .form-control:focus {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--ctpl-teal-line);
  box-shadow: 0 0 0 3px rgba(35, 183, 136, 0.18);
  color: var(--ctpl-text);
}

.notify .form-control.is-invalid {
  border-color: #E4685D;
  box-shadow: none;
}

.btn-brand {
  background-color: var(--ctpl-teal);
  border: 1px solid var(--ctpl-teal);
  border-radius: var(--ctpl-radius);
  color: var(--ctpl-charcoal);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background-color: var(--ctpl-teal-bright);
  border-color: var(--ctpl-teal-bright);
  color: var(--ctpl-charcoal);
  transform: translateY(-1px);
}

.btn-brand:active {
  background-color: var(--ctpl-teal-deep);
  border-color: var(--ctpl-teal-deep);
  color: var(--ctpl-charcoal);
  transform: translateY(0);
}

.notify__feedback {
  min-height: 1.5rem;
  margin: 0.7rem 0 0;
  font-size: 0.875rem;
  color: var(--ctpl-text-muted);
}

.notify__feedback.is-error   { color: #E4685D; }
.notify__feedback.is-success { color: var(--ctpl-teal-bright); }

/* mark stage ------------------------------------------------------------ */
.mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}

.mark-stage__mark {
  position: relative;
  z-index: 2;
  width: 58%;
  filter: drop-shadow(0 24px 60px rgba(35, 183, 136, 0.28));
  animation: ctpl-spin 46s linear infinite;
}

.mark-stage__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ctpl-hairline);
}

.mark-stage__ring--1 {
  inset: 12%;
  border-color: rgba(35, 183, 136, 0.22);
}

.mark-stage__ring--2 {
  inset: 0;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  animation: ctpl-spin 90s linear infinite reverse;
}

/* --------------------------------------------------------------------------
   7. Capabilities
   -------------------------------------------------------------------------- */
.capabilities { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.cap-card {
  padding: 1.85rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--ctpl-hairline);
  border-radius: var(--ctpl-radius-lg);
  transition: border-color .22s ease, transform .22s ease, background-color .22s ease;
}

.cap-card:hover {
  border-color: var(--ctpl-teal-line);
  transform: translateY(-3px);
}

.cap-card__index {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--ctpl-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.cap-card__title {
  margin-bottom: 0.7rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

.cap-card__body {
  margin: 0;
  color: var(--ctpl-text-muted);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Contact
   -------------------------------------------------------------------------- */
.contact { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }

.contact-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(35, 183, 136, 0.10) 0%, rgba(35, 183, 136, 0) 60%),
    var(--ctpl-ink-700);
  border: 1px solid var(--ctpl-hairline);
  border-radius: var(--ctpl-radius-lg);
}

.contact__body {
  max-width: 42ch;
  color: var(--ctpl-text-muted);
  font-weight: 300;
  line-height: 1.65;
}

.contact-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ctpl-hairline);
}

.contact-list__item:last-child { border-bottom: 1px solid var(--ctpl-hairline); }

.contact-list__label {
  flex: 0 0 4.75rem;
  color: var(--ctpl-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list__value {
  flex: 1 1 14rem;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 400;
  text-decoration: none;
  word-break: break-word;
}

.contact-list__address {
  font-style: normal;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ctpl-text);
}

.contact-list__sep {
  margin: 0 0.4rem;
  color: var(--ctpl-text-muted);
}

a.contact-list__value,
.contact-list__link {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid var(--ctpl-teal-line);
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

a.contact-list__value:hover,
a.contact-list__value:focus-visible,
.contact-list__link:hover,
.contact-list__link:focus-visible {
  color: var(--ctpl-teal-bright);
  border-color: var(--ctpl-teal-bright);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-bottom: 0.5rem; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-mark {
  width: auto;
  height: 30px;
  opacity: 0.75;
  flex: 0 0 auto;
}

.footer-reg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  color: var(--ctpl-text-muted);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.footer-reg__label {
  margin-right: 0.4rem;
  color: var(--ctpl-teal);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-copy {
  color: var(--ctpl-text-muted);
  font-size: 0.8125rem;
  font-weight: 300;
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-flow__mark,
  .mark-stage__mark,
  .mark-stage__ring--2 { animation: none; }
}

/* --------------------------------------------------------------------------
   11. Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .footer-grid { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 575.98px) {
  .brand img { height: 34px; }
  .status-pill { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  .footer-mark { height: 26px; }
  .contact-list__label { flex-basis: 100%; }
  .contact-list__value { font-size: 1rem; }
}

@media (max-width: 991.98px) {
  .mark-stage { max-width: 300px; margin-top: 1rem; }
}
